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;
}

h1:focus {
    outline: none;
}

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

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

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Highlight the header row of the currently-open sidebar group */
.app-sidebar .slide.has-sub.open > .side-menu__item,
.app-sidebar .slide.has-sub.open > .side-menu__item.active {
    background-color: rgba(var(--primary-rgb), 0.50) !important;
    border-radius: 6px;
}

/* Skip-to-content link (WCAG 2.4.1): off-screen until it receives keyboard focus, then it
   slides into the top-left so a keyboard/AT user can jump straight to the page body. */
.skip-to-content {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    padding: 0.6rem 1rem;
    background: rgb(var(--primary-rgb, 132 90 223));
    color: #fff;
    border-radius: 0 0 6px 0;
    text-decoration: none;
    font-weight: 600;
}
.skip-to-content:focus {
    left: 0;
    outline: 2px solid #fff;
    outline-offset: -4px;
}

/* Don't let the -1 tabindex on the main content region paint a focus ring when it's
   focused programmatically via the skip link (it's not an interactive control). */
#main-content:focus {
    outline: none;
}

/* Visible keyboard-focus indicator (WCAG 2.4.7 Focus Visible). The Ynex template resets outlines
   on most controls, so keyboard users had no focus ring anywhere. :focus-visible only matches
   keyboard/AT focus (not mouse clicks), so this won't add rings on click. !important overrides the
   template's `outline: none` resets. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
.mud-button-root:focus-visible,
.mud-input-slot:focus-visible,
.mud-nav-link:focus-visible,
.side-menu__item:focus-visible {
    outline: 2px solid rgb(var(--primary-rgb, 132 90 223)) !important;
    outline-offset: 2px !important;
    border-radius: 2px;
}
/* ── Table style gallery ────────────────────────────────────────────────────
   A Word-like set of named table styles. The picker element (.gsp) carries the
   chosen style in data-gs and is rendered as the first child of the grid's
   .table-responsive wrapper, i.e. a sibling of the MudTable it governs. Every
   rule below therefore hangs off the general sibling combinator, which is what
   lets a page opt in with a single self-contained tag and no class binding.
   Colours come from the MudBlazor palette variables so the styles follow the
   light/dark theme instead of hard-coding a light-mode assumption. */

.gsp { display: flex; justify-content: flex-end; padding: 0 .25rem .35rem; }
.gsp-btn { min-width: 0; text-transform: none; font-size: .78rem;
           padding: 1px 10px; line-height: 1.7; letter-spacing: 0; }
.gsp-btn-text { white-space: nowrap; }

.gsp-item   { display: flex; align-items: center; gap: .5rem; min-width: 150px; }
.gsp-swatch { width: 26px; height: 16px; flex: 0 0 auto; border-radius: 2px;
              background: var(--mud-palette-surface);
              border: 1px solid var(--mud-palette-table-lines); overflow: hidden; }
/* The swatch previews the style itself. It deliberately does NOT reuse the table's own
   tints: --mud-palette-table-striped is 2% alpha, which is right on a full-width row and
   invisible in a 26x16 chip. These use a stronger neutral grey that reads on either theme. */
.gsp-sw-banded   { background: repeating-linear-gradient(var(--mud-palette-surface) 0 4px,
                                                          rgba(128,128,128,.34) 4px 8px); }
.gsp-sw-lined    { background: repeating-linear-gradient(var(--mud-palette-surface) 0 5px,
                                                          rgba(128,128,128,.45) 5px 6px); }
.gsp-sw-bordered { border-color: rgba(128,128,128,.55);
                   background:
                     linear-gradient(rgba(128,128,128,.45), rgba(128,128,128,.45)) 0 50%/100% 1px no-repeat,
                     linear-gradient(rgba(128,128,128,.45), rgba(128,128,128,.45)) 50% 0/1px 100% no-repeat,
                     var(--mud-palette-surface); }
.gsp-sw-accent   { background: linear-gradient(var(--mud-palette-primary) 0 6px,
                                                var(--mud-palette-surface) 6px); }

/* The gallery is the single source of truth: neutralise MudTable's own Striped
   so a page that hard-codes Striped="true" still honours the chosen style. */
.gsp[data-gs] ~ .mud-table.mud-table-striped .mud-table-body .mud-table-row:nth-of-type(odd) {
    background-color: transparent;
}

/* Same for a hard-coded Bordered (the report grid sets Bordered Striped inline): the gallery
   owns borders too, or "Plain" would still come up fully gridded. Listed per style rather
   than with :not(), so these never outrank the bordered/lined rules below. */
.gsp[data-gs="plain"]  ~ .mud-table.mud-table-bordered .mud-table-cell,
.gsp[data-gs="banded"] ~ .mud-table.mud-table-bordered .mud-table-cell,
.gsp[data-gs="accent"] ~ .mud-table.mud-table-bordered .mud-table-cell {
    border-color: transparent;
}
.gsp[data-gs="lined"] ~ .mud-table.mud-table-bordered .mud-table-cell {
    border-color: transparent;
    border-bottom-color: var(--mud-palette-table-lines);
}

/* Banded — alternating row tint (the closest match to Word's default) */
.gsp[data-gs="banded"] ~ .mud-table .mud-table-body .mud-table-row:nth-of-type(even) {
    background-color: var(--mud-palette-table-striped);
}

/* Lined — horizontal rules only, no fills */
.gsp[data-gs="lined"] ~ .mud-table .mud-table-body .mud-table-cell {
    border-bottom: 1px solid var(--mud-palette-table-lines);
}

/* Bordered — a full cell grid */
.gsp[data-gs="bordered"] ~ .mud-table .mud-table-cell {
    border: 1px solid var(--mud-palette-table-lines);
}

/* Accent — shaded header over banded rows */
.gsp[data-gs="accent"] ~ .mud-table .mud-table-head .mud-table-cell {
    background-color: var(--mud-palette-primary);
    color: var(--mud-palette-primary-text);
    font-weight: 600;
}
.gsp[data-gs="accent"] ~ .mud-table .mud-table-body .mud-table-row:nth-of-type(even) {
    background-color: var(--mud-palette-table-striped);
}

/* Plain needs no rules of its own — the neutraliser above is the whole style. */

/* MudDataGrid (the report grids) wraps rows in a drop container, and the template forces
   .mud-drop-container .mud-table-row .mud-table-cell to white with !important -- which paints
   over any row tint, so banding and Accent looked like they did nothing there. Clearing the
   cell lets the row background show through, and every row-level rule above then works
   unchanged. On a plain MudTable the cells have no background anyway, so this is a no-op. */
.gsp[data-gs] ~ .mud-table .mud-table-body .mud-table-cell {
    background-color: transparent !important;
}

/* The sticky-header rules paint the header cell itself, so Accent has to win there directly. */
.gsp[data-gs="accent"] ~ .mud-table .mud-table-head .mud-table-cell {
    background-color: var(--mud-palette-primary) !important;
    color: var(--mud-palette-primary-text) !important;
}

/* Hover is asserted last so it survives every fill above. */
.gsp[data-gs] ~ .mud-table.mud-table-hover .mud-table-body .mud-table-row:hover {
    background-color: var(--mud-palette-table-hover);
}

/* Report pivot: a number (or row label) opens the table rows behind it. */
.pv-drill { cursor: pointer; }
.pv-drill:hover { text-decoration: underline; color: var(--mud-palette-primary); }

/* KPI tile that opens the list behind it (Shared/KpiLink.razor). */
.kpi-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.kpi-link > * { height: 100%; transition: box-shadow .15s ease, transform .15s ease; }
.kpi-link:hover > *, .kpi-link:focus-visible > * { box-shadow: 0 0 0 2px var(--mud-palette-primary); transform: translateY(-1px); }

/* A chart whose slices open the filtered list behind them (Services/ChartDrill.cs). */
.chart-drill .apexcharts-pie-area, .chart-drill .apexcharts-bar-area { cursor: pointer; }

/* Sidebar search (NavMenu): sits in a .slide__category row, so the template hides it with the
   section headings whenever the sidebar is collapsed to icons or laid out horizontally. */
.app-sidebar .sidebar-search { padding: .5rem .75rem .25rem !important; }
.app-sidebar .sidebar-search-box { position: relative; }
.app-sidebar .sidebar-search-box > i { position: absolute; left: .6rem; top: 50%; transform: translateY(-50%); opacity: .6; font-size: 1rem; pointer-events: none; }
.app-sidebar .sidebar-search-box input {
    width: 100%; padding: .4rem .6rem .4rem 2rem; font-size: .8125rem; border-radius: .375rem;
    border: 1px solid rgba(128, 128, 128, .3); background: rgba(128, 128, 128, .08); color: inherit; outline: none;
}
.app-sidebar .sidebar-search-box input:focus { border-color: var(--mud-palette-primary); background: transparent; }
.app-sidebar .menu-search-crumb { display: block; font-size: .6875rem; opacity: .6; white-space: normal; line-height: 1.2; }
.app-sidebar .menu-search-empty { opacity: .6; font-style: italic; }

/* Favourite star on every link: shown on hover, always shown once starred. */
.app-sidebar .main-menu li.slide { position: relative; }
.app-sidebar .menu-fav-btn {
    position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: inherit; padding: .15rem .25rem; line-height: 1;
    font-size: .9rem; opacity: 0; cursor: pointer; transition: opacity .12s ease;
}
.app-sidebar li.slide:hover > .menu-fav-btn, .app-sidebar .menu-fav-btn:focus-visible { opacity: .55; }
.app-sidebar .menu-fav-btn:hover { opacity: 1 !important; }
.app-sidebar .menu-fav-btn.on { opacity: .9; color: #f5b700; }
/* Collapsed (icon) and horizontal menus have no room for it. */
[data-nav-layout=horizontal] .app-sidebar .menu-fav-btn,
[data-toggled=icon-overlay-close]:not([data-icon-overlay=open]) .app-sidebar .menu-fav-btn,
[data-toggled=icon-text-close] .app-sidebar .menu-fav-btn,
[data-toggled=close-menu-close] .app-sidebar .menu-fav-btn { display: none; }
/* …and the search box: collapsed to icons there is no room to type (it returns on hover-open). */
[data-nav-layout=horizontal] .app-sidebar .sidebar-search,
[data-toggled=icon-overlay-close]:not([data-icon-overlay=open]) .app-sidebar .sidebar-search,
[data-toggled=icon-text-close] .app-sidebar .sidebar-search,
[data-toggled=close-menu-close] .app-sidebar .sidebar-search { display: none !important; }

/* Header user-guides menu (GuidesHeaderMenu): ~20 guides, so the list scrolls instead of running off the screen. */
.guides-menu .guides-menu-list { max-height: min(60vh, 520px); overflow-y: auto; min-width: 260px; }

/* Date / time picker pop-up (user, 2026-11-29: "tarih seçimleri çok dar, sadece 4 gün gözüküyor").
   Some 90 pickers carry Style="max-width:…px" to keep the INPUT narrow. Since MudBlazor 9 that
   style also lands on the pop-up's paper, so the calendar was clipped to four day columns.
   The pop-up keeps its own width whatever the input was given. */
.mud-picker-popover-paper {
    max-width: none !important;
    min-width: 310px;
}
