/* 2026-10-28: Inter site font (Google Fonts, App.razor), system fallback; brand colors = the logo's tiles (MainLayout.razor). */
:root {
    --site-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
    --brand-blue: #0284c7;
    --brand-sky: #38bdf8;
    --brand-indigo: #6366f1;
    --brand-green: #10b981;
    --brand-stripe: linear-gradient(90deg, var(--brand-blue) 0 25%, var(--brand-sky) 25% 50%, var(--brand-indigo) 50% 75%, var(--brand-green) 75% 100%);
    --brand-stripe-down: linear-gradient(180deg, var(--brand-blue) 0 25%, var(--brand-sky) 25% 50%, var(--brand-indigo) 50% 75%, var(--brand-green) 75% 100%);
    /* Buttons (2026-10-29): logo indigo. Text-only hovers keep the menu blue (2026-10-25 note below). */
    --brand-button: #4f46e5;
    --brand-button-hover: #4338ca;
    --brand-button-soft: #eef2ff;
    --brand-button-soft-hover: #e0e7ff;
    --brand-button-soft-text: #4338ca;

    /* ButtonControl themed site-wide (demos included) through its own variables (2026-10-29); several controls take their
       pressed/picked color from --fx-accent. The rest: "Buttons" block below. */
    --fx-btn-bg: var(--brand-button-soft);
    --fx-btn-color: var(--brand-button-soft-text);
    --fx-btn-border: 1px solid transparent;
    --fx-btn-border-color: transparent;
    --fx-btn-radius: 8px;
    --fx-btn-hover-bg: var(--brand-button-soft-hover);
    --fx-btn-hover-border: 1px solid transparent;
    --fx-btn-hover-border-color: transparent;
    --fx-btn-active-bg: #c7d2fe;
    --fx-accent: var(--brand-button);
    /* 2026-11-15: split buttons, dock-manager tabs and calendar picks used the library blue (#2563eb) next to the indigo buttons;
       they follow the button indigo, so every page shows one primary color. */
    --fx-primary: var(--brand-button);
    --fx-split-btn-bg: var(--brand-button);
    --fx-split-btn-border-color: var(--brand-button-hover);
    --fx-split-btn-hover-bg: var(--brand-button-hover);
}

/* Buttons beyond the --fx-btn-* variables: type and weight, indigo for library-fixed variants; doubled classes beat the library's
   scoped rules. Padding stays with the library: its controls tighten it internally (scheduler entries, pagers). */
:root .fx-button.fx-button:not(.fx-button-classic) {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.35;
    transition: background-color 0.15s ease;
}
:root .fx-button.btn-sm.btn-sm:not(.fx-button-classic) { padding: 4px 10px; font-size: calc(12px * var(--fx-zoom, 1)); }
:root .fx-button.btn-lg.btn-lg:not(.fx-button-classic) { padding: 10px 22px; font-size: calc(16px * var(--fx-zoom, 1)); border-radius: 10px; }
:root .fx-button.btn-primary.btn-primary { background: var(--brand-button); border-color: var(--brand-button); color: #ffffff; }
:root .fx-button.btn-primary.btn-primary:hover:not(:disabled) { background: var(--brand-button-hover); border-color: var(--brand-button-hover); }
:root .fx-button.btn-outline-primary.btn-outline-primary { background: transparent; border-color: var(--brand-button); color: var(--brand-button-soft-text); }
:root .fx-button.btn-outline-primary.btn-outline-primary:hover:not(:disabled) { background: var(--brand-button); color: #ffffff; }

/* Brand marks (2026-10-28; title bar, heading tiles) live with each page type: .docs-page below, FeatureDemoLayout.razor.css,
   DemoExample.razor.css, SignUp.razor.css. */

html, body {
    font-family: var(--site-font);
}

a, .btn-link {
    color: var(--brand-blue);
}

.btn-primary {
    color: #fff;
    background-color: var(--brand-button);
    border-color: var(--brand-button-hover);
}

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

/* ── FlexCore showcase additions ───────────────────────────────────────── */
.hero {
    background: linear-gradient(140deg, #0d3b66 0%, #1d6fa5 100%);
    color: #fff;
    padding: 64px 32px;
    margin: -1.1rem -2rem 2rem -2rem;
}
.hero-inner { max-width: 920px; margin: 0 auto; }
.hero h1 { font-size: 56px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; }
.hero .lede { font-size: 20px; opacity: 0.9; margin: 0 0 32px; max-width: 720px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-cta a {
    display: inline-block; padding: 12px 24px; border-radius: 6px;
    text-decoration: none; font-weight: 600; font-size: 14px;
    transition: transform 0.1s;
}
.hero-cta a:hover { transform: translateY(-1px); }
.hero-cta .btn-primary { background: #fff; color: #0d3b66; border: 1px solid #fff; }
.hero-cta .btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.hero-install { font-family: 'SF Mono', Menlo, Consolas, monospace;
    background: rgba(0,0,0,0.25); padding: 12px 16px; border-radius: 6px;
    display: inline-block; }
.hero-install code { color: #fff; }

.features { max-width: 1100px; margin: 0 auto; padding: 32px; }
.features h2 { font-size: 28px; margin-bottom: 24px; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.feature-card {
    border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px; background: #fff;
    transition: box-shadow 0.15s;
}
.feature-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.feature-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; color: #0d3b66; }
.feature-card p { font-size: 13px; color: #4b5563; margin: 0 0 8px; line-height: 1.5; }
.feature-card a { font-size: 13px; color: #1d6fa5; text-decoration: none; font-weight: 600; }
.feature-card a:hover { color: #0284c7; text-decoration: underline; }
.feature-card code { background: #f3f4f6; padding: 1px 6px; border-radius: 3px; font-size: 12px; }

.footer-section { max-width: 1100px; margin: 32px auto; padding: 32px;
    border-top: 1px solid #e5e7eb; color: #6b7280; font-size: 14px; }

/* Doodle headings (2026-10-28; centered 2026-10-29): fx-hand wobble filter from DoodleFilters.razor; is-playing (App.razor's
   fxToggleClassWhenVisible) cycles its three seeds. Movements live in Home.razor.css, ComponentCatalogDirectory.razor.css. */
.doodle-head { display: flex; align-items: center; justify-content: center; gap: 20px; text-align: center; }
.doodle { flex: none; width: 112px; height: auto; overflow: visible; filter: url(#fx-hand); }
.doodle-filters { position: absolute; width: 0; height: 0; overflow: hidden; }
.doodle-head.is-playing .doodle { animation: doodle-boil 0.42s 7; }

@keyframes doodle-boil {
    0% { filter: url(#fx-hand); }
    33% { filter: url(#fx-hand-b); }
    67% { filter: url(#fx-hand-c); }
    100% { filter: url(#fx-hand); }
}

@media (max-width: 768px) {
    .doodle-head { flex-direction: column; align-items: center; gap: 6px; }
    .doodle { width: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    .doodle-head.is-playing .doodle { animation: none; }
}

.docs-page { max-width: 880px; margin: 0 auto; padding: 16px 32px; }
.docs-page h1 { font-size: clamp(34px, 4vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.035em; margin: 0 0 24px; color: #0f172a; }
.docs-page h1::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--brand-stripe); margin-top: 14px; }
.docs-page h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 36px 0 12px; color: #0f172a; }
.docs-page h2::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--brand-blue); }
.docs-page section:nth-of-type(4n + 2) h2::before { background: var(--brand-sky); }
.docs-page section:nth-of-type(4n + 3) h2::before { background: var(--brand-indigo); }
.docs-page section:nth-of-type(4n + 4) h2::before { background: var(--brand-green); }
.docs-page section { margin-bottom: 16px; }
.docs-page p { color: #374151; line-height: 1.6; }
.docs-page pre {
    background: #1e293b; color: #f1f5f9; padding: 16px; border-radius: 6px;
    overflow-x: auto; font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 13px;
}
.docs-page pre code { background: transparent; padding: 0; color: inherit; }
.docs-page > section > p > code,
.docs-page > section > ul > li code,
.docs-page p code {
    background: #f3f4f6; padding: 1px 6px; border-radius: 3px; font-size: 13px;
    font-family: 'SF Mono', Menlo, Consolas, monospace;
}

.data-control-docs { max-width: 1120px; }
.data-summary {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
}
.data-summary div {
    background: #fff; border: 1px solid #e5e7eb; border-radius: 6px; padding: 12px;
}
.data-summary strong {
    display: block; font-size: 12px; color: #6b7280; margin-bottom: 4px; text-transform: uppercase;
    letter-spacing: 0.04em;
}
.data-summary span { color: #111827; font-weight: 700; }
.data-table-frame { overflow-x: auto; }
.data-doc-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; }
.data-doc-table th,
.data-doc-table td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: left; }
.data-doc-table th { background: #f3f4f6; color: #374151; font-weight: 700; }
.data-doc-table td:first-child,
.data-doc-table th:first-child { color: #0d3b66; font-weight: 700; }
.api-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px;
}
.api-grid article {
    border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; padding: 14px;
}
.api-grid h3 {
    margin: 0 0 6px; color: #0d3b66; font-size: 14px; font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.api-grid p { margin: 0; font-size: 13px; line-height: 1.45; color: #4b5563; }
.compact-list {
    columns: 2; gap: 24px; padding-left: 18px; color: #374151;
}
.compact-list li { margin-bottom: 6px; break-inside: avoid; }

.demo-frame { border: 1px solid #e5e7eb; border-radius: 8px; padding: 16px;
    margin: 16px 0; background: #fafbfc; }
.demo-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-buttons button {
    padding: 6px 14px; border-radius: 4px; border: 1px solid transparent;
    font-size: 13px; cursor: pointer; font-weight: 500;
}
.demo-buttons .btn-primary    { background: #1b6ec2; color: #fff; border-color: #1861ac; }
.demo-buttons .btn-secondary  { background: #fff; color: #1b6ec2; border-color: #1b6ec2; }
.demo-buttons .btn-accent     { background: #6f42c1; color: #fff; border-color: #6235ad; }
.demo-buttons .btn-success    { background: #198754; color: #fff; border-color: #157347; }
.demo-buttons .btn-warning    { background: #fd7e14; color: #fff; border-color: #e96a00; }
.demo-buttons .btn-danger     { background: #dc3545; color: #fff; border-color: #b02a37; }
.demo-buttons button:disabled { opacity: 0.5; cursor: not-allowed; }
.demo-buttons button:hover:not(:disabled) { filter: brightness(1.05); }

/* ── Sidebar theme ─────────────────────────────────────────────────────── */
.fx-left-panel.sidebar,
.sidebar {
    background: #0d3b66 !important;
    background-image: linear-gradient(180deg, #0d3b66 0%, #061c33 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    height: 100%;
    overflow-y: auto;
}

.fx-left-panel.sidebar .top-row,
.sidebar .top-row {
    background-color: rgba(0, 0, 0, 0.3) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.fx-left-panel.sidebar .navbar-brand,
.sidebar .navbar-brand {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.fx-left-panel.sidebar .nav-section-title,
.sidebar .nav-section-title {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 16px 1.5rem 4px;
}

.fx-left-panel.sidebar .nav-item .nav-link,
.sidebar .nav-item .nav-link {
    color: #cbd5e1 !important;
    font-size: 0.9rem;
    border-radius: 6px;
    margin: 0 0.5rem;
    padding: 0.5rem 0.75rem;
    height: 2.5rem;
    line-height: 2.5rem;
    display: flex;
    align-items: center;
    transition: all 0.15s ease-in-out;
}

.fx-left-panel.sidebar .nav-item .nav-link:hover,
.sidebar .nav-item .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.fx-left-panel.sidebar .nav-item .nav-link.active,
.sidebar .nav-item .nav-link.active {
    background-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.fx-left-panel.sidebar .bi,
.sidebar .bi {
    filter: brightness(1);
    opacity: 0.9;
}


/* Modal pattern for the Dialog demo */
.modeldim-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    display: flex; align-items: center; justify-content: center; z-index: 1000;
}
.modeldim-dialog {
    background: #fff; border-radius: 6px; min-width: 360px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2); overflow: hidden;
}
.modeldim-header {
    background: #0d3b66; color: #fff; padding: 8px 16px;
    display: flex; align-items: center; justify-content: space-between;
    font-weight: 600;
}
.modeldim-header button {
    background: transparent; border: none; color: #fff;
    font-size: 20px; cursor: pointer; line-height: 1;
}

/* ── Home hero grid (2026-11-04): app window rules moved to quickstart/RazorSharpGetaways/wwwroot/getaways.css (linked by this
   site); shared rules below. ── */

/* ── Performance & Feature Highlight Bar ── */
.grid-perf-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 10px;
    padding: 12px 18px;
    background: linear-gradient(180deg, #f0fdf4 0%, #f8fafc 100%);
    border-bottom: 1px solid #e2e8f0;
}

.perf-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.perf-badge-icon {
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.perf-badge-text {
    display: flex;
    flex-direction: column;
}

.perf-badge-text strong {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.perf-badge-text span {
    font-size: 11px;
    color: #64748b;
    line-height: 1.2;
}

/* DropDownGridControl places its popup once, at a fixed screen position, after two JS round trips; when the popup grid reveals
   its current row and the hero grid scrolls under it (2026-10-26), it ends a row off its box. Anchor positioning ties it to its
   box from the first render; browsers without position-area keep the library's placement. */
@supports (position-area: bottom) {
    .fx-dropdown-grid.fx-open > .fx-dropdown-grid-input-wrap {
        anchor-name: --fx-dropdown-grid-open;
    }
    /* position-area, not top/left: try fallbacks flip only non-!important declarations, so the library's inline top/left are
       cleared with !important and the area stays overridable (2026-10-26: opens upward at the bottom edge). */
    .fx-dropdown-grid.fx-open > .fx-dropdown-grid-popup {
        position: fixed !important;
        position-anchor: --fx-dropdown-grid-open;
        top: auto !important;
        left: auto !important;
        position-area: bottom span-right;
        visibility: visible !important;
        position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline;
    }
}

/* ── DropDownGrid Floating Popup & Stacking Elevation ── */
.fx-row:has(.fx-dropdown-grid.fx-open),
tr:has(.fx-dropdown-grid.fx-open),
.fx-grid ::deep tr.fx-row:has(.fx-dropdown-grid.fx-open),
.fx-grid ::deep tr:has(.fx-dropdown-grid.fx-open),
.fx-cell:has(.fx-dropdown-grid.fx-open),
td:has(.fx-dropdown-grid.fx-open),
.grid-cell-dropdowngrid:has(.fx-dropdown-grid.fx-open) {
    position: relative !important;
    z-index: 1000 !important;
}

.fx-dropdown-grid-popup {
    z-index: 10001 !important;
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25), 0 10px 15px -3px rgba(0, 0, 0, 0.15) !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

.fx-dropdown-grid-popup .fx-dropdown-grid-body,
.fx-dropdown-grid-popup .fx-grid,
.fx-dropdown-grid-popup .fx-grid-table,
.fx-dropdown-grid-popup .fx-grid-body,
.fx-dropdown-grid-popup .fx-grid-body tr,
.fx-dropdown-grid-popup .fx-grid-body td {
    background-color: #ffffff !important;
}

.fx-dropdown-grid-popup .fx-grid-body tr:hover td {
    background-color: #f1f5f9 !important;
}

.fx-dropdown-grid-popup .fx-dropdown-grid-search-bar {
    padding: 6px 8px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.fx-dropdown-grid-popup .fx-dropdown-grid-search-input {
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    padding: 4px 8px !important;
    font-size: 12px !important;
    outline: none !important;
    width: 100% !important;
    background: #ffffff !important;
}

.fx-dropdown-grid-popup .fx-dropdown-grid-search-input:focus {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important;
}

/* Modern Calendar Dropdown Popover */
.fx-datepicker-dropdown {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
    font-family: var(--site-font) !important;
    overflow: hidden !important;
    padding: 12px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    resize: none !important;
}

.fx-datepicker-dropdown::after {
    display: none !important;
}

.fx-datepicker-dropdown .fx-calendar-main {
    padding: 0 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.fx-datepicker-dropdown .fx-months-viewport {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.fx-datepicker-dropdown .fx-month-panel {
    width: 252px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.fx-datepicker-dropdown .fx-calendar-months-grid {
    grid-template-columns: 252px !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.fx-datepicker-dropdown.minimal {
    width: 276px !important;
}

.fx-datepicker-dropdown .fx-month-title {
    background: #f8fafc !important;
    color: #0f172a !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    height: 34px !important;
    line-height: 34px !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
}

.fx-datepicker-dropdown .fx-nav-btn {
    width: 28px !important;
    height: 28px !important;
    top: 3px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    color: #475569 !important;
    font-size: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.fx-datepicker-dropdown .fx-nav-btn:hover {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
    border-color: #cbd5e1 !important;
}

.fx-datepicker-dropdown .fx-nav-prev {
    left: 3px !important;
}

.fx-datepicker-dropdown .fx-nav-next {
    right: 3px !important;
}

.fx-datepicker-dropdown .fx-weekdays {
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 6px !important;
    padding-bottom: 6px !important;
    color: #94a3b8 !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 2px !important;
}

.fx-datepicker-dropdown .fx-weekday {
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #64748b !important;
}

.fx-datepicker-dropdown .fx-days-grid {
    grid-template-columns: repeat(7, 1fr) !important;
    grid-auto-rows: 32px !important;
    gap: 2px !important;
}

.fx-datepicker-dropdown .fx-day-cell {
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    height: 32px !important;
    min-height: 32px !important;
    line-height: 32px !important;
    border-radius: 6px !important;
    color: #334155 !important;
    border: 1px solid transparent !important;
    transition: background-color 0.12s, color 0.12s !important;
}

.fx-datepicker-dropdown .fx-day-cell:hover:not(.disabled):not(.selected) {
    background: #f1f5f9 !important;
    color: #0284c7 !important;
    border-color: transparent !important;
}

.fx-datepicker-dropdown .fx-day-cell.out-month {
    color: #cbd5e1 !important;
    opacity: 0.6 !important;
}

.fx-datepicker-dropdown .fx-day-cell.today:not(.selected) {
    font-weight: 700 !important;
    color: #0284c7 !important;
    background: #e0f2fe !important;
    border-radius: 6px !important;
}

.fx-datepicker-dropdown .fx-day-cell.selected {
    background: #0284c7 !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
}

.fx-datepicker-dropdown .fx-day-cell.selected::before {
    display: none !important;
}

.fx-datepicker-dropdown .fx-day-cell.selected .fx-day-number {
    color: #ffffff !important;
}

.fx-datepicker-dropdown .fx-today-link {
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #0284c7 !important;
    padding: 8px 4px 2px !important;
    text-align: center !important;
    border-top: 1px solid #f1f5f9 !important;
    margin-top: 8px !important;
    background: transparent !important;
    background-color: transparent !important;
    cursor: pointer !important;
    display: block !important;
}

.fx-datepicker-dropdown .fx-today-link:hover { color: #0284c7 !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ==========================================================================
   Live demo and documentation layout
   ========================================================================== */

.sf-demo-shell {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem 4rem;
    color: #1e293b;
    font-family: var(--site-font);
}

.sf-demo-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.sf-demo-breadcrumb {
    font-size: 0.82rem;
    color: #64748b;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.sf-demo-breadcrumb a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 500;
}

.sf-demo-breadcrumb a:hover { color: #0284c7;
}

.sf-breadcrumb-sep {
    color: #94a3b8;
}

.sf-breadcrumb-current {
    color: #1e293b;
    font-weight: 600;
}

.sf-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.sf-demo-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0;
}

.sf-demo-badge {
    background: #e0f2fe;
    color: #0369a1;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid #bae6fd;
}

.sf-demo-summary {
    font-size: 0.96rem;
    line-height: 1.6;
    color: #475569;
    max-width: 1100px;
    background: #f8fafc;
    border-left: 4px solid #0284c7;
    border-radius: 0 8px 8px 0;
    padding: 0.85rem 1.25rem;
    margin-top: 0.75rem;
}

.sf-demo-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    margin-bottom: 2.5rem;
    overflow: hidden;
}

.sf-section-header {
    background: #f8fafc;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.sf-section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.sf-icon-pulse {
    width: 9px;
    height: 9px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    display: inline-block;
}

.sf-section-title h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.sf-demo-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.sf-demo-card {
    padding: 1.25rem;
    min-height: 380px;
    background: #ffffff;
}

/* Tabbed Code Snippet Viewer */
.sf-code-section {
    background: #1e1e1e;
    border: 1px solid #334155;
    border-radius: 10px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
}

.sf-code-header {
    background: #252526;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333333;
    padding: 0 1rem;
    user-select: none;
}

.sf-code-tabs {
    display: flex;
    overflow-x: auto;
    gap: 2px;
}

.sf-code-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 500;
    padding: 0.75rem 1.1rem;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.sf-code-tab:hover {
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.04);
}

.sf-code-tab.active {
    color: #38bdf8;
    background: #1e1e1e;
    border-bottom-color: #38bdf8;
    font-weight: 600;
}

.sf-copy-btn {
    background: #334155;
    color: #f8fafc;
    border: 1px solid #475569;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.15s ease;
}

.sf-copy-btn:hover {
    background: #475569;
    border-color: #64748b;
}

.sf-copy-btn.copied {
    background: #059669;
    border-color: #10b981;
    color: #ffffff;
}

.sf-code-body {
    padding: 1.25rem 1.5rem;
    max-height: 520px;
    overflow-y: auto;
    background: #1e1e1e;
}

.sf-code-block {
    margin: 0;
    padding: 0;
    font-family: "Consolas", "Monaco", "Courier New", monospace;
    font-size: 0.86rem;
    line-height: 1.6;
    color: #d4d4d4;
    white-space: pre;
    tab-size: 4;
}

/* Documentation Content Block */
.sf-doc-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.75rem 2rem;
}

.sf-doc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.sf-doc-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #334155;
}

.sf-doc-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.sf-doc-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.sf-doc-content li {
    margin-bottom: 0.4rem;
}

.sf-param-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.88rem;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.sf-param-table th {
    background: #f1f5f9;
    padding: 0.65rem 1rem;
    text-align: left;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 1px solid #cbd5e1;
}

.sf-param-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

.sf-param-table tr:last-child td {
    border-bottom: none;
}

.sf-param-table code {
    background: #f1f5f9;
    color: #0284c7;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.83rem;
    font-family: monospace;
}

/* TreeGrid & TreeView classic enterprise styles */
.fx-treegrid-compact {
    font-size: 12px !important;
}

.fx-treegrid-yellow-folder .fx-tree-folder-icon {
    color: #f59e0b !important;
}

.fx-treegrid-dotted-lines .fx-treegrid-branch-line {
    border-left: 1px dotted #94a3b8 !important;
}

/* ── Showcase Landing Page Button Enhancements ───────────────────────── */
.landing-container .btn-grid-action {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 7px 16px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    outline: none !important;
    line-height: 1.3 !important;
    user-select: none !important;
}

.landing-container .btn-excel {
    background: var(--brand-button-soft) !important;
    color: var(--brand-button-soft-text) !important;
    box-shadow: none !important;
}

.landing-container .btn-excel:hover {
    background: var(--brand-button-soft-hover) !important;
    transform: translateY(-1px) !important;
}

.landing-container .btn-new {
    background: linear-gradient(180deg, var(--brand-button) 0%, var(--brand-button-hover) 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.35) !important;
}

.landing-container .btn-new:hover {
    background: var(--brand-button-hover) !important;
    box-shadow: 0 3px 8px rgba(79, 70, 229, 0.45) !important;
    transform: translateY(-1px) !important;
}

.landing-container .category-filter-bar {
    display: flex !important;
    gap: 7px !important;
    align-items: center !important;
    margin-bottom: 16px !important;
    flex-wrap: wrap !important;
    padding: 2px 0 !important;
}

.landing-container .filter-bar-label {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    color: #64748b !important;
    margin-right: 6px !important;
}

.landing-container .btn-filter-pill {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 5px 14px !important;
    border-radius: 9999px !important;
    cursor: pointer !important;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
    outline: none !important;
    line-height: 1.4 !important;
    display: inline-flex !important;
    align-items: center !important;
    user-select: none !important;
    box-shadow: none !important;
}

.landing-container .btn-filter-pill:hover { background: #f1f5f9 !important; color: #0284c7 !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-1px) !important;
}

.landing-container .btn-filter-pill.active {
    background: var(--brand-button) !important;
    border-color: var(--brand-button) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.4) !important;
}

/* 2026-10-25: library tab strips take the same hover and active blue via the control's CSS variables. */
.fx-tabstrip { --fx-tab-active-color: #0284c7; --fx-tab-active-border-color: #0284c7; }
.fx-tabstrip-tab:hover:not(.fx-tabstrip-tab-disabled) { --fx-text-color: #0284c7; }
/* 2026-10-25: site-wide hover: text #0284c7 (top menu blue), neutral backgrounds #f1f5f9, filled buttons darker indigo
   (2026-10-29); the 2px bar marks only the active or open item. */
/* ── 2026-10-18 ──────────────────────────────────────────────────────────────
   Frozen header cells: GridControl.razor writes position:sticky then position:relative inline on header cells, so
   frozen headers scroll away. Force sticky until the library fix. */
.fx-grid th.fx-header-cell[style*="position:sticky"] { position: sticky !important; }

/* Grid scrollbars: macOS overlay scrollbars hide a wide grid's horizontal bar; a styled WebKit scrollbar stays visible. */
.fx-grid-content::-webkit-scrollbar { width: 12px; height: 12px; }
.fx-grid-content::-webkit-scrollbar-track { background: #f3f3f3; }
.fx-grid-content::-webkit-scrollbar-thumb { background: #b9b9b9; border-radius: 6px; border: 2px solid #f3f3f3; }
.fx-grid-content::-webkit-scrollbar-thumb:hover { background: #8a8a8a; }
.fx-grid-content::-webkit-scrollbar-corner { background: #f3f3f3; }

/* Site tabs (2026-10-29): the top menu's look for every tab row. */
/* code-tab:site-tabs */
/* class="site-tabs" on a TabStripControl, or on a TabControl for its header row. :root and :is() outrank the strip's own
   styles and the colors its Theme writes inline. */
:root :is(.fx-tabstrip.site-tabs, .fx-tabs.site-tabs > .fx-tabstrip) { padding: 6px 8px; gap: 4px; background: none; border: 0; border-bottom: 1px solid #f1f5f9; }
:root :is(.fx-tabstrip.site-tabs, .fx-tabs.site-tabs > .fx-tabstrip) .fx-tabstrip-viewport { gap: 4px; }
:root :is(.fx-tabstrip.site-tabs, .fx-tabs.site-tabs > .fx-tabstrip) .fx-tabstrip-tab {
    min-height: 0;
    margin: 0;
    padding: 6px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    color: #475569;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
}
:root :is(.fx-tabstrip.site-tabs, .fx-tabs.site-tabs > .fx-tabstrip) .fx-tabstrip-tab + .fx-tabstrip-tab { margin-left: 0; }
:root :is(.fx-tabstrip.site-tabs, .fx-tabs.site-tabs > .fx-tabstrip) .fx-tabstrip-tab:hover:not(.fx-tabstrip-tab-disabled) { background: #f1f5f9; color: #0284c7; }
:root :is(.fx-tabstrip.site-tabs, .fx-tabs.site-tabs > .fx-tabstrip) .fx-tabstrip-tab.fx-tabstrip-tab-active { padding: 6px 12px; background: #e0f2fe; color: #0284c7; font-weight: 600; }
:root :is(.fx-tabstrip.site-tabs, .fx-tabs.site-tabs > .fx-tabstrip) .fx-tabstrip-tab .fx-tabstrip-close { width: 18px; height: 18px; margin: 0 -4px 0 2px; border-radius: 50%; color: #0284c7; }
:root :is(.fx-tabstrip.site-tabs, .fx-tabs.site-tabs > .fx-tabstrip) .fx-tabstrip-tab .fx-tabstrip-close:hover { background: #bae6fd; color: #075985; }
/* A TabControl's pane drops the box drawn under its tabs */
:root .fx-tabs.site-tabs > .fx-tab-content { border: 0; padding: 16px 0 0; }
/* /code-tab */
