/*
   SHE blue shell only.
   This file deliberately changes presentation/navigation only.
   It does not load or style jqGrid, Kendo, Telerik, DevExtreme or DevExpress.
   Existing AG Grid Enterprise and AG Charts Enterprise code remains untouched.
*/

body.she-blue-app {
    --she-shell-blue-900: #075985;
    --she-shell-blue-800: #0369a1;
    --she-shell-blue-600: #2563eb;
    --she-shell-cyan: #06b6d4;
    --she-shell-ink: #0f172a;
    --she-shell-muted: #64748b;
    --she-shell-border: #d8e7f4;
    background:
        radial-gradient(circle at top right, rgb(37 99 235 / 10%), transparent 26%),
        radial-gradient(circle at top left, rgb(6 182 212 / 8%), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 42%, #f5faff 100%);
    color: var(--she-shell-ink);
}

.she-blue-app .she-blue-header {
    position: relative;
    z-index: 1600;
    background: linear-gradient(90deg, #075985 0%, #0369a1 48%, #2563eb 100%);
    border-bottom: 1px solid rgb(219 234 254 / 28%);
    box-shadow: 0 10px 30px rgb(7 89 133 / 18%);
}

.she-blue-app .she-blue-header .header-inner {
    width: min(1320px, calc(100% - 32px));
    min-height: 66px;
    gap: 16px;
}

.she-blue-app .she-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.02em;
    white-space: nowrap;
}

.she-blue-app .she-brand i {
    font-size: 22px;
    color: #dbeafe;
}

.she-blue-app .she-brand:hover,
.she-blue-app .she-brand:focus {
    color: #fff;
    text-decoration: none;
}

/* One navigation parent only: SHE Menu. */
.she-blue-app .she-main-menu {
    position: relative;
    flex: 0 0 auto;
}

.she-blue-app .she-main-menu > summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 12px;
    color: #eff6ff;
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(219 234 254 / 22%);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background .15s ease, border-color .15s ease;
}

.she-blue-app .she-main-menu > summary::-webkit-details-marker {
    display: none;
}

.she-blue-app .she-main-menu > summary::after {
    content: "▾";
    margin-left: 3px;
    font-size: 10px;
    color: #bfdbfe;
}

.she-blue-app .she-main-menu[open] > summary,
.she-blue-app .she-main-menu > summary:hover,
.she-blue-app .she-main-menu > summary:focus {
    color: #fff;
    background: rgb(255 255 255 / 15%);
    border-color: rgb(255 255 255 / 35%);
    outline: none;
}

.she-blue-app .she-main-menu[open] .she-menu-panel {
    display: grid;
}

.she-blue-app .she-menu-panel {
    display: none;
    position: absolute;
    z-index: 1800;
    top: calc(100% + 10px);
    left: 0;
    width: min(430px, calc(100vw - 28px));
    max-height: min(76vh, 650px);
    overflow-y: auto;
    gap: 2px;
    padding: 10px;
    background: #075985;
    border: 1px solid rgb(219 234 254 / 25%);
    border-radius: 12px;
    box-shadow: 0 22px 50px rgb(7 89 133 / 34%);
}

.she-blue-app .she-menu-panel .she-menu-section {
    margin: 8px 8px 4px;
    padding-top: 7px;
    border-top: 1px solid rgb(219 234 254 / 14%);
    color: #bae6fd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.she-blue-app .she-menu-panel .she-menu-section:first-child {
    margin-top: 1px;
    padding-top: 0;
    border-top: 0;
}

.she-blue-app .she-menu-panel a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 39px;
    padding: 8px 10px;
    color: #eff6ff;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.25;
}

.she-blue-app .she-menu-panel a i {
    width: 24px;
    color: #bae6fd;
    font-size: 15px;
    text-align: center;
}

.she-blue-app .she-menu-panel a:hover,
.she-blue-app .she-menu-panel a:focus {
    color: #fff;
    background: rgb(15 118 110 / 88%);
    text-decoration: none;
    outline: none;
}

.she-blue-app .she-menu-panel a:hover i,
.she-blue-app .she-menu-panel a:focus i {
    color: #fff;
}

.she-blue-app .she-theme-picker {
    color: #eff6ff;
}

.she-blue-app .she-theme-picker span {
    color: #eff6ff;
    font-weight: 700;
}

.she-blue-app .she-theme-picker select {
    min-height: 34px;
    border: 1px solid rgb(219 234 254 / 46%);
    border-radius: 7px;
    box-shadow: none;
}

.she-blue-app .she-theme-picker select:focus {
    outline: 2px solid rgb(191 219 254 / 40%);
    border-color: #bfdbfe;
}

.she-blue-app .she-user-area {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 8px;
    min-width: 0;
    color: #fff;
    white-space: nowrap;
}

.she-blue-app .she-user-area > i {
    grid-row: 1 / span 2;
    color: #dbeafe;
    font-size: 23px;
}

.she-blue-app .she-user-area .hello {
    width: auto;
    max-width: 260px;
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
}

.she-blue-app .she-user-area small {
    color: #bfdbfe;
    font-size: 10px;
    line-height: 1.1;
}

.she-blue-app .she-logout-form {
    margin: 0;
}

.she-blue-app .she-logout-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 9px;
    color: #eff6ff;
    background: transparent;
    border: 1px solid rgb(219 234 254 / 24%);
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
}

.she-blue-app .she-logout-button:hover,
.she-blue-app .she-logout-button:focus {
    color: #fff;
    background: rgb(255 255 255 / 12%);
    border-color: rgb(255 255 255 / 38%);
}

/* DynamicSolution-like soft page heading without changing page logic. */
.she-blue-app .page-shell {
    margin-top: 24px;
}

.she-blue-app .page-heading {
    margin-bottom: 20px;
    padding: 20px 24px;
    border: 1px solid var(--she-shell-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgb(37 99 235 / 10%), transparent 30%),
        linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 30px rgb(15 23 42 / 6%);
}

.she-blue-app .page-heading h1 {
    margin-bottom: 6px;
    color: #0f172a;
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 800;
    letter-spacing: -.025em;
}

.she-blue-app .page-heading p {
    color: #52647a;
    line-height: 1.55;
}

/* Existing panels keep their exact contents/AG Grid code; only the shell becomes softer. */
.she-blue-app .grid-panel {
    border-color: #cfe0f0;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgb(15 23 42 / 5%);
}

.she-blue-app .grid-panel h2 {
    color: #075985;
    background: linear-gradient(180deg, #f7fbff 0%, #eaf5ff 100%);
    border-bottom-color: #cfe0f0;
}

.she-blue-app .site-footer {
    border-top-color: #dbe7f1;
    color: #64748b;
}

@media (max-width: 980px) {
    .she-blue-app .she-blue-header .header-inner {
        flex-wrap: wrap;
        gap: 10px;
        padding: 11px 0;
    }

    .she-blue-app .header-spacer {
        display: none;
    }

    .she-blue-app .she-theme-picker {
        margin-left: auto;
    }

    .she-blue-app .she-user-area {
        margin-left: 0;
    }
}

@media (max-width: 760px) {
    .she-blue-app .she-blue-header .header-inner {
        align-items: center;
    }

    .she-blue-app .she-brand {
        font-size: 18px;
    }

    .she-blue-app .she-main-menu {
        margin-left: auto;
    }

    .she-blue-app .she-menu-panel {
        left: auto;
        right: 0;
    }

    .she-blue-app .she-theme-picker {
        order: 5;
        width: 100%;
        grid-template-columns: auto minmax(150px, 1fr);
        margin-left: 0;
    }

    .she-blue-app .she-user-area {
        order: 3;
    }

    .she-blue-app .she-logout-form {
        order: 4;
        margin-left: auto;
    }

    .she-blue-app .page-heading {
        padding: 16px 17px;
        border-radius: 14px;
    }
}

@media (max-width: 520px) {
    .she-blue-app .she-user-area small {
        display: none;
    }

    .she-blue-app .she-user-area .hello {
        max-width: 180px;
    }

    .she-blue-app .she-logout-button span {
        display: none;
    }
}
