/* Razor Sharp Getaways: the app window's look, also linked by the FlexCore site's home demo frame. Rules are scoped under .gw-app
   and style library controls through fx- classes and --fx-* variables; a repeated class beats a library scoped selector. */

/* ── 1. The window: type, colors and the four schemes ── */
.gw-app {
    --site-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Razor Sharp, the design scheme; GetawaysAppSettings sets scheme-{key} here for the other three */
    --brand-button: #4f46e5;
    --brand-button-hover: #4338ca;
    --brand-button-soft: #eef2ff;
    --brand-button-soft-hover: #e0e7ff;
    --brand-button-soft-text: #4338ca;
    --gw-page-bg: #f8fafc;
    --gw-side-bg: #f5f6ff;
    --gw-side-border: #e0e7ff;
    --gw-side-brand: #1e1b4b;
    --gw-side-text: #334155;
    --gw-side-hover: #eceeff;
    --gw-side-hover-text: var(--brand-button-soft-text);
    --gw-side-active: var(--brand-button-soft-hover);
    --gw-side-active-text: var(--brand-button-soft-text);
    --gw-side-foot: #64748b;
    --gw-mark-bg: var(--brand-button);
    --gw-mark-text: #ffffff;
    --gw-link: #0284c7;
    --gw-code-text: #0369a1;
    --gw-hint-bg: #f0f9ff;
    --gw-hint-border: #e0f2fe;
    --gw-hint-text: #0369a1;
    --gw-soft-border: #c7d2fe;
    --gw-badge: #2563eb;
    --gw-report-ink: #0d3b66;
    --gw-grid-header: #f8fafc;
    --gw-grid-alt: #f5f7fb;
    --gw-grid-selected: #dbeafe;
    --gw-grid-selected-text: #1e3a8a;
    --gw-grid-selected-hover: #bfdbfe;
    --gw-grid-selected-border: #93c5fd;
    --gw-grid-pressed: #e0f2fe;

    /* FlexCore's buttons, segments, chips and pickers read these */
    --fx-accent: var(--brand-button);
    --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: var(--gw-soft-border);

    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    height: 100dvh;      /* the app fills the browser window; the FlexCore site's demo frame sets its own height */
    background: var(--gw-page-bg);
    color: #0f172a;
    font-family: var(--site-font);
    transition: grid-template-columns 0.2s ease;
}
.gw-app.scheme-harbour {
    --brand-button: #0369a1;
    --brand-button-hover: #075985;
    --brand-button-soft: #e0f2fe;
    --brand-button-soft-hover: #bae6fd;
    --brand-button-soft-text: #075985;
    --gw-side-bg: #0c4a6e;
    --gw-side-border: #075985;
    --gw-side-brand: #ffffff;
    --gw-side-text: #e0f2fe;
    --gw-side-hover: #075985;
    --gw-side-hover-text: #ffffff;
    --gw-side-active: #0369a1;
    --gw-side-active-text: #ffffff;
    --gw-side-foot: #bae6fd;
    --gw-mark-bg: #38bdf8;
    --gw-mark-text: #0c4a6e;
    --gw-link: #0369a1;
    --gw-code-text: #075985;
    --gw-soft-border: #7dd3fc;
    --gw-badge: #0369a1;
    --gw-report-ink: #075985;
    --gw-grid-header: #f0f9ff;
    --gw-grid-alt: #f3f9fd;
    --gw-grid-selected: #e0f2fe;
    --gw-grid-selected-text: #075985;
    --gw-grid-selected-hover: #bae6fd;
    --gw-grid-selected-border: #7dd3fc;
    --gw-grid-pressed: #bae6fd;
}
.gw-app.scheme-evergreen {
    --brand-button: #047857;
    --brand-button-hover: #065f46;
    --brand-button-soft: #ecfdf5;
    --brand-button-soft-hover: #d1fae5;
    --brand-button-soft-text: #065f46;
    --gw-page-bg: #f7fdf9;
    --gw-side-bg: #ecfdf5;
    --gw-side-border: #d1fae5;
    --gw-side-brand: #064e3b;
    --gw-side-hover: #d1fae5;
    --gw-link: #047857;
    --gw-code-text: #065f46;
    --gw-hint-bg: #ecfdf5;
    --gw-hint-border: #d1fae5;
    --gw-hint-text: #065f46;
    --gw-soft-border: #a7f3d0;
    --gw-badge: #047857;
    --gw-report-ink: #065f46;
    --gw-grid-header: #f0fdf4;
    --gw-grid-alt: #f2fbf6;
    --gw-grid-selected: #d1fae5;
    --gw-grid-selected-text: #065f46;
    --gw-grid-selected-hover: #a7f3d0;
    --gw-grid-selected-border: #6ee7b7;
    --gw-grid-pressed: #d1fae5;
}
.gw-app.scheme-sunset {
    --brand-button: #be123c;
    --brand-button-hover: #9f1239;
    --brand-button-soft: #fff1f2;
    --brand-button-soft-hover: #ffe4e6;
    --brand-button-soft-text: #9f1239;
    --gw-page-bg: #fffbf7;
    --gw-side-bg: #fff7ed;
    --gw-side-border: #fed7aa;
    --gw-side-brand: #7c2d12;
    --gw-side-hover: #ffedd5;
    --gw-link: #be123c;
    --gw-code-text: #9f1239;
    --gw-hint-bg: #fff1f2;
    --gw-hint-border: #ffe4e6;
    --gw-hint-text: #9f1239;
    --gw-soft-border: #fecdd3;
    --gw-badge: #be123c;
    --gw-report-ink: #9f1239;
    --gw-grid-header: #fff7ed;
    --gw-grid-alt: #fff8f6;
    --gw-grid-selected: #ffe4e6;
    --gw-grid-selected-text: #9f1239;
    --gw-grid-selected-hover: #fecdd3;
    --gw-grid-selected-border: #fda4af;
    --gw-grid-pressed: #ffe4e6;
}
.gw-app.gw-nav-collapsed { grid-template-columns: 68px minmax(0, 1fr); }

/* FlexCore buttons: the app's type and weight, and the scheme color for library-fixed variants (btn-primary). */
.gw-app .fx-button.fx-button:not(.fx-button-classic) {
    font-family: inherit;
    font-weight: 600;
    line-height: 1.35;
    transition: background-color 0.15s ease;
}
.gw-app .fx-button.btn-sm.btn-sm:not(.fx-button-classic) { padding: 4px 10px; font-size: calc(12px * var(--fx-zoom, 1)); }
.gw-app .fx-button.btn-primary.btn-primary { background: var(--brand-button); border-color: var(--brand-button); color: #ffffff; }
.gw-app .fx-button.btn-primary.btn-primary:hover:not(:disabled) { background: var(--brand-button-hover); border-color: var(--brand-button-hover); }
.gw-app .fx-button:has(> .bi) { display: inline-flex; align-items: center; gap: 6px; }

/* ── 2. The menu ── */
.gw-app .gw-sidebar {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--gw-side-bg);
    border-right: 1px solid var(--gw-side-border);
    padding: 16px 10px 14px;
}
.gw-app .gw-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 6px 18px;
    font-size: 15px;   /* the logo stays one size: the menu's width is fixed */
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--gw-side-brand);
    white-space: nowrap;
}
.gw-app .gw-brand-mark {
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--gw-mark-bg);
    color: var(--gw-mark-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: calc(15px * var(--fx-zoom, 1));
}

/* The menu is a vertical TabStripControl */
.gw-app .gw-sidebar .fx-tabstrip.gw-nav {
    width: auto;
    height: auto;
    flex: 0 0 auto;
    padding: 0;
    border: 0;
    background: none;
}
.gw-app .gw-sidebar .gw-nav .fx-tabstrip-viewport { padding: 0; gap: 4px; }
.gw-app .gw-sidebar .gw-nav .fx-tabstrip-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    height: 42px;
    margin: 0;
    padding: 0 13px;
    border: 0;
    border-radius: 10px;
    background: none;
    box-shadow: none;
    color: var(--gw-side-text);
    font: inherit;
    font-size: calc(14px * var(--fx-zoom, 1));
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
}
.gw-app .gw-sidebar .gw-nav .fx-tabstrip-text { display: inline; overflow: visible; white-space: nowrap; line-height: 1.25; }
.gw-app .gw-sidebar .gw-nav .fx-tabstrip-tab::before,
.gw-app .gw-sidebar .gw-nav .fx-tabstrip-tab::after { display: none; }
.gw-app .gw-sidebar .gw-nav .fx-tabstrip-tab:hover { background: var(--gw-side-hover); color: var(--gw-side-hover-text); }
.gw-app .gw-sidebar .gw-nav .fx-tabstrip-tab.fx-tabstrip-tab-active {
    background: var(--gw-side-active);
    color: var(--gw-side-active-text);
    font-weight: 600;
}
.gw-app .gw-sidebar .gw-nav .fx-tabstrip-icon { flex: none; width: 18px; font-size: calc(17px * var(--fx-zoom, 1)); text-align: center; }
.gw-app .gw-sidebar-foot {
    margin-top: auto;
    padding: 0 8px;
    font-size: calc(11.5px * var(--fx-zoom, 1));
    line-height: 1.5;
    color: var(--gw-side-foot);
    white-space: nowrap;
}

/* Menu shrunk to icons: wide screens after the menu button, phones until it */
.gw-app.gw-nav-collapsed .gw-brand-name,
.gw-app.gw-nav-collapsed .gw-sidebar-foot,
.gw-app.gw-nav-collapsed .gw-sidebar .fx-tabstrip-text { display: none; }
.gw-app.gw-nav-collapsed .gw-sidebar .gw-nav .fx-tabstrip-tab { justify-content: center; padding: 0; }
.gw-app .gw-scrim { display: none; }

/* ── 3. The top bar, the page area and the + button ── */
.gw-app .gw-main {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}
.gw-app .gw-main .fx-app-bar.gw-appbar { background: #ffffff; border-bottom: 1px solid #e2e8f0; padding: 6px 14px; }
.gw-app .gw-main .gw-appbar .fx-toolbar { min-height: 48px; margin: 0; padding: 0; border: 0; background: none; }
.gw-app .gw-main .gw-appbar .fx-app-bar-start { min-width: 0; }
.gw-app .gw-page-title {
    font-size: calc(17px * var(--fx-zoom, 1));
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gw-app .gw-main .gw-icon-btn {
    position: relative;
    flex: none;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: none;
    color: #334155;
    font-size: calc(19px * var(--fx-zoom, 1));
    cursor: pointer;
}
.gw-app .gw-main .gw-icon-btn:hover { background: #f1f5f9; color: var(--brand-button-soft-text); }
.gw-app .gw-main .gw-bell-dot { position: absolute; top: 8px; right: 9px; }
.gw-app .gw-main .gw-profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 3px 10px 3px 3px;
    border: 0;
    border-radius: 999px;
    background: none;
    color: #0f172a;
    font: inherit;
    font-size: calc(14px * var(--fx-zoom, 1));
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}
.gw-app .gw-main .gw-profile:hover { background: #f1f5f9; }
.gw-app .gw-main .fx-avatar.gw-avatar { background: var(--brand-button-soft-hover); color: var(--brand-button-soft-text); font-size: calc(13px * var(--fx-zoom, 1)); }
.gw-app .gw-profile-caret { font-size: calc(12px * var(--fx-zoom, 1)); color: #64748b; }

/* Bell and profile menus (ButtonControl DropDownContent), opening to the left of their button */
.gw-app .gw-main .fx-button-dd-panel.gw-menu {
    left: auto;
    right: 0;
    margin-top: 8px;
    min-width: 220px;
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 30px -10px rgba(15, 23, 42, 0.3);
}
.gw-app .gw-main .fx-button-dd-panel.gw-menu-wide { width: 340px; }
.gw-app .gw-main .gw-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #1e293b;
    font: inherit;
    font-size: calc(14px * var(--fx-zoom, 1));
    text-align: left;
    cursor: pointer;
}
.gw-app .gw-main .gw-menu-item:hover { background: var(--brand-button-soft); color: var(--brand-button-soft-text); }
.gw-app .gw-main .gw-menu-all { justify-content: center; margin-top: 2px; border-top: 1px solid #f1f5f9; border-radius: 0 0 8px 8px; font-weight: 600; color: var(--brand-button-soft-text); }
.gw-app .gw-menu-head { padding: 8px 12px 6px; font-size: calc(11.5px * var(--fx-zoom, 1)); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.gw-app .gw-menu-request-text { display: flex; flex-direction: column; min-width: 0; font-size: calc(13.5px * var(--fx-zoom, 1)); line-height: 1.35; }
.gw-app .gw-menu-request-text small { font-size: calc(12px * var(--fx-zoom, 1)); color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Page scrolls inside the window; bottom padding keeps the last row clear of the + button */
.gw-app .gw-page {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 20px 24px 96px;
    background: var(--gw-page-bg);
}

/* + button in the window's corner, not the screen's; its backdrop still catches click-away, without dimming */
.gw-app .gw-main .fx-fab-host.gw-fab { position: absolute; right: 26px; bottom: 22px; z-index: 30; }
.gw-app .gw-main .gw-fab .fx-fab-backdrop { background: transparent; }
.gw-app .gw-main .gw-fab .fx-fab-trigger { background: var(--brand-button); }
.gw-app .gw-main .gw-fab .fx-fab-trigger:hover:not(:disabled) { background: var(--brand-button-hover); }
.gw-app .gw-main .gw-fab .fx-fab-action-btn { background: var(--brand-button-soft-hover); color: var(--brand-button-soft-text); }

@media (max-width: 768px) {
    .gw-app,
    .gw-app.gw-nav-collapsed { position: relative; grid-template-columns: 60px minmax(0, 1fr); }
    .gw-app .gw-sidebar { padding: 12px 6px; }

    /* Icons only until the menu button opens the menu over the page */
    .gw-app:not(.gw-nav-open) .gw-brand-name,
    .gw-app:not(.gw-nav-open) .gw-sidebar-foot,
    .gw-app:not(.gw-nav-open) .gw-sidebar .fx-tabstrip-text { display: none; }
    .gw-app:not(.gw-nav-open) .gw-sidebar .gw-nav .fx-tabstrip-tab { justify-content: center; padding: 0; }
    .gw-app.gw-nav-open .gw-brand-name,
    .gw-app.gw-nav-open .gw-sidebar-foot,
    .gw-app.gw-nav-open .gw-sidebar .fx-tabstrip-text { display: revert; }
    .gw-app.gw-nav-open .gw-sidebar .gw-nav .fx-tabstrip-tab { justify-content: flex-start; padding: 0 13px; }
    .gw-app.gw-nav-open .gw-sidebar {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 210;       /* over the top bar, whose AppBarControl ZIndex is 100 */
        width: 220px;
        padding: 12px 10px;
        box-shadow: 14px 0 30px -14px rgba(15, 23, 42, 0.4);
    }
    .gw-app.gw-nav-open .gw-scrim { display: block; position: absolute; inset: 0; z-index: 209; background: rgba(15, 23, 42, 0.25); }

    .gw-app .gw-main .gw-appbar .fx-toolbar-items { flex-wrap: nowrap; gap: 4px; }
    .gw-app .gw-main .gw-help,
    .gw-app .gw-main .gw-profile-name,
    .gw-app .gw-profile-caret { display: none; }
    .gw-app .gw-main .gw-profile { padding: 3px; }
    .gw-app .gw-page-title { font-size: calc(15px * var(--fx-zoom, 1)); }
    .gw-app .gw-main .fx-button-dd-panel.gw-menu-wide { width: min(300px, 80vw); }
    .gw-app .gw-page { padding: 14px 12px 90px; }
}

/* ── 4. Trip Requests ── */
.gw-app .gw-requests { display: flex; flex-direction: column; }

/* The hint runs edge to edge under the top bar, as a banner */
.gw-app .fx-alert.gw-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -20px -24px 16px;
    padding: 8px 18px;
    border: 0;
    border-bottom: 1px solid var(--gw-hint-border);
    border-radius: 0;
    background: var(--gw-hint-bg);
    color: var(--gw-hint-text);
    font-size: calc(12.5px * var(--fx-zoom, 1));
}
.gw-app .gw-hint .fx-alert-icon { color: var(--gw-link); }
.gw-app .gw-hint .fx-alert-content,
.gw-app .gw-hint .fx-alert-text { margin: 0; padding: 0; font-size: inherit; color: inherit; }

/* The toolbar: view, search; export and new */
.gw-app .fx-toolbar.gw-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 20;
    overflow: visible;
    min-height: 0;
    margin: 0 0 14px;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    box-shadow: none;
}
.gw-app .gw-toolbar .fx-toolbar-items { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.gw-app .gw-toolbar .fx-toolbar-trailing { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.gw-app .gw-toolbar-label { margin-right: -6px; font-size: calc(13px * var(--fx-zoom, 1)); font-weight: 600; color: #334155; }

/* SearchBoxControl with a magnifier drawn in */
.gw-app .fx-searchbox.gw-search {
    width: 240px;
    padding: 5px 12px 5px 30px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2394a3b8'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E") no-repeat 10px center / 13px 13px;
    color: #0f172a;
    font-family: inherit;
    font-size: calc(13px * var(--fx-zoom, 1));
    line-height: 1.4;
}
.gw-app .fx-searchbox.gw-search:focus {
    outline: none;
    border-color: var(--gw-link);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--gw-link) 20%, transparent);
}

/* The view DropDownListControl (also the Invoices page's trip picker) */
.gw-app .gw-view { display: inline-block !important; position: relative !important; }
.gw-app .gw-view .fx-dropdown {
    height: 32px !important;
    min-height: 32px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    padding: 0 30px 0 10px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #0f172a !important;
    box-shadow: none !important;
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
}
.gw-app .gw-view .fx-dropdown:focus,
.gw-app .gw-view.fx-dropdown-host:focus-within .fx-dropdown {
    border-color: #0284c7 !important;
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important;
    outline: none !important;
}
.gw-app .gw-view .fx-dropdown-text {
    font-family: inherit !important;
    font-size: 13px !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.gw-app .gw-view .fx-dropdown-arrow {
    width: 28px !important;
    border-left: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    border-radius: 0 5px 5px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transition: background-color 0.15s !important;
}
.gw-app .gw-view:hover .fx-dropdown-arrow { background: #f1f5f9 !important; }
.gw-app .gw-view .fx-dropdown-arrow::before {
    content: "" !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 5px solid #64748b !important;
    border-bottom: none !important;
}
.gw-app .gw-view:hover .fx-dropdown-arrow::before { border-top-color: #0284c7 !important; }
.gw-app .gw-view .fx-dropdown-panel {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    background: #ffffff !important;
    padding: 4px !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
}
.gw-app .gw-view .fx-dropdown-option {
    font-family: inherit !important;
    font-size: 13px !important;
    padding: 6px 10px !important;
    border-radius: 6px !important;
    border: none !important;
    background: transparent !important;
    text-align: left !important;
    width: 100% !important;
    cursor: pointer !important;
    display: block !important;
    box-sizing: border-box !important;
    color: #334155 !important;
    transition: background-color 0.1s, color 0.1s !important;
}
.gw-app .gw-view .fx-dropdown-option:hover,
.gw-app .gw-view .fx-dropdown-option.highlighted { background: #f0f9ff !important; color: #0284c7 !important; }
.gw-app .gw-view .fx-dropdown-option.selected { background: #0284c7 !important; color: #ffffff !important; font-weight: 600 !important; }

/* Trip-type filter: ChipListControl, one chip selected at a time */
.gw-app .gw-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.gw-app .gw-filter-label { margin-right: 4px; font-size: calc(12px * var(--fx-zoom, 1)); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #64748b; }
.gw-app .fx-chip-list.gw-types { gap: 6px; }
.gw-app .gw-types .fx-chip {
    padding: 0;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    font-size: calc(12px * var(--fx-zoom, 1));
    font-weight: 500;
    transition: all 0.15s ease;
}
.gw-app .gw-types .fx-chip .fx-chip-label { padding: 4px 12px; border: 0; border-radius: 9999px; background: none; color: inherit; font: inherit; cursor: pointer; }
.gw-app .gw-types .fx-chip:hover { color: var(--gw-link); }
.gw-app .gw-types .fx-chip.selected { background: var(--brand-button); border-color: var(--brand-button); color: #ffffff; font-weight: 600; }

/* Grid in the window's colors. Cell and row rules skip the DropDownGridControl popup grid nested in the cells; header rules
   reach it on purpose (it sorts too). */
.gw-app .fx-grid.gw-grid-theme {
    --fx-grid-font-family: var(--site-font) !important;
    --fx-grid-font-size: 13px !important;
    --fx-grid-header-font-size: 13px !important;
    --fx-grid-bg: #ffffff !important;
    --fx-grid-text-color: #1e293b !important;
    --fx-grid-border-color: #cbd5e1 !important;
    --fx-grid-line-color: #e2e8f0 !important;
    --fx-grid-table-border-color: #e2e8f0 !important;
    --fx-grid-cell-border-color: #e2e8f0 !important;
    --fx-grid-cell-border-right-color: #e2e8f0 !important;
    --fx-grid-header-bg: var(--gw-grid-header, #f8fafc) !important;
    --fx-grid-header-hover-bg: #f1f5f9 !important;
    --fx-grid-header-text-color: #0f172a !important;
    --fx-grid-header-border-color: #cbd5e1 !important;
    --fx-grid-header-shadow-color: #cbd5e1 !important;
    --fx-grid-header-highlight-color: #ffffff !important;
    --fx-grid-row-hover-bg: #f1f5f9 !important;
    --fx-grid-alt-row-bg: var(--gw-grid-alt, #f5f7fb) !important;
    --fx-grid-selected-row-bg: var(--gw-grid-selected, #dbeafe) !important;
    --fx-grid-selected-row-color: var(--gw-grid-selected-text, #1e3a8a) !important;
    --fx-grid-selected-row-hover-bg: var(--gw-grid-selected-hover, #bfdbfe) !important;
    --fx-grid-selected-row-border: var(--gw-grid-selected-border, #93c5fd) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}
.gw-app .fx-grid.gw-grid-theme .fx-header-cell {
    padding: 8px 12px !important;
    font-weight: 600 !important;
    font-size: calc(13px * var(--fx-zoom, 1)) !important;
    color: #0f172a !important;
    background: var(--gw-grid-header, #f8fafc) !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-right: 1px solid #e2e8f0 !important;
    letter-spacing: 0.01em !important;
    height: 38px !important;
}
.gw-app .fx-grid.gw-grid-theme .fx-cell:not(.fx-dropdown-grid-popup *) {
    padding: 7px 12px !important;
    font-size: calc(13px * var(--fx-zoom, 1)) !important;
    line-height: 1.4 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    border-right: 1px solid #e2e8f0 !important;
    color: #334155 !important;
    height: 36px !important;
}
/* Frozen cells paint background-color: inherit, so every row gets an opaque one (the more specific hover rule below wins) */
.gw-app .fx-grid.gw-grid-theme .fx-row:not(.fx-dropdown-grid-popup *) { background-color: #ffffff !important; }
.gw-app .fx-grid.gw-grid-theme .fx-row.fx-alt-row:not(.fx-dropdown-grid-popup *) { background-color: var(--gw-grid-alt, #f5f7fb) !important; }
.gw-app .fx-grid.gw-grid-theme .fx-row:not(.fx-dropdown-grid-popup *):hover { background-color: #f1f5f9 !important; }
/* Inside the popup grid only the current option is tinted */
.gw-app .fx-grid.gw-grid-theme .fx-dropdown-grid-popup .fx-grid {
    --fx-grid-selected-row-bg: #ffffff;
    --fx-grid-selected-row-color: #1e293b;
}
.gw-app .fx-grid.gw-grid-theme .fx-dropdown-grid-popup tr.fx-row.fx-selected {
    --fx-grid-selected-row-bg: var(--gw-grid-pressed, #e0f2fe);
    --fx-grid-selected-row-color: var(--gw-code-text, #0369a1);
}
/* Every column has a Field and sorts on header click; a faint arrow shows it until the grid draws its own ▲ / ▼ */
.gw-app .fx-grid.gw-grid-theme th.fx-header-cell[data-field] { cursor: pointer; }
.gw-app .fx-grid.gw-grid-theme th.fx-header-cell[data-field]:not(.fx-sorted) .fx-header-text::after {
    content: "↕";
    margin-left: 4px;
    color: #94a3b8;
    font-weight: 400;
}
.gw-app .fx-grid.gw-grid-theme th.fx-header-cell[data-field]:not(.fx-sorted):hover .fx-header-text::after { color: var(--gw-link, #0284c7); }
.gw-app .fx-grid.gw-grid-theme th.fx-header-cell[data-field]:active { background: var(--gw-grid-pressed, #e0f2fe) !important; }
.gw-app .fx-grid.gw-grid-theme .fx-sort-icon { color: var(--gw-link, #0284c7); }
.gw-app .fx-grid.gw-grid-theme .fx-row.fx-selected:not(.fx-dropdown-grid-popup *) > td,
.gw-app .fx-grid.gw-grid-theme .fx-row.fx-selected:not(.fx-dropdown-grid-popup *) > .fx-cell {
    background-color: var(--gw-grid-selected, #dbeafe) !important;
    color: var(--gw-grid-selected-text, #1e3a8a) !important;
    font-weight: 500 !important;
}
/* Settings Density and GridLines: this theme fixes cell sizes and borders with !important, so they need these to show */
.gw-app .fx-grid.gw-grid-theme.fx-grid-density-compact .fx-header-cell { padding: 4px 10px !important; height: 30px !important; }
.gw-app .fx-grid.gw-grid-theme.fx-grid-density-compact .fx-cell:not(.fx-dropdown-grid-popup *) { padding: 3px 10px !important; height: 28px !important; }
.gw-app .fx-grid.gw-grid-theme:is(.fx-grid-lines-horizontal, .fx-grid-lines-none) .fx-cell:not(.fx-dropdown-grid-popup *),
.gw-app .fx-grid.gw-grid-theme:is(.fx-grid-lines-horizontal, .fx-grid-lines-none) .fx-header-cell { border-right-color: transparent !important; }
.gw-app .fx-grid.gw-grid-theme:is(.fx-grid-lines-vertical, .fx-grid-lines-none) .fx-cell:not(.fx-dropdown-grid-popup *) { border-bottom-color: transparent !important; }
/* Built-in grid themes: frozen cells inherit the row background, so rows stay opaque here too */
.gw-app .fx-grid.gw-grid:not(.gw-grid-theme) .fx-row:not(.fx-dropdown-grid-popup *):not(.fx-alt-row) { background-color: var(--fx-grid-bg, #ffffff); }

/* Cells: request code, agent, fare trend, status, itinerary */
.gw-app .fx-badge.gw-code.gw-code {
    padding: 2px 6px;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #f1f5f9;
    color: var(--gw-code-text);
    font-family: "SF Mono", Menlo, Consolas, Monaco, monospace;
    font-weight: 700;
}
.gw-app .gw-agent { display: flex; align-items: center; gap: 8px; }
.gw-app .fx-avatar.gw-agent-avatar {
    color: #ffffff;
    font-size: calc(10px * var(--fx-zoom, 1));
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.gw-app .gw-agent-name { font-weight: 500; color: #0f172a; white-space: nowrap; }
.gw-app .gw-trend { display: flex; align-items: center; gap: 8px; width: 100%; }
.gw-app .fx-chart.gw-spark { flex: none; width: 68px; height: 22px; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.gw-app .gw-spark svg { display: block; overflow: visible; }
.gw-app .gw-spark svg polyline { stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.gw-app .fx-badge.gw-delta.gw-delta {
    padding: 1px 6px;
    border-radius: 4px;
    font-size: calc(11px * var(--fx-zoom, 1));
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}
.gw-app .fx-badge.gw-delta-up.gw-delta-up { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.gw-app .fx-badge.gw-delta-down.gw-delta-down { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.gw-app .fx-badge.gw-badge.gw-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: calc(11px * var(--fx-zoom, 1));
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
}
.gw-app .fx-badge.gw-badge-green.gw-badge-green { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.gw-app .fx-badge.gw-badge-blue.gw-badge-blue { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.gw-app .fx-badge.gw-badge-amber.gw-badge-amber { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.gw-app .fx-badge.gw-badge-rose.gw-badge-rose { background: #ffe4e6; color: #9f1239; border: 1px solid #fecdd3; }
.gw-app .fx-badge.gw-badge-gray.gw-badge-gray { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.gw-app .gw-desc { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.gw-app .gw-desc-text { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(12.5px * var(--fx-zoom, 1)); color: #334155; }
/* Template-colored text follows the grid on the built-in Dark Slate theme */
.gw-app .fx-grid-dark .gw-agent-name,
.gw-app .fx-grid-dark .gw-desc-text { color: inherit; }
.gw-app .gw-cell-edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: none;
    padding: 2px 8px;
    border: 1px solid #c7d2fe;
    border-radius: 4px;
    background: var(--brand-button-soft);
    color: var(--brand-button-soft-text);
    font: inherit;
    font-size: calc(11px * var(--fx-zoom, 1));
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.gw-app .gw-cell-edit:hover { background: var(--brand-button); border-color: var(--brand-button); color: #ffffff; }

/* The in-cell DropDownGridControl */
.gw-app .gw-cell-lookup { width: 100%; height: 28px; display: flex; align-items: center; }
.gw-app .gw-cell-lookup .fx-dropdown-grid { width: 100% !important; height: 28px !important; position: relative !important; }
.gw-app .gw-cell-lookup .fx-dropdown-grid-input-wrap {
    height: 28px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    transition: all 0.15s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    cursor: pointer !important;
}
.gw-app .gw-cell-lookup .fx-dropdown-grid-input-wrap:hover { border-color: #0284c7 !important; box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15) !important; }
.gw-app .gw-cell-lookup .fx-dropdown-grid-input {
    border: none !important;
    border-radius: 6px 0 0 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    padding: 0 24px 0 8px !important;
    background: transparent !important;
    height: 26px !important;
    line-height: 26px !important;
    cursor: pointer !important;
}
.gw-app .gw-cell-lookup .fx-dropdown-grid-arrow {
    border-left: 1px solid #e2e8f0 !important;
    background: #f1f5f9 !important;
    width: 20px !important;
    border-top-right-radius: 5px !important;
    border-bottom-right-radius: 5px !important;
    cursor: pointer !important;
}
/* The control places its popup after two script round trips, then never moves it; anchor positioning ties it to its box from the
   first render and flips it at the window edge. */
@supports (position-area: bottom) {
    .gw-app .fx-dropdown-grid.fx-open > .fx-dropdown-grid-input-wrap { anchor-name: --fx-dropdown-grid-open; }
    .gw-app .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;
    }
}
/* The open popup paints over the rows below it */
.gw-app .fx-row:has(.fx-dropdown-grid.fx-open),
.gw-app tr:has(.fx-dropdown-grid.fx-open),
.gw-app .fx-cell:has(.fx-dropdown-grid.fx-open),
.gw-app td:has(.fx-dropdown-grid.fx-open),
.gw-app .gw-cell-lookup:has(.fx-dropdown-grid.fx-open) { position: relative !important; z-index: 1000 !important; }
.gw-app .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;
}
.gw-app .fx-dropdown-grid-popup .fx-dropdown-grid-body,
.gw-app .fx-dropdown-grid-popup .fx-grid,
.gw-app .fx-dropdown-grid-popup .fx-grid-table,
.gw-app .fx-dropdown-grid-popup .fx-grid-body,
.gw-app .fx-dropdown-grid-popup .fx-grid-body tr,
.gw-app .fx-dropdown-grid-popup .fx-grid-body td { background-color: #ffffff !important; }
.gw-app .fx-dropdown-grid-popup .fx-grid-body tr:hover td { background-color: #f1f5f9 !important; }
.gw-app .fx-dropdown-grid-popup .fx-dropdown-grid-search-bar { padding: 6px 8px !important; background: #f8fafc !important; border-bottom: 1px solid #e2e8f0 !important; }
.gw-app .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;
}
.gw-app .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; }

/* StatusBarControl under the grid */
.gw-app .fx-statusbar.gw-status {
    height: auto;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    overflow: visible;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #f8fafc;
    color: #64748b;
    font-size: calc(12px * var(--fx-zoom, 1));
}
.gw-app .gw-status .fx-statusbar-panel { display: flex; flex-wrap: wrap; gap: 8px; height: auto; padding: 0; border: 0; overflow: visible; white-space: normal; }
.gw-app .gw-status-selected { color: var(--gw-link); font-weight: 600; }
.gw-app .gw-status-total { font-weight: 700; color: #0f172a; }

/* The quote editor: DialogControl */
.gw-app .fx-dialog.gw-editor {
    width: min(600px, 96vw);
    max-width: 96vw;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: visible;
    font-family: var(--site-font);
}
.gw-app .gw-editor .fx-dialog-header { padding: 14px 20px; border-bottom: 1px solid #e2e8f0; border-radius: 12px 12px 0 0; background: #f8fafc; }
.gw-app .gw-editor .fx-dialog-title { white-space: normal; }
.gw-app .gw-editor-head { display: flex; align-items: center; gap: 12px; }
.gw-app .fx-badge.gw-editor-badge.gw-editor-badge { padding: 4px 10px; border-radius: 6px; background: var(--gw-badge); color: #ffffff; font-weight: 700; }
.gw-app .gw-editor-titles { display: flex; flex-direction: column; }
.gw-app .gw-editor-title { font-size: calc(16px * var(--fx-zoom, 1)); font-weight: 700; color: #0f172a; }
.gw-app .gw-editor-sub { font-size: calc(12px * var(--fx-zoom, 1)); font-weight: 400; color: #64748b; }
.gw-app .gw-editor .fx-dialog-close { color: #94a3b8; }
.gw-app .gw-editor .fx-dialog-close:hover { color: var(--gw-link); }
.gw-app .gw-editor .fx-dialog-body { padding: 20px; max-height: 70vh; overflow-y: auto; }
.gw-app .gw-editor .fx-dialog-footer { gap: 10px; padding: 14px 20px; border-top: 1px solid #e2e8f0; border-radius: 0 0 12px 12px; background: #f8fafc; }
.gw-app .gw-form { display: flex; flex-direction: column; gap: 14px; }
.gw-app .gw-form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gw-app .gw-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gw-app .gw-field > label { font-size: calc(12px * var(--fx-zoom, 1)); font-weight: 600; color: #475569; }
/* An open drop-down paints over the fields below it */
.gw-app .gw-field:has(.fx-dropdown-panel),
.gw-app .gw-form-2:has(.fx-dropdown-panel) { position: relative; z-index: 50; }
.gw-app .gw-input {
    width: 100%;
    box-sizing: border-box;
    height: 38px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: calc(13px * var(--fx-zoom, 1));
    transition: border-color 0.15s, box-shadow 0.15s;
}
.gw-app .gw-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: calc(13px * var(--fx-zoom, 1));
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.gw-app .gw-input:focus,
.gw-app .gw-textarea:focus { outline: none; border-color: #0284c7; box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2); }

/* The editor's DatePickerControl */
.gw-app .gw-date { width: 100% !important; display: block !important; }
.gw-app .gw-date .fx-datepicker-input-group {
    height: 38px !important;
    min-height: 38px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: stretch !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    box-shadow: none !important;
}
.gw-app .gw-date .fx-datepicker-input-group:focus-within { border-color: #0284c7 !important; box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important; }
.gw-app .gw-date .fx-datepicker-input {
    font-size: 13px !important;
    font-family: inherit !important;
    padding: 8px 12px !important;
    color: #0f172a !important;
    height: 100% !important;
    border: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    flex: 1 1 auto !important;
    background: transparent !important;
}
.gw-app .gw-date .fx-datepicker-trigger {
    width: 38px !important;
    min-width: 38px !important;
    height: 100% !important;
    border: none !important;
    border-left: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    cursor: pointer !important;
    font-size: 0 !important;
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.15s !important;
    padding: 0 !important;
}
.gw-app .gw-date .fx-datepicker-trigger::after {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: all 0.15s ease;
}
.gw-app .gw-date .fx-datepicker-trigger:hover { background: #f1f5f9 !important; }
.gw-app .gw-date .fx-datepicker-trigger:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%230284c7' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z'/%3E%3C/svg%3E");
}
/* The calendar that drops down from it */
.gw-app .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;
    resize: none !important;
}
.gw-app .fx-datepicker-dropdown::after { display: none !important; }
.gw-app .fx-datepicker-dropdown .fx-calendar-main,
.gw-app .fx-datepicker-dropdown .fx-months-viewport { padding: 0 !important; background: #ffffff !important; }
.gw-app .fx-datepicker-dropdown .fx-month-panel { width: 252px !important; background: #ffffff !important; }
.gw-app .fx-datepicker-dropdown .fx-calendar-months-grid { grid-template-columns: 252px !important; background: #ffffff !important; }
.gw-app .fx-datepicker-dropdown.minimal { width: 276px !important; }
.gw-app .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;
}
.gw-app .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;
}
.gw-app .fx-datepicker-dropdown .fx-nav-btn:hover { background: #f1f5f9 !important; color: #0284c7 !important; border-color: #cbd5e1 !important; }
.gw-app .fx-datepicker-dropdown .fx-nav-prev { left: 3px !important; }
.gw-app .fx-datepicker-dropdown .fx-nav-next { right: 3px !important; }
.gw-app .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;
}
.gw-app .fx-datepicker-dropdown .fx-weekday { font-family: inherit !important; font-size: 11px !important; font-weight: 600 !important; color: #64748b !important; }
.gw-app .fx-datepicker-dropdown .fx-days-grid { grid-template-columns: repeat(7, 1fr) !important; grid-auto-rows: 32px !important; gap: 2px !important; }
.gw-app .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;
}
.gw-app .fx-datepicker-dropdown .fx-day-cell:hover:not(.disabled):not(.selected) { background: #f1f5f9 !important; color: #0284c7 !important; border-color: transparent !important; }
.gw-app .fx-datepicker-dropdown .fx-day-cell.out-month { color: #cbd5e1 !important; opacity: 0.6 !important; }
.gw-app .fx-datepicker-dropdown .fx-day-cell.today:not(.selected) { font-weight: 700 !important; color: #0284c7 !important; background: #e0f2fe !important; border-radius: 6px !important; }
.gw-app .fx-datepicker-dropdown .fx-day-cell.selected { background: #0284c7 !important; color: #ffffff !important; font-weight: 700 !important; border-radius: 6px !important; }
.gw-app .fx-datepicker-dropdown .fx-day-cell.selected::before { display: none !important; }
.gw-app .fx-datepicker-dropdown .fx-day-cell.selected .fx-day-number { color: #ffffff !important; }
.gw-app .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;
    cursor: pointer !important;
    display: block !important;
}

/* The editor's DropDownListControls */
.gw-app .gw-select { width: 100% !important; display: block !important; }
.gw-app .gw-select .fx-dropdown {
    height: 38px !important;
    min-height: 38px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background: #ffffff !important;
    padding: 0 34px 0 12px !important;
    font-family: inherit !important;
    font-size: 13px !important;
    color: #0f172a !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
    text-align: left !important;
}
.gw-app .gw-select .fx-dropdown:focus,
.gw-app .gw-select.fx-dropdown-host:focus-within .fx-dropdown { border-color: #0284c7 !important; box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2) !important; outline: none !important; }
.gw-app .gw-select .fx-dropdown-text {
    font-family: inherit !important;
    font-size: 13px !important;
    color: #0f172a !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
}
.gw-app .gw-select .fx-dropdown-arrow {
    width: 32px !important;
    border-left: 1px solid #e2e8f0 !important;
    background: #f8fafc !important;
    border-radius: 0 5px 5px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    position: absolute !important;
    transition: background-color 0.15s !important;
}
.gw-app .gw-select:hover .fx-dropdown-arrow { background: #f1f5f9 !important; }
.gw-app .gw-select .fx-dropdown-arrow::before {
    content: "" !important;
    position: absolute !important;
    left: calc(50% - 4px) !important;
    top: calc(50% - 2px) !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 5px solid #64748b !important;
    border-bottom: none !important;
}
.gw-app .gw-select:hover .fx-dropdown-arrow::before { border-top-color: #0284c7 !important; }
.gw-app .gw-select .fx-dropdown-panel {
    border-radius: 8px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.18), 0 6px 10px -4px rgba(0, 0, 0, 0.08) !important;
    background: #ffffff !important;
    overflow-y: auto !important;
    max-height: 220px !important;
    padding: 4px !important;
    z-index: 10001 !important;
    box-sizing: border-box !important;
}
.gw-app .gw-select .fx-dropdown-option {
    font-family: inherit !important;
    font-size: 13px !important;
    color: #334155 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    border: none !important;
    background: transparent !important;
    text-align: left !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background-color 0.1s, color 0.1s !important;
    display: block !important;
    box-sizing: border-box !important;
}
.gw-app .gw-select .fx-dropdown-option:hover,
.gw-app .gw-select .fx-dropdown-option.highlighted { background: #f0f9ff !important; color: #0284c7 !important; }
.gw-app .gw-select .fx-dropdown-option.selected { background: #0284c7 !important; color: #ffffff !important; font-weight: 600 !important; }

@media (max-width: 768px) {
    .gw-app .fx-alert.gw-hint { margin: -14px -12px 14px; }
    .gw-app .gw-form-2 { grid-template-columns: 1fr; }
}

/* ── 5. Dashboard ── */
.gw-app .gw-dash { display: flex; flex-direction: column; gap: 18px; }
.gw-app .gw-dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gw-app .gw-greeting { margin: 0; font-size: calc(22px * var(--fx-zoom, 1)); font-weight: 700; letter-spacing: -0.02em; color: #0f172a; }
.gw-app .gw-greeting-sub { margin: 4px 0 0; font-size: calc(14px * var(--fx-zoom, 1)); color: #64748b; }
.gw-app .gw-round-btn {
    flex: none;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--brand-button);
    border-radius: 50%;
    background: #ffffff;
    color: var(--brand-button);
    font-size: calc(18px * var(--fx-zoom, 1));
    cursor: pointer;
}
.gw-app .gw-round-btn:hover { background: var(--brand-button-soft); }

/* Figures: each card is one button that opens the matching view of Trip Requests */
.gw-app .gw-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gw-app .fx-card.gw-kpi { border-radius: 12px; }
.gw-app .gw-kpi .fx-card-body { padding: 0; }
.gw-app .gw-kpi-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 14px 18px 16px;
    border: 0;
    background: none;
    color: #0f172a;
    font: inherit;
    text-align: center;
    cursor: pointer;
}
.gw-app .gw-kpi-btn:hover { background: color-mix(in srgb, var(--brand-button-soft) 35%, #ffffff); }
.gw-app .gw-kpi-label { font-size: calc(11.5px * var(--fx-zoom, 1)); font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: #475569; }
.gw-app .gw-kpi-line { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 8px; }
.gw-app .gw-kpi-value { font-size: calc(38px * var(--fx-zoom, 1)); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.gw-app .gw-kpi-note { font-size: calc(13.5px * var(--fx-zoom, 1)); color: #475569; }

/* Cards placed from Settings (GetawaysAppSettings.Slots) fill their grid box, so the figures beside the chart match its height. */
.gw-app .gw-dash-tools { display: flex; flex: none; gap: 8px; }
.gw-app .gw-layout > .fx-grid-layout-item { display: flex; }
.gw-app .gw-slot { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.gw-app .gw-slot .fx-card.gw-card { flex: 1; min-width: 0; }
.gw-app .gw-kpis { flex: 1; }

/* Side by side: beside the chart the four figures stack in one column; below 1200 px the layout is one column */
@media (min-width: 1200px) {
    .gw-app .gw-kpis-column { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; gap: 12px; }
    .gw-app .gw-kpis-column .fx-card.gw-kpi { display: flex; flex-direction: column; }
    .gw-app .gw-kpis-column .gw-kpi .fx-card-body { flex: 1; display: flex; }
    .gw-app .gw-kpis-column .gw-kpi-btn { justify-content: center; gap: 6px; padding: 10px 18px 12px; }
}
@media (max-width: 1199px) {
    .gw-app .fx-grid-layout.gw-layout { grid-template-columns: minmax(0, 1fr) !important; }
    .gw-app .gw-layout > .fx-grid-layout-item { grid-column: 1 !important; grid-row: auto !important; }
}

/* A CSS size beats the chart's font-size="10" and follows the text size. Beside the figures the 600x300 canvas is 260 px tall,
   so 14 units render near 12 px, the legend's size. */
.gw-app .gw-dash .fx-chart svg text { font-size: calc(10px * var(--fx-zoom, 1)); }
.gw-app .gw-slot-beside .fx-chart svg text { font-size: calc(14px * var(--fx-zoom, 1)); }

/* Rearranging: the bar is the drag handle, so header dragging in the card's grid still works */
.gw-app .gw-customize-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 8px 14px;
    border: 1px solid var(--gw-soft-border);
    border-radius: 10px;
    background: var(--brand-button-soft);
    color: var(--brand-button-soft-text);
    font-size: calc(13.5px * var(--fx-zoom, 1));
    font-weight: 500;
}
.gw-app .gw-customize-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.gw-app .gw-slot.is-customizing { border-radius: 12px; outline: 1px dashed var(--gw-soft-border); outline-offset: 3px; }
.gw-app .gw-slot.is-drop-target { outline: 2px solid var(--brand-button); background: var(--brand-button-soft); }
.gw-app .gw-slot-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
    padding: 3px 6px 3px 8px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #e2e8f0;
    color: #334155;
    font-size: calc(12.5px * var(--fx-zoom, 1));
    font-weight: 600;
    cursor: grab;
}
.gw-app .gw-slot-bar:active { cursor: grabbing; }
.gw-app .gw-slot-grip { color: #94a3b8; }
.gw-app .gw-slot-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-app .gw-slot-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 6px;
    background: none;
    color: #475569;
    cursor: pointer;
}
.gw-app .gw-slot-btn:hover:not(:disabled) { background: var(--brand-button-soft-hover); color: var(--brand-button-soft-text); }
.gw-app .gw-slot-btn:disabled { opacity: 0.35; cursor: default; }
.gw-app .gw-dash-empty { margin: 0; padding: 24px; border: 1px dashed #cbd5e1; border-radius: 12px; font-size: calc(14px * var(--fx-zoom, 1)); text-align: center; color: #64748b; }

.gw-app .fx-card.gw-card { border-radius: 12px; overflow: visible; }
.gw-app .gw-card > .fx-card-header { padding: 12px 18px; border-radius: 12px 12px 0 0; }
.gw-app .gw-card-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
.gw-app .gw-card-title { margin: 0; font-size: calc(16px * var(--fx-zoom, 1)); font-weight: 700; color: #0f172a; }
.gw-app .gw-card-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; font-size: calc(14px * var(--fx-zoom, 1)); }
.gw-app .gw-card-note { font-size: calc(13px * var(--fx-zoom, 1)); color: #64748b; }

/* Month range as round segments */
.gw-app .fx-segmented.gw-range { padding: 2px; border-color: var(--gw-soft-border); border-radius: 999px; background: #ffffff; }
.gw-app .gw-range label { padding: 4px 14px; border-radius: 999px; font-size: calc(13px * var(--fx-zoom, 1)); font-weight: 600; color: #334155; }
.gw-app .gw-range label:has(input:checked) { background: var(--brand-button-soft-hover); color: var(--brand-button-soft-text); }

@media (max-width: 900px) {
    .gw-app .gw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    .gw-app .gw-kpi-value { font-size: calc(30px * var(--fx-zoom, 1)); }
    .gw-app .gw-kpi-btn { padding: 12px 14px; }
}

/* ── 6. Itinerary: SchedulerControl in the app's colors ── */
.gw-app .gw-trip-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 14px; }
.gw-app .gw-trip-title { margin: 0; font-size: calc(20px * var(--fx-zoom, 1)); font-weight: 700; letter-spacing: -0.02em; color: #0f172a; }
.gw-app .gw-trip-sub { margin: 4px 0 0; font-size: calc(13.5px * var(--fx-zoom, 1)); color: #64748b; }

/* Kinds of entry: the legend and the blocks share the colors */
.gw-app .gw-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.gw-app .gw-legend li { padding: 3px 10px; border: 1px solid; border-left-width: 4px; border-radius: 999px; font-size: calc(12.5px * var(--fx-zoom, 1)); font-weight: 600; color: #334155; }
.gw-app .gw-legend .k-flight { background: #eef2ff; border-color: #6366f1; }
.gw-app .gw-legend .k-transfer { background: #f0f9ff; border-color: #38bdf8; }
.gw-app .gw-legend .k-hotel { background: #ecfdf5; border-color: #10b981; }
.gw-app .gw-legend .k-activity { background: #fffbeb; border-color: #f59e0b; }
.gw-app .gw-legend .k-meal { background: #fff1f2; border-color: #f43f5e; }

.gw-app .gw-itinerary .fx-scheduler { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; font-size: calc(13px * var(--fx-zoom, 1)); }
.gw-app .gw-itinerary .fx-scheduler > .fx-toolbar { margin: 0; padding: 10px 12px; gap: 8px; border: 0; border-bottom: 1px solid #e2e8f0; border-radius: 0; background: #ffffff; }
.gw-app .gw-itinerary .fx-time-heading { background: #f8fafc; border-bottom-color: #e2e8f0; }
.gw-app .gw-itinerary .fx-time-heading > span { display: none; }   /* "Appointments", the name of the one column group */
.gw-app .gw-itinerary .fx-time-column { border-right-color: #eef2f7; }
.gw-app .gw-itinerary .fx-time-slot { border-bottom-color: #f1f5f9; }

/* Timed entries take their title emoji's color; the library writes the left border color inline, hence !important. */
.gw-app .gw-itinerary .fx-timed-event { border-radius: 8px; border-width: 1px 1px 1px 4px; }
.gw-app .gw-itinerary .fx-timed-event .fx-button { padding: 3px 6px; border: 0; background: transparent; font-weight: 600; color: #1e293b; }
.gw-app .gw-itinerary .fx-timed-event:has(.fx-button[title*="✈"]) { background: #eef2ff; border-color: #c7d2fe; border-left-color: #6366f1 !important; }
.gw-app .gw-itinerary .fx-timed-event:has(.fx-button[title*="🚐"]) { background: #f0f9ff; border-color: #bae6fd; border-left-color: #38bdf8 !important; }
.gw-app .gw-itinerary .fx-timed-event:has(.fx-button[title*="🏨"]) { background: #ecfdf5; border-color: #a7f3d0; border-left-color: #10b981 !important; }
.gw-app .gw-itinerary .fx-timed-event:has(.fx-button[title*="🗺"]) { background: #fffbeb; border-color: #fde68a; border-left-color: #f59e0b !important; }
.gw-app .gw-itinerary .fx-timed-event:has(.fx-button[title*="🍽"]) { background: #fff1f2; border-color: #fecdd3; border-left-color: #f43f5e !important; }

/* The all-day hotel stay sits in each day's heading */
.gw-app .gw-itinerary .fx-time-heading .fx-button { width: 100%; border-color: #a7f3d0; border-left: 4px solid #10b981; background: #ecfdf5; font-size: calc(12px * var(--fx-zoom, 1)); font-weight: 600; }

/* Month view, if the reader switches to it */
.gw-app .gw-itinerary .fx-month-day { border-color: #eef2f7; background: #ffffff; }
.gw-app .gw-itinerary .fx-month-day > .fx-button:first-child { align-self: flex-start; padding: 2px 6px; border: 0; background: none; color: #475569; font-weight: 600; }
.gw-app .gw-itinerary .fx-month-day .fx-button.fx-appointment { padding: 3px 6px; border: 0; border-left: 3px solid var(--brand-button); border-radius: 6px; background: var(--brand-button-soft); color: #1e1b4b; }

/* ── 7. Invoices: the cost sheet in ReportWriterControl ── */
.gw-app .gw-invoices { display: flex; flex-direction: column; gap: 14px; }
.gw-app .gw-invoice-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 10px 20px; }
.gw-app .gw-invoice-title { margin: 0; font-size: calc(20px * var(--fx-zoom, 1)); font-weight: 700; letter-spacing: -0.02em; color: #0f172a; }
.gw-app .gw-invoice-sub { margin: 4px 0 0; font-size: calc(13.5px * var(--fx-zoom, 1)); color: #64748b; }
.gw-app .gw-invoice-tools { display: flex; align-items: center; gap: 8px; }
.gw-app .gw-report { min-height: 600px; border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #ffffff; }

/* ── 8. Settings ── */
.gw-app .gw-settings { display: flex; flex-direction: column; gap: 14px; }
.gw-app .gw-set-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.gw-app .gw-set-title { margin: 0; font-size: calc(22px * var(--fx-zoom, 1)); font-weight: 700; letter-spacing: -0.02em; color: #0f172a; }
.gw-app .gw-set-sub { margin: 4px 0 0; font-size: calc(14px * var(--fx-zoom, 1)); color: #64748b; }
.gw-app .gw-set-stack { display: flex; flex-direction: column; gap: 14px; }
.gw-app .gw-set-sticky { position: sticky; top: 0; z-index: 2; }
.gw-app .fx-card.gw-set-card { border-radius: 12px; overflow: visible; }
.gw-app .gw-set-card > .fx-card-header { padding: 11px 16px; border-radius: 12px 12px 0 0; }
.gw-app .gw-set-card > .fx-card-body { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding: 14px 16px 16px; }
.gw-app .gw-set-card > .fx-card-body > .fx-button { align-self: flex-start; }
.gw-app .gw-set-card-title { margin: 0; font-size: calc(15px * var(--fx-zoom, 1)); font-weight: 700; color: #0f172a; }
.gw-app .gw-set-row { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.gw-app .gw-set-row .fx-slider-host { align-self: stretch; }
.gw-app .gw-set-row .fx-slider-range::-webkit-slider-thumb { background: var(--brand-button); }
.gw-app .gw-set-row .fx-slider-range::-moz-range-thumb { background: var(--brand-button); }
.gw-app .gw-set-label { display: flex; justify-content: space-between; align-self: stretch; gap: 8px; font-size: calc(13px * var(--fx-zoom, 1)); font-weight: 600; color: #334155; }
.gw-app .gw-set-value { font-weight: 500; color: #64748b; font-variant-numeric: tabular-nums; }
.gw-app .gw-set-note { margin: 0; font-size: calc(13px * var(--fx-zoom, 1)); line-height: 1.45; color: #64748b; }
.gw-app .gw-set-switches { display: flex; flex-direction: column; gap: 6px; }

/* Scheme swatches: the tick has to read on each accent */
.gw-app .fx-color-palette.gw-schemes { gap: 10px; }
.gw-app .gw-schemes .fx-palette-swatch { border: 0; border-radius: 10px; color: #ffffff; font-weight: 700; }
.gw-app .gw-schemes .fx-palette-swatch.selected { outline: 2px solid #0f172a; outline-offset: 2px; }
.gw-app .fx-switch-input:checked + .fx-switch-track { background-color: var(--brand-button); }

/* Segments as round pills, as on the dashboard; they wrap on a narrow window instead of overflowing the card */
.gw-app .gw-seg .fx-radio-group { flex-wrap: wrap; }
.gw-app .fx-segmented.gw-seg { padding: 2px; border-color: var(--gw-soft-border); border-radius: 18px; background: #ffffff; max-width: 100%; }
.gw-app .gw-seg label { padding: 4px 12px; border-radius: 999px; font-size: calc(13px * var(--fx-zoom, 1)); font-weight: 600; color: #334155; white-space: nowrap; }
.gw-app .gw-seg label:has(input:checked) { background: var(--brand-button-soft-hover); color: var(--brand-button-soft-text); }

/* Arrangement buttons, each with a small picture of the layout */
.gw-app .gw-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-self: stretch; gap: 8px; }
.gw-app .gw-preset {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 8px 4px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
    color: #334155;
    cursor: pointer;
}
.gw-app .gw-preset:hover { border-color: var(--gw-soft-border); background: var(--brand-button-soft); }
.gw-app .gw-preset.is-on { border-color: var(--brand-button); background: var(--brand-button-soft); color: var(--brand-button-soft-text); }
.gw-app .gw-preset-text { font-size: calc(12px * var(--fx-zoom, 1)); font-weight: 600; line-height: 1.2; text-align: center; }
.gw-app .gw-thumb { display: grid; width: 54px; height: 40px; gap: 2px; }
.gw-app .gw-thumb i { display: block; border-radius: 2px; background: #cbd5e1; }
.gw-app .gw-thumb .t-c { background: var(--brand-button); }
.gw-app .gw-thumb .t-d { background: #94a3b8; }
.gw-app .gw-thumb-side { grid-template: 1fr 1fr / 1fr 2fr; }
.gw-app .gw-thumb-side .t-d { grid-column: 1 / span 2; }
.gw-app .gw-thumb-stacked,
.gw-app .gw-thumb-chart,
.gw-app .gw-thumb-departures { grid-template-rows: 1fr 1fr 1fr; }
.gw-app .gw-thumb-chart .t-c { order: -1; }
.gw-app .gw-thumb-departures .t-d { order: -1; }

.gw-app .gw-preview-buttons { display: flex; gap: 8px; }
/* Chart labels at a readable size on the preview's small canvas */
.gw-app .gw-preview-chart .fx-chart svg text { font-size: calc(16px * var(--fx-zoom, 1)); }

.gw-app .gw-set-code-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.gw-app .gw-set-pre {
    margin: 0;
    padding: 12px 14px;
    overflow-x: auto;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: calc(12.5px * var(--fx-zoom, 1));
    line-height: 1.55;
}
.gw-app .gw-set-pre code { background: none; color: inherit; font-size: inherit; padding: 0; white-space: pre; }

/* Two columns need a wide window; below it the preview sits under the settings, not sticky */
@media (max-width: 1199px) {
    .gw-app .fx-grid-layout.gw-set-columns { grid-template-columns: minmax(0, 1fr) !important; }
    .gw-app .gw-set-columns > .fx-grid-layout-item { grid-column: 1 !important; grid-row: auto !important; }
    .gw-app .gw-set-sticky { position: static; }
}
/* The phone rule above decides the menu; its setting would do nothing there */
@media (max-width: 768px) {
    .gw-app .gw-set-row-menu { display: none; }
}
@media (max-width: 560px) {
    .gw-app .gw-presets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
