﻿/*#if (SampleContent)*/
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

/*#endif*/
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyN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wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

/* ---------- Language picker + right-to-left (Hebrew) ---------- */
.gf-lang-picker {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: inherit;
}

.gf-lang-picker__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #8a94a6;
}

.gf-lang-picker select {
    margin-inline-start: auto;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    border-radius: 999px;
    background: #f3f5f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%238a94a6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
    padding: 5px 30px 5px 14px;
    font-size: 13px;
    color: #4a5568;
    cursor: pointer;
    transition: background-color .15s ease;
}

html[dir="rtl"] .gf-lang-picker select {
    background-position: left 10px center;
    padding: 5px 14px 5px 30px;
}

.gf-lang-picker select:hover {
    background-color: #eaeef5;
}

.gf-lang-picker select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(31, 78, 160, .18);
}

/* Profile: quiet row (globe + current language); a small card opens right under it. */
.gf-lang-menu {
    position: relative;
}

.gf-lang-menu__toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 0 14px;
    border: none;
    background: none;
    font-family: "Modern Era", modern-era-medium, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: #000c20;
    cursor: pointer;
}

.gf-lang-menu__chevron {
    width: 13px;
    height: 13px;
    color: #b0b8c6;
    transition: transform .2s ease;
}

.gf-lang-menu.is-open .gf-lang-menu__chevron {
    transform: rotate(180deg);
}

/* Invisible layer: a tap anywhere outside the card closes it. */
.gf-lang-menu__backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

/* Opens upward: the profile row sits near the bottom of the page, and a card hanging below it
   made the page taller (and scrollable) while it was open. */
.gf-lang-menu__popup {
    position: absolute;
    bottom: calc(100% - 4px);
    inset-inline-start: -6px;
    z-index: 1001;
    width: 164px;
    padding: 4px 10px 2px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 12, 32, .16), 0 2px 6px rgba(0, 12, 32, .08);
    transform-origin: bottom left;
    animation: gfLangMenuUp .22s cubic-bezier(.2, .9, .3, 1.2);
}

html[dir="rtl"] .gf-lang-menu__popup {
    transform-origin: bottom right;
}

.gf-lang-menu__title {
    margin: 4px 4px 0;
    font-size: 11px;
    color: #8a94a6;
}

.gf-lang-menu__option {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
    border: none;
    border-bottom: 1px solid #eef1f5;
    background: none;
    font-family: "Modern Era", modern-era-medium, sans-serif;
    font-size: 14px;
    color: #000c20;
    text-align: start;
    cursor: pointer;
}

.gf-lang-menu__option:last-child {
    border-bottom: none;
}

.gf-lang-menu__check {
    width: 17px;
    height: 17px;
    visibility: hidden;
}

.gf-lang-menu__option.is-current {
    color: #1d4da3;
    font-weight: 700;
}

.gf-lang-menu__option.is-current .gf-lang-menu__check {
    visibility: visible;
}

@keyframes gfLangMenuIn {
    from { opacity: 0; transform: translateY(-6px) scale(.96); }
    to { opacity: 1; transform: none; }
}

@keyframes gfLangMenuUp {
    from { opacity: 0; transform: translateY(6px) scale(.96); }
    to { opacity: 1; transform: none; }
}

/* Login: the same globe menu as the profile, as a quiet pill in the top corner (end side),
   out of the form flow so switching language never moves the title or the fields. */
.signIn-area.auth-page {
    position: relative;
}

.gf-lang-menu--login {
    position: absolute;
    top: calc(env(safe-area-inset-top, 0px) + 18px);
    inset-inline-end: 20px;
    z-index: 2;
}

.gf-lang-menu--login .gf-lang-menu__toggle {
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f3f5f9;
    font-size: 13px;
    color: #33415c;
    transition: background-color .15s ease;
}

.gf-lang-menu--login .gf-lang-menu__toggle:hover,
.gf-lang-menu--login.is-open .gf-lang-menu__toggle {
    background: #e9edf4;
}

.gf-lang-menu--login .gf-lang-picker__icon {
    width: 15px;
    height: 15px;
}

.gf-lang-menu--login .gf-lang-menu__chevron {
    width: 11px;
    height: 11px;
    color: #8a94a6;
}

/* The pill sits at the end edge, so its card opens toward the middle of the screen. */
.gf-lang-menu--login .gf-lang-menu__popup {
    top: calc(100% + 6px);
    bottom: auto;
    inset-inline-start: auto;
    inset-inline-end: 0;
    transform-origin: top right;
    animation-name: gfLangMenuIn;
}

html[dir="rtl"] .gf-lang-menu--login .gf-lang-menu__popup {
    transform-origin: top left;
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="number"] {
    direction: ltr;
    text-align: right;
}

html[dir="rtl"] canvas {
    direction: ltr;
}

/* "Back" and month arrows point the way the page reads. */
html[dir="rtl"] img[src$="left-arrow.svg"],
html[dir="rtl"] .filter-calendar-nav svg {
    transform: scaleX(-1);
}

/* Charts and the goal road are drawn on a fixed left-to-right layout (days and hours run left to right,
   positions are absolute), so they keep it in every language; their Hebrew labels still read right to left. */
/* The scroll box itself is included so a long chart opens at its first day, as in English, and
   text-align is reset because the page's right alignment is inherited and pushed the axis labels onto the bars. */
html[dir="rtl"] .goal-chart-blk,
html[dir="rtl"] .barChartWrapper,
html[dir="rtl"] .sell-chartz,
html[dir="rtl"] .manager-weekly-chart,
html[dir="rtl"] .goal-road-viewport {
    direction: ltr;
    text-align: left;
}
