﻿/* =========================================================
   STATERA ERP – APPLICATION SHELL
   Outlook / Enterprise Layout
   ========================================================= */

/* =========================
   BASE
   ========================= */

html, body {
    height: 100%;
    margin: 0;
    background: #f5f7fb;
    overflow: hidden; /* ✅ add this */
}

/* =========================
   SHELL
   ========================= */

.statera-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden; /* 🔑 prevents footer scroll */
}

/* =========================
   TOP BAR
   ========================= */

.statera-topbar {
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.company-icon {
    width: 48px;
    height: 32px;
    object-fit: contain;
    flex: 0 0 48px;
}

.product-name {
    font-size: 15px;
    color: #3b6fa3; /* Steel blue */
    font-weight: 600; /* optional – looks good in headers */
}

.topbar-search {
    flex: 1;
    display: flex;
    justify-content: center;
}

    .topbar-search input {
        width: 420px;
        max-width: 100%;
        height: 28px;
        padding: 0 16px;
        border-radius: 19px;
        border: 1px solid #d1d5db;
        font-size: 12px;
        background: #ffffff;
    }

        .topbar-search input:focus {
            border-color: #2F5FA7;
            outline: none;
        }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings {
    width: 40px;
    height: 40px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
}

/* =========================
   WORKSPACE
   ========================= */

.statera-workspace {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* =========================
   WORKSPACE BODY
   ========================= */

.statera-workspace-body {
    display: flex;
    flex: 1;
    min-height: 0;
}

/* =========================
   SUB NAV
   ========================= */

/* =========================
   MAIN CONTENT
   ========================= */

.statera-content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden; /* ✅ FIX */
}


/* =========================
   AVATAR PANEL
   ========================= */

.avatar-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 7000;
}

.avatar-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    box-shadow: -4px 0 16px rgba(0,0,0,0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 7001;
}

.statera-shell.avatar-open .avatar-panel {
    transform: translateX(0);
}

.statera-shell.avatar-open .avatar-panel-overlay {
    opacity: 1;
    pointer-events: auto;
}

.topbar-right .k-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-left .k-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.topbar-left .k-svg-icon {
    width: 22px;
    height: 22px;
    fill: #6b7a90;
    transition: fill 0.15s ease;
}

/* Hover */
.topbar-left span.hover .k-svg-icon {
    fill: #3a6ea5;
}

/* Active */
.topbar-left span.active .k-svg-icon {
    fill: #2b6cb0;
}

/* 🔑 THIS is the icon you actually see */
.topbar-right .k-svg-icon {
    width: 22px;
    height: 22px;
    fill: #6b7a90;
    transition: fill 0.15s ease;
}

/* Hover */
.topbar-right span.hover .k-svg-icon {
    fill: #3a6ea5;
}

/* Active */
.topbar-right span.active .k-svg-icon {
    fill: #2b6cb0;
}

body.avatar-open .avatar-panel {
    transform: translateX(0);
}

body.avatar-open .avatar-panel-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* =========================
   AVATAR PANEL IMAGE FIX
   ========================= */

.avatar-panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar-large {
    width: 48px; /* 🔑 lock size */
    height: 48px;
    min-width: 48px; /* prevent flex stretch */
    min-height: 48px;
    border-radius: 50%;
    object-fit: cover; /* crop instead of stretch */
    display: block;
}

/* =========================
   AVATAR PANEL MENU
   ========================= */

.avatar-panel-menu {
    list-style: none;
    margin: 0;
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    /* Menu items */
    .avatar-panel-menu li {
        padding: 10px 12px;
        border-radius: 6px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        color: #111827;
        display: flex;
        align-items: center;
        gap: 10px;
        transition: background-color 0.15s ease, color 0.15s ease;
    }

        .avatar-panel-menu li:focus-visible {
            outline: 2px solid rgba(59, 111, 163, 0.4);
            outline-offset: 2px;
        }

        .avatar-panel-menu li.avatar-notifications-item {
            justify-content: space-between;
        }

        .avatar-notification-badge {
            min-width: 18px;
            height: 18px;
            padding: 0 5px;
            border-radius: 999px;
            background: #d64045;
            color: #ffffff;
            font-size: 11px;
            font-weight: 800;
            line-height: 18px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-left: auto;
        }

        .avatar-notification-badge.hidden {
            display: none !important;
        }

        /* Hover */
        .avatar-panel-menu li:hover {
            background: #f3f4f6;
        }

        /* Divider */
        .avatar-panel-menu li.divider {
            height: 1px;
            background: #e5e7eb;
            margin: 8px 0;
            padding: 0;
            pointer-events: none;
        }

        /* Sign out (danger) */
        .avatar-panel-menu li.signout {
            color: #b91c1c;
            font-weight: 600;
        }

            .avatar-panel-menu li.signout:hover {
                background: rgba(185, 28, 28, 0.08);
            }

.statera-menubar li,
.statera-menubar .k-menu,
.statera-menubar .k-menu ul,
.statera-menubar .k-item {
    list-style: none !important;
    margin: 0;
    padding: 0;
}

.statera-main-content ul {
    list-style: none;
    padding: 0;
}

.statera-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}


/* Force Kendo tab content to participate in flex layout */






/* ============================= */
/* STATERA STICKY FOOTER         */
/* ============================= */

.statera-footer {
    flex: 0 0 auto; /* 🔑 footer height is fixed */
    height: 28px;
    position: relative;
    bottom: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 16px;
    background: linear-gradient( to right, #2f5d87, #2b577f );
    color: #e8eef5;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    position: relative; /* NOT sticky */
}

/* LEFT PANEL */
.footer-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%; /* 👈 makes it circular */
    background: rgba(255, 255, 255, 0.15);
    padding: 4px; /* space between logo + circle */
    box-sizing: content-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-app-name {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* CENTER PANEL */
.footer-center {
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.footer-muted {
    color: rgba(232, 238, 245, 0.7);
}

/* RIGHT PANEL */
.footer-right {
    white-space: nowrap;
    font-size: 12px;
    opacity: 0.85;
}


/* Top bar icon*/
.topbar-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    color: #3b6fa3;
    opacity: 0.85;
    position: relative;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    background: #d64045;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    line-height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.statera-shell-tooltip.k-tooltip,
.statera-shell-tooltip .k-tooltip {
    max-width: 240px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 8px;
    background: #172033;
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.22);
    font-family: Manrope, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.statera-shell-tooltip .k-tooltip-content,
.statera-shell-tooltip.k-tooltip .k-tooltip-content {
    padding: 8px 11px;
}

.statera-shell-tooltip .k-callout {
    display: none;
}

/* Refined profile drawer */
.avatar-panel {
    width: min(360px, 92vw);
    background: #f8fafc;
    border-left: 1px solid #dbe4ee;
    box-shadow: -12px 0 36px rgba(15, 23, 42, 0.14);
}

.avatar-panel-header {
    gap: 14px;
    padding: 24px 20px 20px;
    background: linear-gradient(145deg, #f4f8fc 0%, #e9f2f9 100%);
    border-bottom: 1px solid #dbe4ee;
}

.avatar-panel-header > div:last-child {
    min-width: 0;
    flex: 1 1 auto;
}

.avatar-large {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
    cursor: pointer;
}

.avatar-name {
    color: #0f172a;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
}

.avatar-email {
    margin-top: 3px;
    overflow: hidden;
    color: #52657a;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar-panel-menu {
    padding: 16px 12px;
    gap: 4px;
}

.avatar-panel-menu li {
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #1e293b;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}

.avatar-panel-menu li:not(.divider)::before {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: #eaf2f9;
    color: #2c6aa0;
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    font-size: 15px;
    font-weight: 800;
}

#avatarMyProfile::before { content: "\263A"; }
#avatarMyDay::before { content: "\25A6"; }
#avatarNotifications::before { content: "\25C9"; }
#avatarChangePassword::before { content: "\25C6"; }
#avatarSettings::before { content: "\2699"; }
#avatarAboutStatera::before { content: "i"; font-family: Georgia, serif; font-weight: 800; }
#avatarSignOut::before { content: "\2192"; }

.about-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(15, 23, 42, .34);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
}

.about-drawer {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1191;
    width: min(420px, 94vw);
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #d8e2ec;
    background: #f8fafc;
    box-shadow: -16px 0 42px rgba(15, 23, 42, .16);
    transform: translateX(105%);
    transition: transform .24s ease;
}

.about-drawer-open .about-drawer-overlay {
    opacity: 1;
    pointer-events: auto;
}

.about-drawer-open .about-drawer {
    transform: translateX(0);
}

.about-drawer-header {
    min-height: 82px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #dbe4ee;
    background: #fff;
}

.about-drawer-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #3974a5;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.about-drawer-header h2 {
    margin: 0;
    color: #132033;
    font-size: 20px;
    font-weight: 800;
}

.about-drawer-close {
    width: 36px;
    height: 36px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: #52657a;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.about-drawer-close:hover,
.about-drawer-close:focus-visible {
    border-color: #d6e1eb;
    background: #eef4f8;
    color: #174f7c;
    outline: none;
}

.about-drawer-body {
    flex: 1 1 auto;
    padding: 22px 20px;
    overflow-y: auto;
}

.about-product-card {
    padding: 26px 22px;
    border: 1px solid #dbe5ee;
    border-radius: 14px;
    background: linear-gradient(145deg, #ffffff, #f2f7fb);
    text-align: center;
    box-shadow: 0 10px 28px rgba(31, 78, 121, .07);
}

.about-product-mark {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 78, 121, .12);
}

.about-product-mark img { max-width: 54px; max-height: 54px; }
.about-product-name { color: #132033; font-size: 23px; font-weight: 800; }
.about-product-card p { margin: 7px auto 20px; color: #607087; font-size: 12px; line-height: 1.55; }

.about-version-block {
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid #d4e2ed;
    border-radius: 10px;
    background: #fff;
    text-align: left;
}

.about-version-block span { color: #68778b; font-size: 11px; font-weight: 700; }
.about-version-block strong { color: #205f92; font-size: 14px; font-weight: 800; }

.about-details { margin: 20px 0 0; border-top: 1px solid #dbe4ee; }
.about-details > div { padding: 13px 2px; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e1e8ef; }
.about-details dt { color: #6a788b; font-size: 11px; font-weight: 650; }
.about-details dd { margin: 0; color: #263548; font-size: 11px; font-weight: 750; text-align: right; }

.about-drawer-footer {
    padding: 16px 20px 20px;
    display: grid;
    gap: 3px;
    border-top: 1px solid #dbe4ee;
    background: #fff;
    color: #69788c;
    font-size: 10px;
}

.about-drawer-footer small { font-size: 9px; }

@media (prefers-reduced-motion: reduce) {
    .about-drawer,
    .about-drawer-overlay { transition: none; }
}

.avatar-panel-menu li.avatar-notifications-item {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
}

.avatar-panel-menu li.avatar-notifications-item > span:first-of-type {
    grid-column: 2;
}

.avatar-panel-menu li:hover {
    border-color: #dbe7f1;
    background: #ffffff;
    color: #174f7c;
    transform: translateX(-2px);
    box-shadow: 0 3px 10px rgba(15, 23, 42, .05);
}

.avatar-panel-menu li.divider {
    min-height: 1px;
    height: 1px;
    margin: 10px 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #dbe4ee;
    box-shadow: none;
    transform: none;
}

.avatar-panel-menu li.signout::before {
    background: #fff0f0;
    color: #b91c1c;
}

/* My Profile modal */
.k-window.my-profile-kendo-window {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(23, 42, 64, 0.22);
}

.k-window.my-profile-kendo-window > .k-window-titlebar,
.k-window.my-profile-kendo-window > .k-window-titlebar.k-header {
    background: #ffffff !important;
    color: #172033 !important;
    border-bottom: 1px solid #e3eaf3 !important;
    font-weight: 650;
}

.k-window.my-profile-kendo-window .k-window-title {
    color: #172033 !important;
}

.k-window.my-profile-kendo-window .k-window-titlebar-action,
.k-window.my-profile-kendo-window .k-window-titlebar .k-button {
    color: #52677c !important;
    background: transparent !important;
}

.k-window.my-profile-kendo-window .k-window-content {
    padding: 0;
    background: #f6f9fd;
}

.my-profile-modal {
    display: grid;
    gap: 16px;
    padding: 20px;
}

.my-profile-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #ffffff;
}

.my-profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid #cfe0f0;
    object-fit: cover;
}

.my-profile-eyebrow {
    color: #61758b;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.my-profile-hero h2 {
    margin: 2px 0;
    color: #172033;
    font-size: 22px;
    line-height: 1.2;
}

.my-profile-hero p {
    margin: 0;
    color: #61758b;
    font-size: 13px;
}

.my-profile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.my-profile-detail {
    display: grid;
    gap: 5px;
    padding: 12px;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #ffffff;
    min-width: 0;
}

.my-profile-detail span {
    color: #61758b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.my-profile-detail strong {
    overflow: hidden;
    color: #20364d;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-profile-support {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #ffffff;
}

.my-profile-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.my-profile-section-heading h3 {
    margin: 0;
    color: #172033;
    font-size: 16px;
}

.my-profile-section-heading p {
    margin: 3px 0 0;
    color: #61758b;
    font-size: 13px;
}

.support-token-state {
    padding: 4px 9px;
    border-radius: 999px;
    background: #eef3f8;
    color: #61758b;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.support-token-state.is-active {
    background: #e5f7ed;
    color: #19734a;
}

.support-token-controls {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) auto auto auto;
    align-items: end;
    gap: 10px;
}

.support-token-controls label {
    display: grid;
    gap: 5px;
    color: #52677c;
    font-size: 12px;
    font-weight: 800;
}

.support-token-controls input {
    height: 34px;
    padding: 0 10px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    color: #20364d;
}

.support-token-btn {
    height: 34px;
    padding: 0 13px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #ffffff;
    color: #2f5d87;
    cursor: pointer;
    font-weight: 800;
}

.support-token-btn:hover:not(:disabled) {
    background: #eef5fb;
}

.support-token-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.support-token-primary {
    border-color: #2f5d87;
    background: #2f5d87;
    color: #ffffff;
}

.support-token-primary:hover:not(:disabled) {
    background: #254f76;
}

.support-token-danger {
    color: #b91c1c;
}

.support-token-value {
    width: 100%;
    min-height: 78px;
    padding: 10px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    background: #f9fbfd;
    color: #20364d;
    font-family: "Cascadia Mono", Consolas, monospace;
    font-size: 12px;
    resize: vertical;
    box-sizing: border-box;
}

.support-token-help {
    margin: 0;
    color: #61758b;
    font-size: 12px;
}

@media (max-width: 760px) {
    .my-profile-grid,
    .support-token-controls {
        grid-template-columns: 1fr;
    }
}

/* Hover */
.topbar-icon:hover {
    background-color: rgba(59, 111, 163, 0.12);
    color: #2f5d87;
    opacity: 1;
}

/* Keyboard focus */
.topbar-icon:focus-visible {
    outline: 2px solid rgba(59, 111, 163, 0.5);
    outline-offset: 2px;
}

/* Active / pressed */
.topbar-icon:active {
    transform: scale(0.94);
}

/* Statera 2.0 title menu icons: duotone v5 glyphs with quiet steel-blue tone. */
.topbar-icon {
    --statera-topbar-icon-muted: #5f7890;
    --statera-topbar-steel: #3f78a8;
    --statera-topbar-steel-strong: #2c6aa0;
    --statera-topbar-steel-soft: #edf5fb;
    color: var(--statera-topbar-icon-muted);
}

.topbar-icon > .statera-topbar-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: currentColor;
    background: transparent;
    transition: background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.topbar-icon > .statera-topbar-icon .k-svg-icon,
.topbar-icon > .statera-topbar-icon svg,
.topbar-icon > .statera-topbar-icon .k-svg-icon svg,
.topbar-icon > .statera-topbar-icon svg path {
    width: 19px;
    height: 19px;
    color: currentColor;
    fill: currentColor;
    stroke: none;
}

.topbar-icon:hover,
.topbar-icon:focus-visible {
    color: var(--statera-topbar-steel);
}

.topbar-icon:hover > .statera-topbar-icon,
.topbar-icon:focus-visible > .statera-topbar-icon {
    background: var(--statera-topbar-steel-soft);
    box-shadow: inset 0 0 0 1px rgba(70, 130, 180, .14);
}

.topbar-search input {
    width: 360px;
    height: 28px;
    padding-left: 40px; /* space for icon */
    padding-right: 14px;
    border-radius: 10px;
    border: 1px solid #c9d4e2;
    font-size: 12px;
    background: #ffffff;
    color: #24384d;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
}

    /* INPUT */
    .topbar-search input {
        width: 360px;
        height: 28px;
        padding-left: 40px;
        padding-right: 14px;
        border-radius: 10px;
        border: 1px solid #c9d4e2;
        font-size: 12px;
        background: #ffffff;
        color: #24384d;
        position: relative;
        z-index: 1; /* 👈 input sits below icon */

        transition: border-color 0.18s ease, box-shadow 0.18s ease;
    }

/* ICON */
.search-icon {
    position: absolute;
    left: 14px;
    font-size: 12px;
    color: #3b6fa3;
    opacity: 0.7;
    z-index: 2; /* 👈 icon above input */
    pointer-events: none;
}

.topbar-search .k-icon {
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
}

/* ============================= */
/* TOP BAR SEARCH (LOCKED)       */
/* ============================= */

.topbar-search {
    display: flex;
    align-items: center;
    width: 360px; /* 👈 FIXED, intentional */
    height: 28px;
    background: #ffffff;
    border: 1px solid #c9d4e2;
    border-radius: 25px;
    padding: 0 12px;
    flex: 0 0 auto; /* 👈 DO NOT GROW */
}

    /* SEARCH ICON */
    .topbar-search .k-icon {
        width: 16px;
        height: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        color: #3b6fa3;
        opacity: 0.75;
        margin-right: 8px;
        flex-shrink: 0;
    }

    /* INPUT */
    .topbar-search input {
        flex: 1;
        min-width: 0; /* 👈 critical for flex inputs */

        height: 100%;
        border: none;
        outline: none;
        font-size: 14px;
        background: transparent;
        color: #24384d;
        padding-right: 8px;
    }

        /* PLACEHOLDER */
        .topbar-search input::placeholder {
            color: #8aa1b7;
        }

.global-search-voice-button {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #3b6fa3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
    opacity: 0.78;
    transition: background-color 0.18s ease, color 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.global-search-voice-button:hover,
.global-search-voice-button:focus-visible {
    background: #eef4ff;
    color: #2f5d87;
    opacity: 1;
}

.global-search-voice-button:focus-visible {
    outline: 2px solid rgba(59, 111, 163, 0.45);
    outline-offset: 1px;
}

.global-search-voice-button.is-listening {
    background: #dbeafe;
    color: #1d4ed8;
    opacity: 1;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.global-search-voice-button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.global-search-voice-button .k-svg-icon {
    width: 16px;
    height: 16px;
}


/* ============================= */
/* APPLICATIONS SLIDE PANEL     */
/* ============================= */

.app-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 900;
}

.app-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    box-shadow: 2px 0 18px rgba(0, 0, 0, 0.18);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    z-index: 901;
    display: flex;
    flex-direction: column;
}

    /* OPEN STATE */
    .app-panel.open {
        transform: translateX(0);
    }

.app-panel-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* HEADER */
.app-panel-header {
    height: 52px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 600;
}

/* CLOSE BUTTON */
.app-panel-close {
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
}

/* CONTENT */
.app-panel-content {
    padding: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* APP TILE */
.app-tile {
    padding: 14px;
    border-radius: 10px;
    background: #f5f7fb;
    text-align: center;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.12s ease;
}

    .app-tile:hover {
        background: #e8eef5;
        transform: translateY(-1px);
    }

.statera-workspace {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.statera-workspace-body {
    display: flex;
    flex: 1;
    min-height: 0; /* CRITICAL for flex children */
}

.statera-content {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
}

#mainTabs {
    flex: 1;
    min-height: 0;
}

    /*#mainTabs > .k-tabstrip {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    #mainTabs .k-content {
        flex: 1;
        overflow: hidden;
    }*/


.tab-iframe-host {
    width: 100%;
    height: 100%;
    position: relative;
}

.tab-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.app-error-banner {
    background: #fdecea;
    border-left: 4px solid #d93025;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: 6px;
}

    .app-error-banner .error-id {
        font-size: 12px;
        opacity: 0.75;
        margin-top: 6px;
    }

/* =========================================================
   GLOBAL ERROR STRIP (API / SYSTEM ERRORS)
   ========================================================= */

.error-strip {
    position: fixed;
    top: 12px; /* space from top */
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    display: none; /* hidden by default */
    max-width: 900px;
    width: calc(100% - 32px); /* responsive on small screens */
}

    .error-strip.show {
        display: block;
        pointer-events: auto;
    }

    .error-strip.hide {
        display: block;
        pointer-events: none;
    }

/* --- container --- */
.error-strip-content {
    margin: 0;
    max-width: 960px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    background: linear-gradient( 135deg, #fdecea, #fff5f4 );
    border-left: 5px solid #d93025;
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
    transform: translateY(12px); /* visual spacing without scroll */
}

.error-strip.show .error-strip-content {
    animation: errorSlideDown 260ms ease-out;
}

.error-strip.hide .error-strip-content {
    animation: errorSlideUp 220ms ease-in forwards;
}

/* =========================================================
   TEXT
   ========================================================= */

.error-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.error-title {
    font-size: 15px;
    font-weight: 600;
    color: #7a1b1b;
}

.error-detail {
    font-size: 14px;
    color: #5f1d1d;
}

.error-meta {
    font-size: 12px;
    color: #8a4a4a;
    opacity: 0.85;
}

/* =========================================================
   CLOSE BUTTON
   ========================================================= */

.error-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: #7a1b1b;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: background-color 120ms ease, color 120ms ease;
}

    .error-close:hover {
        background-color: rgba(217,48,37,0.12);
        color: #b42318;
    }

    .error-close:focus-visible {
        outline: 2px solid #d93025;
        outline-offset: 2px;
    }

/* =========================================================
   ANIMATION
   ========================================================= */

@keyframes errorSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes errorSlideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {
    .error-strip-content {
        margin: 8px 12px 0;
        border-radius: 8px;
    }
}

/* ===========================
   GLOBAL APP LOADER
   =========================== */

.app-loader {
    position: fixed;
    inset: 0;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

    .app-loader.hidden {
        opacity: 0;
        visibility: hidden;
    }

/* Prevent the static Standard loader from flashing before the saved preference is applied. */
.app-loader:not(.loading-style-standard):not(.loading-style-skeleton):not(.loading-style-progress) > .loader-content {
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    width: 120px;
    height: 120px;
    animation: pulse 1.8s ease-in-out infinite, rise 1.8s ease-in-out infinite;
}

.loader-text {
    margin-top: 14px;
    font-size: 14px;
    color: #6b7280;
    letter-spacing: 0.3px;
}

/* Subtle breathing effect */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.04);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.85;
    }
}

/* Slight upward motion = “data rising” */
@keyframes rise {
    0% {
        translate: 0 0;
    }

    50% {
        translate: 0 -4px;
    }

    100% {
        translate: 0 0;
    }
}



/* Context tree */
/*.context-tree {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    padding: 8px;
    overflow-y: auto;
}

    .context-tree.hidden {
        display: none;
    }

.context-tree-header {
    height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    background: linear-gradient( 180deg, #2b6cb0,*/ /* steel blue */
    /*#245a94 );
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    border-bottom: 1px solid rgba(0,0,0,.15);
}

.context-tree-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}*/



    /* Prevent focus bleed between components */
    .statera-app-rail li:focus,
    .sub-nav li:focus {
        outline: none;
    }

.statera-app-rail .rail-menu > li {
    position: relative; /* 🔑 THIS IS THE FIX */
}

/* Settings window title bar must override global Kendo modal title styles. */
.k-window.shell-settings-kendo-window > .k-window-titlebar,
.k-window.shell-settings-kendo-window > .k-window-titlebar.k-header {
    background: #ffffff !important;
    color: #172033 !important;
    border-bottom: 1px solid #e3eaf3 !important;
}

.k-window.shell-settings-kendo-window .k-window-titlebar-action,
.k-window.shell-settings-kendo-window .k-window-titlebar .k-button {
    color: #52677c !important;
    background: transparent !important;
}

.k-window.shell-settings-kendo-window {
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow: hidden;
}

.k-window.shell-settings-kendo-window .k-window-content {
    max-height: calc(100vh - 84px);
    overflow: hidden;
}

.k-window.shell-help-kendo-window {
    position: fixed !important;
    border: 1px solid #d9e4f0;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
    overflow: hidden;
}

.k-window.shell-help-kendo-window > .k-window-titlebar,
.k-window.shell-help-kendo-window > .k-window-titlebar.k-header {
    background: #ffffff !important;
    color: #172033 !important;
    border-bottom: 1px solid #e3eaf3 !important;
}

.k-window.shell-help-kendo-window .k-window-titlebar-action,
.k-window.shell-help-kendo-window .k-window-titlebar .k-button {
    color: #52677c !important;
    background: transparent !important;
}

.shell-help-window {
    padding: 18px;
    background: #ffffff;
    color: #172033;
    overflow: auto;
    box-sizing: border-box;
}

.shell-help-hero {
    padding: 16px;
    border: 1px solid #e4edf6;
    border-radius: 8px;
    background: #f7fafc;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.shell-help-kicker {
    display: inline-flex;
    margin-bottom: 6px;
    color: #1f5f91;
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.shell-help-hero h2 {
    margin: 0;
    color: #172033;
    font-size: 21px;
    font-weight: 850;
}

.shell-help-hero p {
    margin: 6px 0 0;
    color: #61758b;
    font-size: 13px;
    line-height: 1.45;
}

.shell-help-call {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #b9d2e8;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #185a8b;
    background: #ffffff;
    font-size: 12px;
    font-weight: 850;
    text-decoration: none;
    white-space: nowrap;
}

.shell-help-call:hover {
    border-color: #8fb8dc;
    background: #eef7ff;
    color: #10476f;
}

.shell-help-search {
    height: 40px;
    margin-top: 14px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #d8e4f1;
    border-radius: 8px;
    background: #ffffff;
}

.shell-help-search .k-icon {
    color: #5d7fa0;
}

.shell-help-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: #172033;
    font: 650 13px Manrope, "Segoe UI", sans-serif;
}

.shell-help-actions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.shell-help-action {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid #dfe8f3;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font: 800 12px Manrope, "Segoe UI", sans-serif;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease;
}

.shell-help-action:hover {
    border-color: #bcd0e4;
    background: #f7fbff;
}

.shell-help-action:focus-visible,
.shell-help-category:focus-visible,
.shell-help-topic:focus-visible,
.shell-help-route:focus-visible {
    outline: 2px solid #5b9bd5;
    outline-offset: 2px;
}

.shell-help-layout {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 14px;
}

.shell-help-sidebar {
    display: grid;
    align-content: start;
    gap: 7px;
}

.shell-help-category {
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #52677c;
    font: 800 12px Manrope, "Segoe UI", sans-serif;
    text-align: left;
    cursor: pointer;
}

.shell-help-category:hover {
    background: #f4f8fc;
    color: #172033;
}

.shell-help-category.is-active {
    border-color: #bcd0e4;
    background: #eef6fd;
    color: #185a8b;
}

.shell-help-content {
    min-width: 0;
}

.shell-help-context {
    padding: 13px 14px;
    border-radius: 8px;
    background: #f3f7fb;
}

.shell-help-context h3 {
    margin: 0;
    color: #172033;
    font-size: 14px;
    font-weight: 850;
}

.shell-help-context p {
    margin: 5px 0 0;
    color: #61758b;
    font-size: 12px;
    line-height: 1.4;
}

.shell-help-results {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.shell-help-empty {
    padding: 16px;
    border: 1px dashed #cbd9e6;
    border-radius: 8px;
    color: #61758b;
    background: #fbfdff;
    font-size: 13px;
    line-height: 1.45;
}

.shell-help-topic {
    width: 100%;
    padding: 14px;
    border: 1px solid #dfe8f3;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease;
    box-sizing: border-box;
}

.shell-help-topic:hover {
    border-color: #bcd0e4;
    background: #fbfdff;
}

.shell-help-topic-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.shell-help-topic-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.shell-help-topic-toggle {
    width: 22px;
    height: 22px;
    border: 1px solid #cbdbea;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #185a8b;
    background: #f5f9fd;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}

.shell-help-topic h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
}

.shell-help-tag {
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: #edf4fa;
    color: #52677c;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.shell-help-topic p {
    margin: 7px 0 0;
    color: #61758b;
    font-size: 12px;
    line-height: 1.45;
}

.shell-help-shot {
    margin: 12px 0 0;
}

.shell-help-shot-frame {
    position: relative;
    min-height: 188px;
    overflow: hidden;
    border: 1px solid #d8e4f1;
    border-radius: 8px;
    background: #f8fbfe;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
}

.shell-help-shot-topbar {
    height: 28px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid #dfe8f3;
    background: #ffffff;
}

.shell-help-shot-topbar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c7d5e4;
}

.shell-help-shot-topbar strong {
    margin-left: 6px;
    color: #52677c;
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.shell-help-shot-topbar em {
    margin-left: auto;
    padding: 2px 7px;
    border-radius: 999px;
    background: #edf4fa;
    color: #61758b;
    font-size: 9px;
    font-style: normal;
    font-weight: 850;
    text-transform: uppercase;
}

.shell-help-shot.has-real-screenshot .shell-help-shot-topbar em {
    background: #e6f6ef;
    color: #23724f;
}

.shell-help-shot.is-illustrative .shell-help-shot-frame {
    border-style: dashed;
}

.shell-help-shot-body {
    position: relative;
    min-height: 160px;
    padding: 14px;
}

.shell-help-shot-image {
    display: block;
    width: 100%;
    max-height: 320px;
    object-fit: contain;
    border-radius: 6px;
    background: #ffffff;
}

.shell-help-shot figcaption {
    margin-top: 7px;
    color: #61758b;
    font-size: 11px;
    line-height: 1.45;
}

.shell-help-shot-callout {
    position: absolute;
    z-index: 2;
    max-width: 122px;
    padding: 5px 8px;
    border: 1px solid rgba(24, 90, 139, .28);
    border-radius: 999px;
    background: #ffffff;
    color: #185a8b;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .12);
    font-size: 10px;
    font-weight: 850;
    line-height: 1.2;
    white-space: nowrap;
}

.shell-help-shot-callout::before {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2d82bd;
    box-shadow: 0 0 0 4px rgba(45, 130, 189, .16);
}

.shell-help-shot-callout-1 {
    top: 12px;
    left: 18px;
}

.shell-help-shot-callout-1::before {
    left: 10px;
    bottom: -14px;
}

.shell-help-shot-callout-2 {
    top: 54px;
    right: 18px;
}

.shell-help-shot-callout-2::before {
    right: 13px;
    bottom: -14px;
}

.shell-help-shot-callout-3 {
    right: 26px;
    bottom: 20px;
}

.shell-help-shot-callout-3::before {
    right: 14px;
    top: -14px;
}

.shell-help-shot-callout-4 {
    left: 22px;
    bottom: 18px;
}

.shell-help-shot-callout-4::before {
    left: 14px;
    top: -14px;
}

.shot-shell,
.shot-settings,
.shot-report,
.shot-schedule {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    height: 132px;
}

.shot-shell aside,
.shot-settings aside,
.shot-schedule aside,
.shot-report aside {
    padding: 10px;
    border-radius: 7px;
    background: #e8f0f8;
    display: grid;
    align-content: start;
    gap: 8px;
}

.shot-shell aside span,
.shot-settings aside span,
.shot-schedule aside span,
.shot-report aside span,
.shot-toolbar span,
.shot-command,
.shot-tabs span,
.shot-grid span,
.shot-table span,
.shot-support span {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: #bdd1e4;
}

.shot-shell main,
.shot-settings main,
.shot-report main {
    padding: 12px;
    border-radius: 7px;
    background: #ffffff;
    display: grid;
    gap: 9px;
}

.shot-shell main div {
    height: 30px;
    border-radius: 7px;
    background: #e7f3fb;
}

.shot-shell main b,
.shot-settings main b,
.shot-report main b,
.shot-schedule main b,
.shot-table b,
.shot-timesheet b,
.shot-token b {
    display: block;
    border-radius: 6px;
    background: #dfeaf4;
}

.shot-toolbar {
    display: grid;
    grid-template-columns: 1fr 82px 68px;
    gap: 8px;
    margin-bottom: 12px;
}

.shot-command {
    width: 64%;
    height: 22px;
    margin-bottom: 10px;
    background: #e7f3fb;
}

.shot-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-bottom: 12px;
}

.shot-tabs span {
    height: 24px;
}

.shot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.shot-grid span {
    height: 44px;
    border-radius: 7px;
    background: #ffffff;
    border: 1px solid #e0e9f3;
}

.shot-timesheet {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
}

.shot-timesheet span {
    padding: 7px 0;
    border-radius: 6px;
    background: #e7f3fb;
    color: #52677c;
    font-size: 10px;
    font-weight: 850;
    text-align: center;
}

.shot-timesheet b {
    height: 35px;
}

.shot-schedule main {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.shot-table {
    display: grid;
    grid-template-columns: 1.3fr 1fr .8fr;
    gap: 7px;
}

.shot-table span {
    height: 18px;
    background: #e7f3fb;
}

.shot-table b {
    height: 26px;
}

.shot-settings main {
    grid-template-columns: repeat(2, 1fr);
}

.shot-settings main b {
    min-height: 45px;
}

.shot-report {
    grid-template-columns: 132px minmax(0, 1fr);
}

.shot-report aside button,
.shot-token button {
    min-height: 24px;
    border: 0;
    border-radius: 6px;
    background: #2d82bd;
}

.shot-report main {
    grid-template-columns: repeat(2, 1fr);
}

.shot-report main b {
    min-height: 45px;
}

.shot-alert {
    height: 34px;
    margin-bottom: 10px;
    border-radius: 7px;
    background: #fff4d9;
    border: 1px solid #f0d38a;
}

.shot-support {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.shot-support span {
    height: 52px;
    border-radius: 7px;
    background: #ffffff;
    border: 1px solid #e0e9f3;
}

.shot-token {
    display: grid;
    grid-template-columns: 1fr 1fr 78px;
    gap: 8px;
}

.shot-token b {
    height: 30px;
}

.shell-help-steps {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #34465a;
    font-size: 12px;
    line-height: 1.5;
}

.shell-help-routes {
    margin-top: 11px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.shell-help-route {
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #d8e4f1;
    border-radius: 7px;
    background: #ffffff;
    color: #185a8b;
    font: 800 11px Manrope, "Segoe UI", sans-serif;
    cursor: pointer;
}

.shell-help-route:hover {
    border-color: #9fc3e2;
    background: #eef7ff;
}

@media (max-width: 760px) {
    .shell-help-hero,
    .shell-help-layout {
        display: block;
    }
}

.app-loader .loading-skeleton-content,
.app-loader .loading-progress-content {
    display: none;
}

.app-loader [hidden] {
    display: none !important;
}

.app-loader.loading-style-skeleton {
    align-items: flex-start;
    justify-content: stretch;
    padding: 8vh clamp(24px, 7vw, 110px);
    background: #f5f8fc;
}

.app-loader.loading-style-skeleton .loading-standard-content,
.app-loader.loading-style-progress .loading-standard-content {
    display: none;
}

.app-loader.loading-style-skeleton .loading-skeleton-content { display: grid; }
.app-loader.loading-style-progress .loading-progress-content { display: grid; }

.app-loader .loading-skeleton-content { width: 100%; gap: 18px; }
.app-loader .loading-skeleton-heading,
.app-loader .loading-skeleton-toolbar,
.app-loader .loading-skeleton-grid i {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #e5edf5;
}
.app-loader .loading-skeleton-heading::after,
.app-loader .loading-skeleton-toolbar::after,
.app-loader .loading-skeleton-grid i::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.82), transparent);
    animation: statera-skeleton-wave 1.45s ease-in-out infinite;
}
.app-loader .loading-skeleton-heading { width: min(42%, 430px); height: 34px; }
.app-loader .loading-skeleton-toolbar { width: 100%; height: 58px; }
.app-loader .loading-skeleton-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.app-loader .loading-skeleton-grid i { display: block; height: 66px; }
.app-loader .loading-progress-content { width: min(520px, calc(100vw - 48px)); gap: 12px; }
.app-loader .loading-progress-label { color: #536b84; font-size: 14px; font-weight: 650; }
.app-loader .loading-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe6f1;
}
.app-loader .loading-progress-track span {
    display: block;
    width: 38%;
    height: 100%;
    border-radius: inherit;
    background: #2f6fa5;
    animation: statera-progress-slide 1.25s ease-in-out infinite;
}

@keyframes statera-skeleton-wave { 100% { transform: translateX(100%); } }
@keyframes statera-progress-slide { 0% { transform: translateX(-110%); } 100% { transform: translateX(300%); } }

@media (max-width: 760px) {
    .shell-help-call {
        margin-top: 12px;
    }

    .shell-help-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shell-help-sidebar {
        margin-bottom: 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shell-help-shot-callout {
        position: static;
        display: inline-flex;
        margin: 8px 6px 0 0;
        white-space: normal;
    }

    .shell-help-shot-callout::before {
        display: none;
    }

    .shot-shell,
    .shot-settings,
    .shot-report,
    .shot-schedule {
        grid-template-columns: 72px minmax(0, 1fr);
    }
}

.shell-settings-window {
    padding: 18px;
    background: #ffffff;
    box-sizing: border-box;
}

.shell-settings-tabstrip {
    display: flex;
    min-height: 282px;
    max-height: calc(100vh - 120px);
}

.shell-settings-tabstrip.k-tabstrip {
    border: 0;
    background: transparent;
}

.shell-settings-tabstrip > .k-tabstrip-items-wrapper {
    flex: 0 0 152px;
    width: 152px;
    border: 0;
    border-right: 1px solid #e3eaf3;
    background: #ffffff;
    padding: 0 10px 0 0;
}

.shell-settings-tabstrip .k-tabstrip-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.shell-settings-tabstrip .k-item {
    position: relative;
    border: 0 !important;
    border-radius: 6px;
    background: transparent !important;
    color: #52677c;
    justify-content: flex-start;
    min-height: 38px;
    overflow: hidden;
}

    .shell-settings-tabstrip .k-item:hover {
        color: #20364d;
        background: #f3f9fe !important;
    }

    .shell-settings-tabstrip .k-item.k-active,
    .shell-settings-tabstrip .k-item.k-state-active {
        background: #e6f4fb !important;
        color: #0f172a;
        font-weight: 700;
        box-shadow: none;
    }

    .shell-settings-tabstrip .k-item.k-active::before,
    .shell-settings-tabstrip .k-item.k-state-active::before {
        content: "";
        position: absolute;
        left: 0;
        top: 6px;
        bottom: 6px;
        width: 4px;
        border-radius: 0 4px 4px 0;
        background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    }

.shell-settings-tabstrip .k-link {
    justify-content: flex-start;
    width: 100%;
    padding: 9px 14px 9px 18px;
    font-size: 13px;
    font-weight: 650;
}

.shell-settings-tabstrip .k-content,
.shell-settings-tabstrip .k-tabstrip-content {
    flex: 1 1 auto;
    min-height: 230px;
    padding: 0 0 0 18px;
    border: 0;
    background: transparent;
    overflow: auto;
}

.shell-settings-section {
    display: grid;
    gap: 14px;
}

.shell-loading-settings {
    padding-top: 14px;
    border-top: 1px solid #e1e9f2;
}

.shell-loading-settings h3 {
    margin: 0;
    color: #20364d;
    font-size: 14px;
    font-weight: 800;
}

.shell-loading-settings > p {
    margin: 4px 0 0;
    color: #718398;
    font-size: 12px;
}

.shell-loading-choice {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.shell-loading-option {
    position: relative;
    min-height: 100px;
    padding: 12px;
    border: 1px solid #d7e2ed;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.shell-loading-option:hover {
    transform: translateY(-1px);
    border-color: #86acd0;
}

.shell-loading-option.is-selected {
    border-color: #2f6fa5;
    box-shadow: 0 0 0 2px rgba(47,111,165,.12);
}

.shell-loading-option input {
    position: absolute;
    top: 10px;
    right: 10px;
}

.shell-loading-option strong,
.shell-loading-option small {
    display: block;
    padding-right: 20px;
}

.shell-loading-option strong { color: #20364d; font-size: 12px; }
.shell-loading-option small { margin-top: 5px; color: #718398; font-size: 11px; line-height: 1.35; }

.shell-loading-preview {
    display: flex;
    align-items: center;
    height: 24px;
    margin-bottom: 9px;
}

.shell-loading-preview.is-standard::before {
    content: "";
    width: 22px;
    height: 22px;
    border: 3px solid #d4e2ef;
    border-top-color: #2f6fa5;
    border-radius: 50%;
}

.shell-loading-preview.is-skeleton { gap: 4px; }
.shell-loading-preview.is-skeleton::before,
.shell-loading-preview.is-skeleton::after {
    content: "";
    height: 18px;
    border-radius: 4px;
    background: #dce7f1;
}
.shell-loading-preview.is-skeleton::before { width: 42%; }
.shell-loading-preview.is-skeleton::after { width: 54%; }
.shell-loading-preview.is-progress::before {
    content: "";
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2f6fa5 38%, #dce7f1 38%);
}

@media (max-width: 720px) {
    .shell-loading-choice { grid-template-columns: 1fr; }
}

    .shell-settings-section[hidden] {
        display: none;
    }

.shell-settings-heading h2 {
    margin: 0;
    color: #172033;
    font-size: 17px;
    font-weight: 750;
}

.shell-settings-heading p {
    margin: 4px 0 0;
    color: #61758b;
    font-size: 13px;
}

.shell-mic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.shell-screen-preference-grid {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.shell-screen-preference-toggle {
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #dce6f0;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

    .shell-screen-preference-toggle.is-disabled {
        opacity: .58;
    }

    .shell-screen-preference-toggle span {
        display: grid;
        gap: 3px;
        min-width: 0;
    }

    .shell-screen-preference-toggle strong {
        color: #20364d;
        font-size: 13px;
        font-weight: 800;
    }

    .shell-screen-preference-toggle small {
        color: #718398;
        font-size: 12px;
        line-height: 1.35;
    }

.shell-mic-toggle,
.shell-mic-field,
.shell-mic-permission,
.shell-mic-test {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
}

.shell-mic-toggle {
    justify-content: space-between;
}

    .shell-mic-toggle span,
    .shell-mic-permission span {
        display: grid;
        gap: 2px;
        min-width: 0;
    }

    .shell-mic-toggle strong,
    .shell-mic-permission strong {
        color: #20364d;
        font-size: 13px;
        font-weight: 700;
    }

    .shell-mic-toggle small,
    .shell-mic-permission small,
    .shell-mic-footer small,
    #shellMicTestStatus {
        color: #718398;
        font-size: 12px;
    }

.shell-mic-field {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
}

    .shell-mic-field label {
        color: #61758b;
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .shell-mic-field select {
        width: 100%;
        min-height: 34px;
        border: 1px solid #cfd8e3;
        border-radius: 6px;
        background: #ffffff;
        color: #20364d;
        padding: 0 10px;
    }

.shell-mic-permission {
    justify-content: space-between;
}

.shell-mic-test {
    grid-column: 1 / -1;
}

.shell-mic-meter {
    flex: 1 1 auto;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e3eaf3;
}

    .shell-mic-meter span {
        display: block;
        width: 0;
        height: 100%;
        border-radius: inherit;
        background: linear-gradient(90deg, #2563eb, #14b8a6);
        transition: width 80ms linear;
    }

.shell-mic-grid button,
.shell-mic-footer button {
    min-height: 32px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #ffffff;
    color: #20364d;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    padding: 0 12px;
}

    .shell-mic-grid button:hover,
    .shell-mic-footer button:hover {
        border-color: #2563eb;
        color: #1d4ed8;
    }

    .shell-mic-grid button:disabled {
        cursor: not-allowed;
        opacity: 0.55;
    }

.shell-voice-command-list {
    display: grid;
    gap: 10px;
    padding-top: 2px;
}

.shell-voice-command-list h3 {
    margin: 0;
    color: #20364d;
    font-size: 13px;
    font-weight: 800;
}

.shell-voice-command-list p {
    margin: 3px 0 0;
    color: #718398;
    font-size: 12px;
}

.shell-voice-command-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.shell-voice-command-card {
    min-width: 0;
    padding: 10px;
    display: grid;
    gap: 4px;
    border: 1px solid #e3eaf3;
    border-radius: 7px;
    background: #f8fbff;
}

.shell-voice-command-card strong {
    color: #20364d;
    font-size: 12px;
    font-weight: 800;
}

.shell-voice-command-card span {
    overflow: hidden;
    color: #61758b;
    font-size: 11px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shell-mic-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

@media (max-width: 680px) {
    .k-window.shell-settings-kendo-window .k-window-content {
        max-height: calc(100vh - 72px);
    }

    .shell-settings-tabstrip {
        flex-direction: column;
        max-height: calc(100vh - 108px);
    }

    .shell-settings-tabstrip > .k-tabstrip-items-wrapper {
        flex: 0 0 auto;
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #e3eaf3;
        padding: 0 0 10px;
    }

    .shell-mic-grid {
        grid-template-columns: 1fr;
    }

    .shell-voice-command-grid {
        grid-template-columns: 1fr;
    }

    .shell-mic-test,
    .shell-mic-permission,
    .shell-mic-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Change company modal */
.k-window.company-switch-kendo-window {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(23, 42, 64, 0.22);
}

.k-window.company-switch-kendo-window > .k-window-titlebar,
.k-window.company-switch-kendo-window > .k-window-titlebar.k-header {
    background: #ffffff !important;
    color: #172033 !important;
    border-bottom: 1px solid #e3eaf3 !important;
    font-weight: 650;
}

.k-window.company-switch-kendo-window .k-window-titlebar-action,
.k-window.company-switch-kendo-window .k-window-titlebar .k-button {
    color: #52677c !important;
    background: transparent !important;
}

/* Change password modal */
.k-window.change-password-kendo-window {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(23, 42, 64, 0.22);
}

.k-window.change-password-kendo-window > .k-window-titlebar,
.k-window.change-password-kendo-window > .k-window-titlebar.k-header {
    background: #ffffff !important;
    color: #172033 !important;
    border-bottom: 1px solid #e3eaf3 !important;
    font-weight: 650;
}

.k-window.change-password-kendo-window .k-window-titlebar-action,
.k-window.change-password-kendo-window .k-window-titlebar .k-button {
    color: #52677c !important;
    background: transparent !important;
}

.k-window.change-password-kendo-window .k-window-content {
    padding: 0;
    background: #ffffff;
}

.company-switch-modal {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px;
    background: #ffffff;
}

.company-switch-current {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #f7faff;
}

.company-switch-current-label,
.company-switch-field label {
    color: #61758b;
    font-size: 12px;
    font-weight: 650;
    text-transform: uppercase;
}

.company-switch-current strong {
    color: #20364d;
    font-size: 15px;
}

.company-switch-current small {
    color: #718398;
    font-size: 12px;
}

.company-switch-field {
    display: grid;
    gap: 7px;
}

.company-switch-field .k-dropdownlist,
.company-switch-field .k-picker {
    width: 100%;
}

.company-switch-option {
    display: grid;
    gap: 2px;
    padding: 5px 0;
}

.company-switch-option strong,
.company-switch-value {
    color: #20364d;
    font-weight: 650;
}

.company-switch-option small {
    color: #718398;
    font-size: 12px;
}

.company-switch-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 2px;
}

.company-switch-btn {
    min-width: 88px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 650;
}

.company-switch-btn-secondary {
    background: #ffffff;
    color: #374151;
    border-color: #cfd8e3;
}

.company-switch-btn-secondary:hover {
    background: #f6f8fb;
}

.company-switch-btn-primary {
    background: #2f5d87;
    color: #ffffff;
    border-color: #2f5d87;
}

.company-switch-btn-primary:hover {
    background: #254f76;
}

.company-switch-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 93, 135, 0.28);
}

/* My Day scheduler modal */
.k-window.my-day-kendo-window {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(23, 42, 64, 0.24);
}

.k-window.my-day-kendo-window > .k-window-titlebar,
.k-window.my-day-kendo-window > .k-window-titlebar.k-header {
    background: #ffffff !important;
    color: #172033 !important;
    border-bottom: 1px solid #e3eaf3 !important;
    font-weight: 650;
}

.k-window.my-day-kendo-window .k-window-content {
    padding: 0;
}

.my-day-modal {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    background: #f7faff;
}

.my-day-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.my-day-eyebrow {
    color: #61758b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.my-day-hero h2 {
    margin: 2px 0 2px;
    color: #20364d;
    font-size: 22px;
    line-height: 1.2;
}

.my-day-hero p {
    margin: 0;
    color: #65798f;
    font-size: 13px;
}

.my-day-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.my-day-icon-btn,
.my-day-today-btn,
.my-day-add-btn {
    height: 32px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #ffffff;
    color: #2f5d87;
    cursor: pointer;
    font-weight: 650;
}

.my-day-icon-btn {
    width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.my-day-icon-btn svg,
.my-day-icon-btn .k-svg-icon {
    width: 18px;
    height: 18px;
}

.my-day-today-btn,
.my-day-add-btn {
    padding: 0 13px;
}

.my-day-icon-btn:hover,
.my-day-today-btn:hover,
.my-day-add-btn:hover {
    background: #eef5fb;
}

.my-day-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.my-day-summary div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #ffffff;
}

.my-day-summary span {
    color: #61758b;
    font-size: 12px;
    font-weight: 650;
}

.my-day-summary strong {
    color: #20364d;
    font-size: 20px;
}

.my-day-scheduler-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #ffffff;
    color: #61758b;
    font-size: 13px;
}

.my-day-add-btn {
    background: #2f5d87;
    border-color: #2f5d87;
    color: #ffffff;
}

.my-day-add-btn:hover {
    background: #254f76;
}

.my-day-scheduler {
    border: 1px solid #dce6f1;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.my-day-scheduler .k-scheduler-toolbar {
    background: #ffffff;
    border-bottom-color: #e3eaf3;
}

.my-day-scheduler-event {
    display: grid;
    gap: 2px;
    line-height: 1.2;
}

.my-day-scheduler-event strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
}

.my-day-scheduler-event span {
    font-size: 11px;
    opacity: 0.85;
}

/* Notifications modal */
.k-window.notifications-kendo-window {
    position: fixed !important;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 48px);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 18px 42px rgba(23, 42, 64, 0.24);
}

.k-window.notifications-kendo-window > .k-window-titlebar,
.k-window.notifications-kendo-window > .k-window-titlebar.k-header {
    background: #ffffff !important;
    color: #172033 !important;
    border-bottom: 1px solid #e3eaf3 !important;
    font-weight: 650;
}

.k-window.notifications-kendo-window .k-window-content {
    padding: 0;
    overflow: hidden;
}

.notifications-modal {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    height: 100%;
    min-height: 0;
    gap: 14px;
    padding: 18px;
    background: #f7faff;
}

.notifications-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.notifications-eyebrow {
    color: #61758b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.notifications-hero h2 {
    margin: 2px 0;
    color: #20364d;
    font-size: 22px;
    line-height: 1.2;
}

.notifications-hero p {
    margin: 0;
    color: #65798f;
    font-size: 13px;
}

.notifications-actions {
    display: flex;
    gap: 8px;
}

.notifications-action-btn,
.notifications-filter,
.notification-open,
.notification-toggle-read {
    height: 32px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #ffffff;
    color: #2f5d87;
    cursor: pointer;
    font-weight: 650;
}

.notifications-action-btn,
.notification-open {
    padding: 0 12px;
}

.notifications-action-btn:not(.notifications-action-secondary) {
    background: #2f5d87;
    border-color: #2f5d87;
    color: #ffffff;
}

.notifications-action-btn:hover,
.notifications-filter:hover,
.notification-open:hover,
.notification-toggle-read:hover {
    background: #eef5fb;
}

.notifications-action-btn:not(.notifications-action-secondary):hover {
    background: #254f76;
}

.notifications-action-btn.is-active {
    background: #e5f0fa;
    border-color: #7ca2c3;
}

.notifications-preferences {
    padding: 14px;
    border: 1px solid #cadced;
    border-radius: 8px;
    background: #ffffff;
}

.notifications-preferences[hidden] {
    display: none;
}

.notifications-preferences-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.notifications-preferences-heading div {
    display: grid;
    gap: 2px;
}

.notifications-preferences-heading strong {
    color: #20364d;
    font-size: 14px;
}

.notifications-preferences-heading span,
.notifications-preferences-note {
    color: #65798f;
    font-size: 12px;
}

.notifications-preference-grid {
    display: grid;
    gap: 8px;
}

.notifications-preference-row {
    display: grid;
    grid-template-columns: auto minmax(170px, 1fr) minmax(180px, auto);
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #e1eaf3;
    border-radius: 7px;
    background: #f8fbfe;
}

.notifications-preference-row > span {
    display: grid;
    gap: 1px;
}

.notifications-preference-row strong {
    color: #29435c;
    font-size: 13px;
}

.notifications-preference-row small {
    color: #71859a;
    font-size: 11px;
}

.notifications-preference-row input {
    width: 17px;
    height: 17px;
    accent-color: #2f5d87;
}

.notifications-preference-row select {
    height: 32px;
    padding: 0 28px 0 9px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #ffffff;
    color: #38556e;
    font-size: 12px;
}

.notifications-preference-fixed-level {
    justify-self: end;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff1e8;
    color: #a44a18;
    font-size: 11px;
    font-weight: 700;
}

.notifications-preferences-note {
    display: block;
    margin-top: 10px;
}

.notifications-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #ffffff;
}

.notifications-filter {
    padding: 0 12px;
}

.notifications-filter.is-active {
    background: #2f5d87;
    border-color: #2f5d87;
    color: #ffffff;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    border: 1px solid #dce6f1;
    border-radius: 8px;
    background: #ffffff;
}

.notification-item {
    display: grid;
    grid-template-columns: 10px 1fr auto;
    gap: 12px;
    padding: 14px;
    border-bottom: 1px solid #edf2f7;
    cursor: pointer;
}

.notification-item:last-child {
    border-bottom: 0;
}

.notification-item:hover {
    background: #f7faff;
}

.notification-item.is-read {
    opacity: 0.74;
}

.notification-status {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 999px;
    background: transparent;
}

.notification-item.is-unread .notification-status {
    background: #2f5d87;
}

.notification-item.is-high .notification-status {
    background: #d64045;
}

.notification-body {
    min-width: 0;
}

.notification-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.notification-title-row strong {
    color: #20364d;
    font-size: 14px;
}

.notification-title-row span {
    flex: 0 0 auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #edf4fb;
    color: #44647e;
    font-size: 11px;
    font-weight: 700;
}

.notification-body p {
    margin: 5px 0 7px;
    color: #52677c;
    font-size: 13px;
    line-height: 1.35;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7a8fa4;
    font-size: 12px;
}

.notification-meta em {
    color: #b4232a;
    font-style: normal;
    font-weight: 700;
}

.notification-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-toggle-read {
    width: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-toggle-read .k-svg-icon {
    width: 16px;
    height: 16px;
    color: #2f5d87;
    fill: currentColor;
}

.notifications-empty {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 180px;
    color: #65798f;
}

.notifications-empty strong {
    color: #20364d;
}

@media (max-width: 680px) {
    .notifications-hero,
    .notifications-preferences-heading,
    .notification-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .notifications-actions {
        flex-wrap: wrap;
    }

    .notifications-preference-row {
        grid-template-columns: auto 1fr;
    }

    .notifications-preference-row select {
        grid-column: 2;
    }

    .notification-item {
        grid-template-columns: 10px 1fr;
    }

    .notification-row-actions {
        grid-column: 2;
        justify-content: flex-end;
    }
}

@media (max-width: 780px) {
    .my-day-hero,
    .my-day-scheduler-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .my-day-summary {
        grid-template-columns: 1fr;
    }
}

/*Removed*/

    /* Selected row background */
    /*.sub-nav .k-treeview-leaf.k-selected) {
        background: rgba(37, 99, 235, 0.14);
    }*/

/* ==========================================
   KENDO TREEVIEW – FORCE FLAT (NO INDENT)
   ========================================== */







.statera-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}

.statera-workspace,
.statera-workspace-body,
.statera-content {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
}


   /* #mainTabs .k-tabstrip-item.k-active {
        background: #ffffff;
        border-bottom-color: transparent;
    }*/




/* TAB HEADER BAR (wrapper) */
/*#mainTabs .k-tabstrip-items-wrapper {
    min-height: 0px;
    display: flex;
    align-items: stretch;*/ /* 🔑 NOT center */
    /*padding: 0 0px;
}*/

/* TAB LIST (this is what was missing) */
/*#mainTabs .k-tabstrip-items {
    display: flex;
    align-items: stretch;
    height: 100%;*/ /* 🔑 fills the wrapper */
    /*gap: 0px;
}*/

/* INDIVIDUAL TAB */
/*#mainTabs .k-tabstrip-item {
    display: flex;
    align-items: stretch;
}*/

    /* TAB LINK (controls height via padding) */
    /*#mainTabs .k-tabstrip-item .k-link {
        display: flex;
        align-items: center;
        padding: 0 0px;
        height: 100%;*/ /* 🔑 fills tab */
        /*font-size: 14px;
        font-weight: 600;
        line-height: 1;
    }

#mainTabs .k-tabstrip-content.k-active {
    display: flex !important;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
}*/

/* ===== MAIN TABS – FINAL LOCK ===== */

.statera-content {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
}

/* flex chain */
.statera-content,
#mainTabs {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.statera-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden; /* 🔑 */
}

.global-search-wrapper {
    position: relative;
    width: 320px; /* or 100% */
}

/* The input */
#globalSearch {
    width: 100%;
    box-sizing: border-box;
}


/* Hide ComboBox dropdown button */
.k-combobox .k-select {
    display: none !important;
}

/* Let input take full width */
.k-combobox .k-input {
    padding-right: 8px;
}

.autocomplete-results {
    position: fixed;
    display: none;
    width: 360px;
    max-height: 320px;
    overflow-y: auto;
    background-color: #ffffff; /* 👈 solid background */
    border: 1px solid #cbd5e1;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    z-index: 2147483647;
}

.autocomplete-results.visible {
    display: block;
}

/* Group headers */
.search-group {
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #4b6ea9;
    background: #f3f6fb;
    text-transform: uppercase;
}

/* Items */
.search-item {
    padding: 10px 14px;
    cursor: pointer;
}

    .search-item:hover {
        background: #eef4ff;
    }

#global-search-results {
    display: none;
}

    #global-search-results.visible {
        display: block;
    }


#global-search-results {
    background-color: #ffffff !important;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-item-icon {
    color: #64748b; /* muted slate */
    font-size: 14px;
    flex-shrink: 0;
}

    .search-item-icon.right {
        margin-left: auto; /* optional extra safety */
    }

/* Backdrop */
.iframe-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 3000;
}

/* Centered sliding panel */
.iframe-panel {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    max-width: 1100px;
    height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    transition: top 0.35s cubic-bezier(.25,.8,.25,1);
    overflow: hidden;
}

    /* Iframe fills panel */
    .iframe-panel iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

/* OPEN STATE */
.iframe-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

    .iframe-overlay.open .iframe-panel {
        top: 50%;
        transform: translate(-50%, -50%);
    }

/* Overlay backdrop */
.iframe-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 3000;
}

/* Panel */
.iframe-panel {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    max-width: 1100px;
    height: 80vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    transition: top 0.35s cubic-bezier(.25,.8,.25,1), transform 0.35s cubic-bezier(.25,.8,.25,1);
    overflow: hidden;
}

/* OPEN STATE */
.iframe-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

    .iframe-overlay.open .iframe-panel {
        top: 50%;
        transform: translate(-50%, -50%);
    }

#globalSearch {
    outline: none;
    border: none; /* or your custom border */
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

    #globalSearch:focus {
        outline: none;
        box-shadow: none;
        border-color: transparent; /* optional */
    }

    /* 🔥 Kill Chrome autofill styling */
    #globalSearch:-webkit-autofill,
    #globalSearch:-webkit-autofill:hover,
    #globalSearch:-webkit-autofill:focus,
    #globalSearch:-webkit-autofill:active {
        -webkit-box-shadow: 0 0 0 1000px #eef4ff inset !important;
        box-shadow: 0 0 0 1000px #eef4ff inset !important;
        -webkit-text-fill-color: #1f2937 !important;
        caret-color: #1f2937;
        transition: background-color 9999s ease-out 0s;
    }

.search-input-wrapper {
    flex: 1; /* 👈 THIS is the key */
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.statera-topbar .topbar-search {
    width: 520px;
}

@media (max-width: 1400px) {
    .statera-topbar .topbar-search {
        width: 440px;
    }
}

@media (max-width: 1100px) {
    .statera-topbar .topbar-search {
        width: 360px;
    }
}

.search-input-wrapper #globalSearch {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}

.global-search-record-count {
    width: 82px;
    height: 24px;
    flex: 0 0 82px;
    padding: 0 20px 0 7px;
    border: 0;
    border-left: 1px solid #d8e1eb;
    outline: 0;
    color: #536b82;
    background: #ffffff;
    font: 600 11px/1 "Manrope", "Segoe UI", sans-serif;
    cursor: pointer;
}

.global-search-record-count:focus-visible {
    border-radius: 5px;
    box-shadow: 0 0 0 2px rgba(59, 111, 163, .25);
}


.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 2147483647;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    width: min(380px, calc(100vw - 32px));
    min-height: 74px;
    padding: 14px 16px 14px 14px;
    overflow: hidden;
    border: 1px solid rgba(31, 78, 121, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    color: #111827;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08);
    opacity: 0;
    transform: translate3d(calc(100% + 32px), 18px, 0) scale(0.98);
    transition:
        transform 460ms cubic-bezier(0.16, 1, 0.3, 1),
        opacity 260ms ease,
        box-shadow 220ms ease;
    pointer-events: none;
    will-change: transform, opacity;
}

    .toast::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 4px;
        background: linear-gradient(180deg, #1f4e79 0%, #2c6aa0 100%);
    }

    .toast::after {
        content: "";
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        justify-self: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background:
            linear-gradient(135deg, rgba(31, 78, 121, 0.98), rgba(44, 106, 160, 0.98)),
            #1f4e79;
        box-shadow: 0 8px 18px rgba(31, 78, 121, 0.22);
    }

    .toast.show,
    .toast.hide {
        pointer-events: auto;
    }

    .toast.show {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    .toast.hide {
        opacity: 0;
        transform: translate3d(0, 140px, 0) scale(0.92);
        transition:
            transform 360ms cubic-bezier(0.74, 0, 0.84, 0),
            opacity 300ms ease 40ms;
    }

.toast-success {
    background:
        linear-gradient(135deg, rgba(239, 246, 255, 0.88), rgba(228, 239, 249, 0.8)),
        rgba(255, 255, 255, 0.96);
}

.toast-content {
    display: flex;
    flex-direction: column;
    grid-column: 2;
    min-width: 0;
    gap: 3px;
    padding-top: 1px;
}

    .toast-content::before {
        content: "";
        position: absolute;
        left: 25px;
        top: 24px;
        width: 12px;
        height: 7px;
        border-left: 2px solid #ffffff;
        border-bottom: 2px solid #ffffff;
        transform: rotate(-45deg);
        z-index: 1;
    }

.toast-title {
    color: #0f172a;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.25;
}

.toast-message {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.35;
}

@media (prefers-reduced-motion: reduce) {
    .toast,
    .toast.hide {
        transition: opacity 120ms ease;
        transform: none;
    }
}

.statera-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

    .statera-modal-backdrop.hidden {
        display: none;
    }

.statera-confirm {
    width: 360px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
    overflow: hidden;
}

.confirm-header {
    padding: 14px 16px;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
}

.confirm-body {
    padding: 16px;
    color: #374151;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
}

.confirm-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid #e5e7eb;
}

/* Base button */
.btn-confirm {
    min-width: 88px;
    padding: 6px 16px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* Secondary (No) */
.btn-secondary {
    background: #ffffff;
    color: #374151;
    border-color: #d1d5db;
}

    .btn-secondary:hover {
        background: #f9fafb;
        border-color: #9ca3af;
    }

/* Primary (Yes) */
.btn-primary {
    background: #2563eb; /* Statera blue */
    color: #ffffff;
    border-color: #2563eb;
}

    .btn-primary:hover {
        background: #1d4ed8;
        border-color: #1d4ed8;
    }

/* Focus (keyboard users ❤️) */
.btn-confirm:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .35);
}

/* Optional: subtle press */
.btn-confirm:active {
    transform: translateY(1px);
}

.k-window.address-editor-kendo-window {
    overflow: hidden;
    border: 1px solid #bfcfdb;
    border-radius: 11px;
    box-shadow: 0 22px 58px rgba(19, 43, 61, .24);
}

.k-window.address-editor-kendo-window > .k-window-titlebar,
.k-window.address-editor-kendo-window > .k-window-titlebar.k-header {
    min-height: 42px;
    padding: 0 12px 0 16px;
    border: 0;
    background: #173f62;
    color: #ffffff;
}

.address-editor-kendo-window .k-window-title {
    font-size: 12px;
    font-weight: 800;
}

.address-editor-kendo-window .k-window-titlebar-action,
.address-editor-kendo-window .k-window-titlebar .k-button {
    color: #ffffff;
}

.address-editor-kendo-window .k-window-content,
.address-editor-kendo-window .k-window-content.k-content {
    padding: 0;
    overflow: auto;
    background: #f4f7fa;
}

.loader-text {
    opacity: 0;
    transform: translateY(-20px);
}

    .loader-text.animate-in {
        animation: loaderTextSlideFade 0.6s ease-out forwards;
    }

@keyframes loaderTextSlideFade {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px)
    }
}

.st-home-tab-title .st-tab-icon {
    color: #FBBF24 !important;
}

.st-home-tab-title .st-tab-icon svg {
    color: #FBBF24 !important;
    fill: #FBBF24 !important;
}

    .st-home-tab-title .st-tab-icon svg path {
        fill: #FBBF24 !important;
    }

.st-home-tab-title .st-tab-icon svg {
    width: 15px;
    height: 15px;
}

.st-home-tab-title {
gap: 6px;
}












.empty-tab-state {
    position: absolute;
    inset: 74px 0 28px 68px; /* adjust for header/sidebar/footer */
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% 35%, rgba(66, 133, 180, 0.08), transparent 34%), linear-gradient(180deg, #f7faff 0%, #f2f6fb 100%);
}

.empty-tab-card {
    text-align: center;
    max-width: 520px;
    padding: 34px 42px;
    border: 1px solid rgba(130, 150, 175, 0.22);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
    box-shadow: 0 18px 45px rgba(40, 75, 110, 0.08);
    backdrop-filter: blur(10px);
}

.empty-tab-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(46, 106, 154, 0.10);
    color: #2f6f9f;
}

.empty-tab-title {
    font-size: 22px;
    font-weight: 750;
    color: #21364d;
    margin-bottom: 8px;
}

.empty-tab-subtitle {
    font-size: 14px;
    color: #6b7f95;
    line-height: 1.5;
}

.empty-tab-logo {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .empty-tab-logo::before {
        content: "";
        position: absolute;
        inset: -7px;
        border-radius: 50%;
        border: 1px solid rgba(47, 111, 159, 0.28);
        opacity: 0;
        transform: scale(0.85);
        animation: emptyLogoRing 3.4s ease-out infinite;
    }

    .empty-tab-logo::after {
        content: "";
        position: absolute;
        inset: -13px;
        border-radius: 50%;
        border: 1px solid rgba(47, 111, 159, 0.14);
        opacity: 0;
        transform: scale(0.85);
        animation: emptyLogoRing 3.4s ease-out infinite;
        animation-delay: 0.35s;
    }

    .empty-tab-logo img {
        position: relative;
        z-index: 1;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: contain;
        display: block;
    }

@keyframes emptyLogoRing {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }

    35% {
        opacity: 0.65;
    }

    100% {
        opacity: 0;
        transform: scale(1.35);
    }
}
