/*!
 Copyright (c) 2020, 2024, Oracle and/or its affiliates.
 */

/* ============================================================
   ORACLE APEX 24.2 — FINANCIAL LOGIN PAGE
   Split-screen redesign — login on the LEFT, live dashboard
   on the RIGHT.

   GLASS WHITE THEME — light, frosted-glass aesthetic.

   NOTE ON LAYOUT STRATEGY:
   The left panel and the dashboard are pinned with
   position:fixed against the viewport rather than laid out
   with grid/flex. This makes the split immune to whatever
   the Universal Theme actually nests these elements inside
   (region cards, wrapper divs, etc.) — each piece claims its
   own exact rectangle of the screen no matter where it lives
   in the DOM. If your build still shows a stray white box,
   it is a leftover Region template around .fin-analytics or
   .t-Login-region — the generic ".t-Region" reset below
   should neutralise it, but check devtools if not.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
    /* --- brand theme source variables --- */
    --color-purple:       #71c26c;   /* named "purple" in source, actually green */
    --color-orange:       #7952b3;   /* named "orange" in source, actually violet */
    --color-deep-purple:  #71c26c;
    --color-light-bg:     #f9f9fb;
    --color-dark-bg:      #71c26c;
    --color-text-primary:   #ffffff;
    --color-text-secondary: #e2e8f0;
    --brand-gradient: linear-gradient(to right, var(--color-purple), var(--color-orange));

    /* --- glass-white base, recolored onto the brand theme --- */
    --ink-950:      var(--color-light-bg);   /* page base — near-white */
    --ink-900:      #EDEEF3;                 /* secondary base tone */
    --panel-glass:  rgba(255,255,255,.55);
    --paper:        #1B2130;                 /* primary text — dark ink on white */
    --muted:        #6B7690;
    --gold:         var(--color-orange);     /* primary accent — was gold, now brand violet */
    --gold-dim:     rgba(121,82,179,.35);
    --emerald:      var(--color-purple);     /* positive/success accent — brand green */
    --red-soft:     #D4645C;
    --glass-border: rgba(27,33,48,.10);
    --glass-shadow: 0 8px 30px rgba(20,25,40,.08);
    --font-display: 'Fraunces', Georgia, serif;
    --font-body:    'IBM Plex Sans', -apple-system, sans-serif;
    --font-mono:    'IBM Plex Mono', 'SF Mono', monospace;

    --left-col:     440px;
}


/* ------------------------------------------------------------
   PAGE BASE
   ------------------------------------------------------------ */

html, body {
    height: 100%;
    margin: 0;
}

body.t-PageBody--login,
.t-LoginPage,
.t-Login-container {
    background: var(--ink-950) !important;
    font-family: var(--font-body);
    min-height: 100vh;
}

/* kill any max-width centering the theme applies to login content */
.t-PageBody--login .t-Body,
.t-PageBody--login .t-Body-contentInner,
.t-PageBody--login #wwvFlowForm {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* neutralise any default Region ("card") chrome wrapping our markup,
   wherever the theme happens to insert it */
.t-Login-region .t-Region,
.fin-analytics .t-Region,
body.t-PageBody--login .t-Region:has(.fin-analytics),
body.t-PageBody--login .t-Region:has(.t-Login-region) {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    max-width: none !important;
}


/* ------------------------------------------------------------
   LEFT PANEL BACKGROUND (independent fixed layer, always
   full-height regardless of content) — frosted glass over a
   soft light gradient
   ------------------------------------------------------------ */

body.t-PageBody--login::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: var(--left-col);
    height: 100vh;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 31px,
            rgba(27,33,48,.025) 32px
        ),
        linear-gradient(160deg, #FFFFFF, var(--ink-900) 70%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-right: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    z-index: 4;
}


/* ------------------------------------------------------------
   LOGO — pinned top of left column
   ------------------------------------------------------------ */

.t-Login-logo {
    position: fixed !important;
    top: 0; left: 0;
    width: var(--left-col);
    z-index: 6;
    background: transparent !important;
    box-shadow: none !important;
    padding: 44px 48px 0 48px !important;
}


/* ------------------------------------------------------------
   LOGIN REGION — pinned to fill left column
   ------------------------------------------------------------ */

.t-Login-region {
    position: fixed !important;
    top: 0; left: 0;
    width: var(--left-col) !important;
    height: 100vh;
    max-width: none !important;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    margin: 0 !important;
    padding: 0 48px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.t-Login-region .t-Login-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -.01em;
    color: var(--paper) !important;
    margin-bottom: 4px;
}

.t-Login-region .t-Login-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 2px;
    margin-top: 18px;
    background: var(--gold);
}

.t-Login-region label,
.t-Login-region .t-Form-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted) !important;
}

/* Reset any wrapper the theme puts around the actual <input>
   (this is what was causing the white box around the password
   field) — the underline lives on the wrapper, not the input */
.t-Login-region .t-Form-fieldContainer,
.t-Login-region .t-Form-itemWrapper,
.t-Login-region .t-Form-inputContainer,
.t-Login-region .apex-item-wrapper {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(27,33,48,.18) !important;
    border-radius: 0 !important;
    transition: border-color .2s ease;
}

.t-Login-region .t-Form-fieldContainer:focus-within,
.t-Login-region .t-Form-itemWrapper:focus-within {
    border-bottom-color: var(--gold) !important;
}

.t-Login-region input {
    background: transparent !important;
    color: var(--paper) !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px 2px !important;
    font-family: var(--font-mono);
    font-size: 15px;
    box-shadow: none !important;
}

.t-Login-region input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.t-Login-region input::placeholder {
    color: rgba(27,33,48,.32) !important;
}

/* autofill turns inputs solid yellow/white in Chrome — force it back */
.t-Login-region input:-webkit-autofill {
    -webkit-text-fill-color: var(--paper) !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(255,255,255,.6) inset !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* show/hide-password icon button and similar utility buttons */
.t-Login-region button:not(.t-Button--hot) {
    background: transparent !important;
    border: none !important;
    color: var(--muted) !important;
    box-shadow: none !important;
}

.t-Login-region input[type="checkbox"] {
    accent-color: var(--gold);
}

.t-Login-region .t-Button--hot {
    width: 100%;
    margin-top: 28px;
    padding: 13px 20px !important;
    background: var(--brand-gradient) !important;
    color: var(--color-text-primary) !important;
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 12px;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 14px rgba(121,82,179,.28) !important;
    transition: filter .15s ease, box-shadow .15s ease;
}

.t-Login-region .t-Button--hot:hover {
    filter: brightness(.94);
    box-shadow: 0 6px 18px rgba(121,82,179,.36) !important;
}

.t-Login-region a {
    color: var(--muted) !important;
}

.t-Login-region a:hover {
    color: var(--gold) !important;
}


/* ------------------------------------------------------------
   RIGHT COLUMN — DASHBOARD, pinned to fill remaining space
   ------------------------------------------------------------ */

.fin-analytics {
    position: fixed !important;
    top: 0;
    left: var(--left-col);
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow-y: auto;
    padding: 0;
    margin: 0 !important;
    max-width: none !important;
    color: var(--paper);
    background:
        linear-gradient(180deg, rgba(255,255,255,.72), rgba(244,245,248,.88)),
        url('#APP_FILES#color.png') no-repeat center center;
    background-size: cover;
}

.fin-analytics::before,
.fin-analytics::after {
    display: none !important;
}


/* ------------------------------------------------------------
   TICKER — scrolling strip, top of dashboard
   ------------------------------------------------------------ */

.fin-ticker {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    height: 38px;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .02em;
}

.fin-ticker-track {
    display: flex;
    align-items: center;
    animation: fin-ticker-scroll 32s linear infinite;
}

.fin-ticker-track span {
    padding: 0 22px;
    color: rgba(27,33,48,.65);
    border-right: 1px solid rgba(27,33,48,.08);
}

.fin-ticker-track span.up   { color: var(--emerald); }
.fin-ticker-track span.down { color: var(--red-soft); }

@keyframes fin-ticker-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}


/* ------------------------------------------------------------
   BRAND / HEADING
   ------------------------------------------------------------ */

.fin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 32px 50px 0 50px;
}

.fin-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--gold-dim);
    border-radius: 6px;
    font-family: var(--font-display);
    color: var(--gold);
    background: rgba(255,255,255,.6);
}

.fin-brand strong {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .12em;
    color: var(--paper);
}

.fin-brand small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}

.fin-heading {
    padding: 22px 50px 0 50px;
}

.fin-heading h1 {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 34px;
    letter-spacing: -.01em;
    margin: 0 0 6px 0;
    color: var(--paper);
}

.fin-heading p {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}


/* ------------------------------------------------------------
   KPI CARDS — entrance + count-up (count-up driven by the
   small inline script in the HTML region)
   ------------------------------------------------------------ */

.fin-kpis {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    gap: 14px;
    padding: 26px 50px 0 50px;
}

.fin-kpi {
    display: block !important;
    min-height: 110px;
    padding: 18px;
    background: var(--panel-glass) !important;
    border: 1px solid var(--glass-border);
    border-top: 2px solid var(--gold-dim);
    border-radius: 4px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(10px);
    animation: fin-fade-up .6s ease forwards;
}

.fin-kpi:nth-child(1) { animation-delay: .05s; }
.fin-kpi:nth-child(2) { animation-delay: .15s; }
.fin-kpi:nth-child(3) { animation-delay: .25s; }
.fin-kpi:nth-child(4) { animation-delay: .35s; }

@keyframes fin-fade-up {
    to { opacity: 1; transform: translateY(0); }
}

.fin-kpi span {
    display: block !important;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted);
}

.fin-kpi strong {
    display: block !important;
    margin-top: 12px;
    font-family: var(--font-display);
    font-weight: 500;
    color: var(--paper);
    font-size: 27px;
    font-variant-numeric: tabular-nums;
}

.fin-kpi small {
    display: block !important;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--emerald);
}


/* ------------------------------------------------------------
   CHARTS — shared card chrome
   ------------------------------------------------------------ */

.fin-charts {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 14px;
    padding: 20px 50px 40px 50px;
}

.fin-chart-card {
    min-height: 200px;
    padding: 18px;
    background: var(--panel-glass) !important;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.fin-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.fin-chart-card h3 {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--paper);
    margin: 0;
}

.fin-chart-card small,
.fin-chart-header .chart-year {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--muted);
}

.chart-legend {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
}

.chart-legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 5px;
}

.legend-revenue      { background: var(--gold); }
.legend-profit       { background: var(--emerald); }
.legend-assets        { background: var(--gold); }
.legend-liabilities   { background: var(--red-soft); }
.legend-equity        { background: var(--muted); }
.legend-operating    { background: var(--emerald); }
.legend-investing    { background: var(--gold); }
.legend-financing    { background: var(--muted); }
.legend-current       { background: var(--gold); }
.legend-fixed         { background: var(--emerald); }
.legend-investments   { background: var(--muted); }


/* ------------------------------------------------------------
   LINE CHART — real inline SVG, animated draw-in
   ------------------------------------------------------------ */

.line-chart-svg {
    width: 100%;
    height: 120px;
    margin-top: 14px;
    overflow: visible;
}

.line-chart-svg .grid-line {
    stroke: rgba(27,33,48,.08);
    stroke-width: 1;
}

.line-chart-svg .revenue-path,
.line-chart-svg .profit-path {
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: fin-draw-line 1.6s cubic-bezier(.2,.7,.3,1) forwards;
}

.line-chart-svg .revenue-path {
    stroke: var(--gold);
    animation-delay: .2s;
}

.line-chart-svg .profit-path {
    stroke: var(--emerald);
    opacity: .85;
    animation-delay: .55s;
}

.line-chart-svg .revenue-dot,
.line-chart-svg .profit-dot {
    opacity: 0;
    animation: fin-dot-in .3s ease forwards;
}

.line-chart-svg .revenue-dot { fill: var(--gold); animation-delay: 1.7s; }
.line-chart-svg .profit-dot  { fill: var(--emerald); animation-delay: 2.05s; }

@keyframes fin-draw-line {
    to { stroke-dashoffset: 0; }
}

@keyframes fin-dot-in {
    to { opacity: 1; }
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
}


/* ------------------------------------------------------------
   BAR CHARTS — Balance Sheet & Cash Flow, animated grow-in
   ------------------------------------------------------------ */

.balance-bars,
.cash-flow {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 110px;
    margin-top: 16px;
}

.balance-bar,
.cash-bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    transform-origin: bottom;
    transform: scaleY(0);
    animation: fin-grow-bar .7s cubic-bezier(.2,.8,.2,1) forwards;
}

.balance-bar:nth-child(1), .cash-bar:nth-child(1) { animation-delay: .15s; }
.balance-bar:nth-child(2), .cash-bar:nth-child(2) { animation-delay: .25s; }
.balance-bar:nth-child(3), .cash-bar:nth-child(3) { animation-delay: .35s; }
.cash-bar:nth-child(4) { animation-delay: .45s; }
.cash-bar:nth-child(5) { animation-delay: .55s; }
.cash-bar:nth-child(6) { animation-delay: .65s; }

@keyframes fin-grow-bar {
    to { transform: scaleY(1); }
}

.assets-bar       { background: var(--gold); }
.liabilities-bar  { background: var(--red-soft); }
.equity-bar       { background: var(--muted); }
.cash-positive    { background: var(--emerald); }
.cash-negative    { background: var(--red-soft); }


/* ------------------------------------------------------------
   PIE CHART — Asset Composition, animated radial reveal
   ------------------------------------------------------------ */

.pie-wrapper {
    position: relative;
    width: 128px;
    height: 128px;
    margin: 14px auto 0 auto;
}

.pie-chart {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(
        var(--gold) 0 45%,
        var(--emerald) 45% 75%,
        var(--muted) 75% 100%
    );
    clip-path: circle(0% at 50% 50%);
    animation: fin-pie-reveal 1s cubic-bezier(.2,.8,.2,1) forwards .3s;
    box-shadow: var(--glass-shadow);
}

@keyframes fin-pie-reveal {
    to { clip-path: circle(75% at 50% 50%); }
}

.pie-center {
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fin-fade-up .5s ease forwards 1s;
}

.pie-center strong {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--paper);
}

.pie-center small {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--muted);
}


/* ------------------------------------------------------------
   REDUCED MOTION
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .fin-ticker-track,
    .fin-kpi,
    .line-chart-svg .revenue-path,
    .line-chart-svg .profit-path,
    .line-chart-svg .revenue-dot,
    .line-chart-svg .profit-dot,
    .balance-bar,
    .cash-bar,
    .pie-chart,
    .pie-center {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        stroke-dashoffset: 0 !important;
        clip-path: circle(75% at 50% 50%) !important;
    }
}


/* ------------------------------------------------------------
   MOBILE — collapse fixed panels back into normal flow
   ------------------------------------------------------------ */

@media (max-width: 900px) {

    body.t-PageBody--login::before {
        position: static;
        width: 100%;
        height: auto;
        padding-bottom: 24px;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .t-Login-logo,
    .t-Login-region,
    .fin-analytics {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        max-width: none !important;
    }

    .t-Login-logo { padding: 24px 24px 0 24px !important; }

    .t-Login-region {
        padding: 16px 24px 32px 24px !important;
        justify-content: flex-start;
    }

    .fin-kpis {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px 24px 0 24px;
    }

    .fin-charts {
        grid-template-columns: 1fr;
        padding: 16px 24px 30px 24px;
    }

    .fin-brand,
    .fin-heading {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ============================================================
   BRAND THEME — global Universal Theme rules
   (applies outside the login/dashboard split, e.g. once the
   user is inside the app shell — header, breadcrumb, buttons,
   footer, icons)
   ============================================================ */

/* Header Branding */
.t-Header-branding {
    padding: 1rem 2rem;
    background: var(--brand-gradient);
    color: var(--color-text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

/* Breadcrumb Region */
.t-BreadcrumbRegion-body {
    padding: .5rem 1rem;
}

/* Page Titles (Dark Mode) */
.rw-mode-body-header--dark .t-Body-title,
body:not([class*=rw-pillar--]).rw-mode-body-header--dark .t-Body-title {
    color: var(--color-text-primary);
    background-color: var(--color-deep-purple);
}

/* Hot Buttons (app shell, outside the login region) */
.a-Button--hot,
.t-Button--hot,
.apex-button-group input:checked + label,
.ui-button--hot {
    background: var(--brand-gradient);
    color: var(--color-text-primary);
    border: none;
    border-radius: 8px;
}

.a-Button--hot:hover,
.t-Button--hot:hover {
    background: var(--color-orange);
}

/* Success Buttons */
.t-Button--success {
    background-color: var(--color-purple);
    color: var(--color-text-primary);
    border-radius: 8px;
}

.t-Button--success:hover {
    background-color: var(--color-purple);
    filter: brightness(.92);
}

/* Footer */
footer {
    padding: 1rem;
    background-color: var(--color-dark-bg);
    color: var(--color-text-secondary);
    text-align: center;
}

/* Grid Menu Icon */
.icon-menu-grid {
    width: 1.25rem;
    height: 1.25rem;
    display: grid;
    place-items: center;
}

.icon-menu-grid::before {
    content: "";
    display: block;
    width: .25rem;
    height: .25rem;
    background-color: currentColor;
    box-shadow:
        -6px -6px 0,
        0 -6px 0,
        6px -6px 0,
        -6px 0 0,
        6px 0 0,
        -6px 6px 0,
        0 6px 0,
        6px 6px 0;
    border-radius: 50%;
}

/* Remove default user icon */
.clear-avatar-icons .t-Avatar.t-Avatar--icon.fa-user:before {
    display: none;
}

/* Initiative Icon */
.initiative-icon {
    margin: 0 .5rem .5rem 1rem;
    max-width: 50px;
}

/* Curve-Edged Buttons (app shell) */
.t-Button,
.t-Button--icon {
    border-radius: 8px;
}

/* Danger Buttons */
.t-Button--danger {
    background-color: #dc3545;
    color: #ffffff;
    border-radius: 8px;
}

/* Warning Buttons */
.t-Button--warning {
    background-color: #fb8500;
    color: #ffffff;
    border-radius: 8px;
}


/* Warning Buttons */
.t-Button--success {
    background-color: #606c38;
    color: #ffffff;
    border-radius: 8px;
}


/* Very compact branding */
.t-Header-branding {
    height: 38px;
    min-height: 38px;
    padding: 0 !important;
}

.t-Header-branding-logo {
    padding: 0 6px !important;
    margin: 0 !important;
    height: 38px;
}

.t-Header-logo-link img {
    max-height: 30px;
}

/* Compact Top Navigation Tabs */
.t-NavTabs {
    height: 62px;
    min-height: 52px;
    padding: 0 !important;
}

.t-NavTabs .t-NavTabs-link {
    height: 62px;
    min-height: 52px;
    padding: 0 10px !important;
    display: flex;
    align-items: center;
    color: var(--paper);
}


/* Nav icon — green by default, purple on hover/active */
.t-NavTabs .t-NavTabs-icon,
.t-NavTabs .t-Icon {
    color: #7b2cbf;
    fill: currentColor;
}

/* SVG icons */
.t-NavTabs .t-NavTabs-icon svg,
.t-NavTabs .t-Icon svg {
    fill: currentColor;
    stroke: currentColor;
}

/* Keep navigation text BLACK */
.t-NavTabs .t-NavTabs-link,
.t-NavTabs .t-NavTabs-label {
    color: #000000;
}

/* Icon turns purple on hover */
.t-NavTabs .t-NavTabs-link:hover .t-NavTabs-icon,
.t-NavTabs .t-NavTabs-link:hover .t-Icon {
    color: #31572c;
}

/* Icon remains purple when active/selected */
.t-NavTabs .t-NavTabs-link.is-active .t-NavTabs-icon,
.t-NavTabs .t-NavTabs-link.is-active .t-Icon {
    color: #7b2cbf;
}

/* Icon sizing */
.t-NavTabs .t-NavTabs-icon {
    font-size: 14px;
    margin-right: 5px;
}

/* Navigation label */
.t-NavTabs .t-NavTabs-label {
    font-size: 13px;
    line-height: 1;
    display: inline-block !important;
}


.t-BreadcrumbRegion {
    --ut-breadcrumb-padding-y: 0.5rem;
}



/* Ticker container */
.fin-ticker {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    box-sizing: border-box;
    white-space: nowrap;
}

/* Moving ticker content */
.fin-ticker-track {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: none;
    animation: fin-ticker-scroll 32s linear infinite;
    will-change: transform;
}

/* Ticker items */
.fin-ticker-track span {
    flex: 0 0 auto;
    padding: 0 22px;
    color: rgba(27, 33, 48, .65);
    border-right: 1px solid rgba(27, 33, 48, .08);
    box-sizing: border-box;
}

.fin-ticker-track span.up {
    color: #31572c;
}

.fin-ticker-track span.down {
    color: #880d1e;
}

/* Smooth continuous scrolling */
@keyframes fin-ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Prevent page-level horizontal scrolling */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}




.t-Login-region .t-Login-title::after {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    background: none !important;
}


/* =========================================
   APEX LOGIN — REMOVE DEFAULT LINES
   ========================================= 

.t-Login-region,
.t-Login-region .t-Form,
.t-Login-region .t-Form-fieldContainer,
.t-Login-region .t-Form-itemWrapper,
.t-Login-region .t-Form-inputContainer,
.t-Login-region .t-Form-labelContainer,
.t-Login-region .apex-item-wrapper,
.t-Login-region .apex-item-group {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
*/




/* =========================================================
   LOGIN INPUTS — PURPLE TOP SHADOW LINE
   FIX: ICON + PLACEHOLDER OVERLAP
   ========================================================= */

/* Input wrapper */
.t-Login-region .apex-item-wrapper {
    position: relative !important;
}

/* Username + Password inputs */
.t-Login-region input.apex-item-text,
.t-Login-region input[type="text"],
.t-Login-region input[type="password"] {
    background: transparent !important;

    /* No normal border */
    border: none !important;
    border-radius: 0 !important;

    /* Purple line at TOP */
    box-shadow:
        inset 0 2px 0 #8b5cf6 !important;

    outline: none !important;

    color: var(--paper) !important;

    /*
       IMPORTANT:
       Leave enough horizontal space for the APEX icon.
    */
    padding: 12px 12px 10px 42px !important;

    width: 100% !important;

    /* Prevent text from running under icon */
    box-sizing: border-box !important;
}

/* =========================================================
   FOCUS
   ========================================================= */

.t-Login-region input.apex-item-text:focus,
.t-Login-region input[type="text"]:focus,
.t-Login-region input[type="password"]:focus {
    border: none !important;

    box-shadow:
        inset 0 2px 0 #a855f7,
        0 -2px 8px rgba(168, 85, 247, .18) !important;

    outline: none !important;
}

/* =========================================================
   PLACEHOLDER
   ========================================================= */

.t-Login-region input::placeholder {
    color: rgba(27, 33, 48, .55) !important;
    opacity: 1 !important;
}

/* =========================================================
   APEX INPUT ICON
   Keep icon inside the field but away from text.
   ========================================================= */

.t-Login-region .apex-item-icon {
    left: 12px !important;
    right: auto !important;

    z-index: 2 !important;

    pointer-events: none !important;
}

/* If APEX uses icon wrapper */
.t-Login-region .apex-item-icon-container {
    position: absolute !important;
    left: 10px !important;
    width: 24px !important;

    z-index: 2 !important;
}

/* =========================================================
   REMEMBER ME — SMALL TEXT
   ========================================================= */

.t-Login-region input[type="checkbox"] + label,
.t-Login-region .t-Form-fieldContainer--checkbox label {
    font-size: 12px !important;
}

/* Checkbox itself stays clean */
.t-Login-region input[type="checkbox"] {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}







.ui-dialog {
    border-radius: 1rem !important;
    overflow: hidden !important;
}

.ui-dialog .ui-dialog-titlebar {
    border-radius: 1rem 1rem 0 0 !important;
}

.ui-dialog .ui-dialog-titlebar:before {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;

    content: "" !important;
}