/* Firm OS styles used on every page (loaded after style.bundle.css). */

/* Lets a flex or grid child shrink below its content, so long text truncates ("…") or wraps instead of pushing
   past its card. Bootstrap/Metronic have no min-w-0 (only fixed sizes like min-w-100px). */
.min-w-0 { min-width: 0 !important; }

/* The theme switch shows the mode the user chose (theme-init.js sets data-firmos-theme on <html>).
   Metronic's theme-light-show / theme-dark-show can't do this: in "System" the dark sidebar sits on a light page.
   !important like Metronic's own show/hide classes: .btn.btn-icon i sets display too. */
html:not([data-firmos-theme="light"]) .fo-theme-icon-light,
html:not([data-firmos-theme="dark"]) .fo-theme-icon-dark,
html:not([data-firmos-theme="system"]) .fo-theme-icon-system { display: none !important; }

/* A card that fills the screen (Support's chat): its body takes the room left and scrolls, so the header and the
   footer of the card stay in place. Large screen: 2.5rem is the content's space above, and as much below.
   Phone: less the top bar (Metronic's header height), the content's 0.75rem above and its 20px below.
   dvh follows the phone's browser bars; vh is the fallback. */
.fo-fill-screen { display: flex; flex-direction: column; }
.fo-fill-screen > .card-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
@media (max-width: 991.98px) {
    .fo-fill-screen { height: calc(100vh - var(--bs-app-header-height, 60px) - 0.75rem - 20px);
                      height: calc(100dvh - var(--bs-app-header-height, 60px) - 0.75rem - 20px); }
}
@media (max-width: 767.98px) {   /* a phone: a thin margin around the content (below) */
    .fo-fill-screen { height: calc(100vh - var(--bs-app-header-height, 60px) - 1.875rem);
                      height: calc(100dvh - var(--bs-app-header-height, 60px) - 1.875rem); }
}
@media (min-width: 992px) {
    .fo-fill-screen { height: calc(100vh - 2.5rem); }
}

/* On a phone, the cards almost use the whole width: a thin margin around them, the same between stacked cards, and
   rounded corners as on a computer. Tablets and computers keep Metronic's spacing. */
@media (max-width: 767.98px) {
    #kt_app_content { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
    #kt_app_content_container { padding-left: 0.625rem !important; padding-right: 0.625rem !important; }
    /* the top bar too: a rounded card above the others, with the same margin */
    #kt_app_header { margin: 0.625rem 0.625rem 0; border: 1px solid var(--bs-border-color) !important;
                     border-radius: 0.625rem; background-color: var(--bs-body-bg); }
    #kt_app_content_container .card.mb-6, #kt_app_content_container .card.mb-8 { margin-bottom: 0.5rem !important; }
    #kt_app_content_container > .row { --bs-gutter-x: 0; --bs-gutter-y: 0.5rem; }
    /* A safety net: a word too long for its line (an email, a file name, a reference) breaks instead of pushing
       the page sideways. Not in tables: they scroll inside .table-responsive. */
    #kt_app_content_container { overflow-wrap: anywhere; }
    #kt_app_content_container .table { overflow-wrap: normal; }
}

/* The signed-out pages (_templates/allauth/layouts/base.html): two soft glows over the firm's gradient. */
.fo-auth { position: relative; overflow: hidden; min-height: 100vh; }
.fo-auth::before, .fo-auth::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.fo-auth > * { position: relative; z-index: 1; }   /* the page above the glows */
.fo-logo-white { filter: brightness(0) invert(1); opacity: .5; }   /* the firm's logo in white on the brand colour (Settings > Firm) */
.fo-auth::before { width: 60vmax; height: 60vmax; top: -25vmax; left: -20vmax;
                   background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 70%); }
.fo-auth::after { width: 50vmax; height: 50vmax; bottom: -25vmax; right: -15vmax;
                  background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 70%); }

/* Dashboard stat cards: lift a little and show an arrow on hover (they open a list) */
.fo-stat { transition: transform .15s ease, box-shadow .15s ease; }
.fo-stat:hover { transform: translateY(-3px); box-shadow: var(--bs-box-shadow-sm); }
/* Stat cards inside a screen's title card (docs/CARDS_PLAN.md): a soft shadow instead of the grey outline, as in the
   chat; a tile's own coloured outline (an active filter, "overdue") stays. Links lift a little more on hover. */
.fo-kpis .card { border-color: transparent; box-shadow: var(--bs-box-shadow-sm); }
.fo-kpis a.card:hover { box-shadow: var(--bs-box-shadow); }
/* On a phone, two figures side by side: a smaller icon and number so the amounts fit their card; a group of buttons in
   a title card (the periods) a little smaller so it fits the card's width instead of running past the screen's edge,
   and the buttons beside it go on the next line when they don't fit */
@media (max-width: 575.98px) {
    .fo-kpis .card-body { gap: .75rem !important; padding: 1rem !important; }
    .fo-kpis .card-body > i { font-size: 1.75rem !important; }
    .fo-kpis .card-body > div { min-width: 0; }
    .fo-kpis .fs-2 { font-size: 1.15rem !important; }
    #kt_app_content_container .card-body .btn-group > .btn { padding-left: .6rem !important; padding-right: .6rem !important; font-size: .8rem; white-space: nowrap; }
    #kt_app_content_container .card-body > .d-flex.flex-shrink-0 { flex-shrink: 1 !important; max-width: 100%; }
}
.fo-stat .fo-stat-arrow { opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
.fo-stat:hover .fo-stat-arrow, .fo-stat:focus-visible .fo-stat-arrow { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .fo-stat, .fo-stat .fo-stat-arrow { transition: none; }
    .fo-stat:hover { transform: none; }
}

/* Dashboard T1 pipeline: a stage row opens to list its returns */
.fo-pipe-toggle:not(:disabled):hover { background-color: var(--bs-gray-100); }
.fo-pipe-toggle:disabled { opacity: 1; }
.fo-pipe-toggle .fo-chevron { transition: transform .2s ease; }
.fo-pipe-toggle:not(.collapsed) .fo-chevron { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .fo-pipe-toggle .fo-chevron { transition: none; } }

/* Seasons in progress stat card: three years show, more scroll (a line is 1.25rem, the gap .5rem) */
.fo-seasons-scroll { max-height: calc(3 * 1.25rem + 2 * .5rem); overflow-y: auto; }
.fo-seasons-scroll > * { min-height: 1.25rem; }

/* Deadlines card, Calendar view: a month grid; a day shows two deadlines and "+n" for the rest */
.fo-due-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background-color: var(--bs-gray-200); border: 1px solid var(--bs-gray-200); border-radius: .475rem; overflow: hidden; }
.fo-due-cal-head { background-color: var(--bs-gray-100); color: var(--bs-gray-600); font-size: .75rem; font-weight: 600; text-align: center; padding: .4rem 0; }
.fo-due-cal-day { background-color: var(--bs-card-bg, var(--bs-body-bg)); min-height: 5.25rem; padding: .3rem; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fo-due-cal-day.fo-out { background-color: var(--bs-gray-100); }
.fo-due-cal-day.fo-out .fo-due-cal-num { color: var(--bs-gray-400); }
.fo-due-cal-num { font-size: .75rem; font-weight: 600; color: var(--bs-gray-700); align-self: flex-end; line-height: 1.4rem; min-width: 1.4rem; text-align: center; border-radius: 50%; }
.fo-due-cal-num:hover { background-color: var(--bs-gray-200); }
.fo-due-cal-day.fo-today .fo-due-cal-num { background-color: var(--bs-primary); color: var(--bs-white); }
.fo-due-cal-item { display: block; font-size: .7rem; font-weight: 600; line-height: 1.1rem; min-height: .5rem; padding: 0 .3rem; border-radius: .3rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fo-due-cal-more { font-size: .7rem; font-weight: 600; color: var(--bs-gray-600); padding: 0 .3rem; }
@media (max-width: 767.98px) { .fo-due-cal-day { min-height: 3.5rem; } .fo-due-cal-item { height: .4rem; padding: 0; } }
/* The Calendar screen (insights/calendar.html): roomier days, each deadline on its line */
.fo-cal-page .fo-due-cal-day { min-height: 8rem; padding: .4rem; }
.fo-cal-page .fo-due-cal-item { font-size: .75rem; line-height: 1.3rem; }

/* A table that scrolls inside its card after about 8 rows; its header stays in view */
.fo-table-scroll { max-height: 26rem; overflow-y: auto; }
.fo-table-scroll thead th { position: sticky; top: 0; z-index: 1; background-color: var(--bs-card-bg, var(--bs-body-bg)); }

/* A list that fills its card: the row's other card sets the height (dashboard Alerts next to Deadlines) */
.fo-fill { flex: 1 1 auto; position: relative; }
@media (min-width: 1200px) {
    .fo-fill { min-height: 12rem; }
    .fo-fill > .fo-fill-scroll { position: absolute; inset: 0; max-height: none; }
}

/* Space under the last card: the theme drops the content's bottom padding on wide screens, expecting the footer
   to follow, and the footer is hidden for now (layout/partials/sidebar-layout/_footer.html) */
@media (min-width: 992px) {
    :not([data-kt-app-footer-fixed=true]) .app-main .app-content { padding-bottom: 30px !important; }
}

/* Tasks "Due this week": a day with nothing due still shows a sliver */
.fo-day-bar { min-height: 3px; }

/* Tasks board: a card's outline in a soft shade of its priority colour, the full colour on hover */
/* (the theme's -light shades are too pale for a line, so the colour is mixed down to --fo-outline-strength) */
.fo-task-card { --fo-outline-strength: 35%; border: 1px solid color-mix(in srgb, var(--fo-c) var(--fo-outline-strength), transparent);
    border-left-width: 4px; transition: border-color .15s ease; }
.fo-task-card:hover, .fo-task-card:focus-within { border-color: var(--fo-c); }
.fo-c-danger { --fo-c: var(--bs-danger); }
.fo-c-warning { --fo-c: var(--bs-warning); }
.fo-c-info { --fo-c: var(--bs-info); }
.fo-c-secondary { --fo-c: var(--bs-gray-500); }
@media (prefers-reduced-motion: reduce) { .fo-task-card { transition: none; } }

/* Tasks board: the columns share the width (all of them fit on a wide screen), never narrower than 260px */
.fo-board-col { flex: 1 0 260px; min-width: 260px; }

/* Review Queue: the note and Approve stay at the bottom of the screen while the values scroll. */
.fo-sticky-bottom { position: sticky; bottom: 0; z-index: 2; background-color: var(--bs-card-bg, var(--bs-body-bg)); }
/* A chevron that points right while its section is folded. */
.fo-rotate-collapsed { transition: transform 0.2s ease; }
.collapsed > .fo-rotate-collapsed { transform: rotate(-90deg); }
/* Review Queue table: the arrow at the start of a row points down once it is open; the opened row's document sits under it. */
.fo-review-chevron { transition: transform 0.2s ease; }
.fo-review-open .fo-review-chevron { transform: rotate(90deg); }
tr.fo-review-detail > td { border-bottom: 0; }

/* An activity feed (client page): an icon on a solid line for each event; five show, the rest scroll. */
.fo-activity { max-height: 300px; overflow-y: auto; padding-right: .5rem; }
.fo-activity.fo-activity-full { max-height: none; overflow: visible; }   /* the client timeline: the whole page */
.fo-activity-item { position: relative; display: flex; gap: 1rem; min-height: 60px; }
.fo-activity-item:not(:last-child)::before { content: ''; position: absolute; left: 16.5px; top: 39px; bottom: 4px;
    width: 2px; border-radius: 1px; background-color: var(--bs-gray-200); }
.fo-activity-icon { flex-shrink: 0; }


/* An empty-state card that fills the rest of the screen under the header card (wide screens only). */
@media (min-width: 992px) { .fo-fill-screen { min-height: calc(100vh - 230px); } }

/* Checklist rows that open in place (request view): + when folded, - when open; the details sit under the title. */
.fo-toggle[aria-expanded="true"] .fo-when-closed, .fo-toggle[aria-expanded="false"] .fo-when-open { display: none; }
.fo-item-body { margin: 0 0 1.25rem 2.6rem; padding: 1.25rem; border-radius: .75rem; background-color: var(--bs-gray-100); }
@media (max-width: 575.98px) { .fo-item-body { margin-left: 0; padding: 1rem; } }

/* Inside an open checklist item: facts as small tiles, then sections with one heading style. */
.fo-fact { flex: 1 1 160px; background-color: var(--bs-body-bg); border-radius: .625rem; padding: .65rem .9rem; min-width: 0; }
.fo-fact-wide { flex-basis: 100%; }
.fo-fact-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; color: var(--bs-gray-500); margin-bottom: .15rem; }
.fo-fact-value { font-size: .95rem; color: var(--bs-gray-800); overflow-wrap: anywhere; }
.fo-section-title { font-size: .8rem; font-weight: 600; text-transform: uppercase; margin-bottom: .75rem; }

/* A message waiting for the firm's answer: the icon blinks until someone replies. */
@keyframes fo-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
.fo-blink { animation: fo-blink 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .fo-blink { animation: none; } }

/* A conversation shown in a card: scrolls, opened at the latest message. */
.fo-chat { max-height: 420px; overflow-y: auto; padding-right: .5rem; }

/* A long list in a card scrolls inside it. */
.fo-scroll { max-height: 420px; overflow-y: auto; padding-right: .5rem; }

/* A card that reaches the footer ([data-fo-fill], sized in app.js); its conversation takes the rest and scrolls. */
[data-fo-fill] { min-height: 420px; }
.fo-chat-fill { max-height: none; flex: 1 1 auto; min-height: 0; }

/* A list row that opens under itself (app.js: data-fo-expand) */
.fo-expand-chevron { transition: transform .15s ease; }
tr.fo-expanded .fo-expand-chevron { transform: rotate(90deg); color: var(--bs-primary) !important; }

/* The assistant in the sidebar (_menu_assistant.html): a conversation's delete button appears on hover */
#cb_nav .cb-nav-delete, #cb_nav .cb-nav-rename { opacity: 0; transition: opacity .15s; }
#cb_nav .cb-nav-row:hover .cb-nav-delete, #cb_nav .cb-nav-delete:focus,
#cb_nav .cb-nav-row:hover .cb-nav-rename, #cb_nav .cb-nav-rename:focus { opacity: 1; }
#cb_nav .cb-nav-row .menu-title { min-width: 0; }

/* ---- A screen inside the assistant chat (core/embed.py): no sidebar or header, a little air, messages inline. */
.firmos-embed { padding: 0.75rem; }
.firmos-embed .toast-container { position: static !important; padding: 0 0 0.75rem 0 !important; }
.firmos-embed .toast-container .toast { width: 100%; max-width: none; }
html.firmos-framed, html.firmos-framed body { overflow-y: hidden; height: auto; min-height: 0; }   /* the chat sizes the frame to the content (embed.js) */
/* In the chat the frame is as tall as its content, so "the height of the screen" (vh) is the frame itself: a card that
   fills the screen would grow with the frame without end. There it is as tall as what it holds. */
html.firmos-framed .fo-fill-screen { height: auto !important; min-height: 0 !important; }
html.firmos-framed .toast-container { display: none !important; }   /* the chat shows them (embed.js: notice) */
html.firmos-framed .fo-fill-screen > .card-body { overflow-y: visible; }

/* Bookkeeping workbench: a line still to categorize keeps its yellow outline once its dropdown is Select2. */
select.fo-uncategorized + .select2-container .select2-selection { border: 1px solid var(--bs-warning) !important; }

/* Text people wrote, with its line breaks kept (privacy requests and notes) */
.fo-pre-line { white-space: pre-line; }

/* The tour player (docs/TOURS_PLAN.md, assets/js/firmos/tour.js): everything blurred but the target, a ring on it,
   the caption beside it, and a cursor that clicks */
/* The stage: the app, full screen in a frame of the page the tour started from (the voice carries on between screens) */
.fo-tour-stage { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; z-index: 1990; background: var(--bs-body-bg); }
html.fo-tour-staged, html.fo-tour-staged body { overflow: hidden; }
.fo-tour { position: fixed; inset: 0; z-index: 2000; pointer-events: none; opacity: 0; transition: opacity .25s ease; }
.fo-tour.fo-tour-on { opacity: 1; }
.fo-tour-shade { position: fixed; background: rgba(7, 20, 55, .38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
                 pointer-events: auto; transition: all .35s ease; }
.fo-tour-ring { position: fixed; border-radius: .65rem; pointer-events: none; transition: all .35s ease;
                box-shadow: 0 0 0 3px var(--bs-primary), 0 0 0 9px rgba(27, 132, 255, .25); animation: fo-tour-pulse 1.6s ease-in-out infinite; }
@keyframes fo-tour-pulse { 50% { box-shadow: 0 0 0 3px var(--bs-primary), 0 0 0 15px rgba(27, 132, 255, .08); } }
.fo-tour-card { position: fixed; width: 370px; max-width: calc(100vw - 32px); pointer-events: auto; transition: top .35s ease, left .35s ease; }
.fo-tour-cursor { position: fixed; z-index: 2001; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .3));
                  transition: left .8s cubic-bezier(.4, 0, .2, 1), top .8s cubic-bezier(.4, 0, .2, 1); }
.fo-tour-cursor.fo-tour-instant { transition: none; }
.fo-tour-cursor::after { content: ""; position: absolute; left: -8px; top: -8px; width: 24px; height: 24px; border-radius: 50%;
                         background: rgba(27, 132, 255, .4); transform: scale(0); opacity: 0; }
.fo-tour-cursor.fo-tour-click::after { animation: fo-tour-click .4s ease-out; }
@keyframes fo-tour-click { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.9); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .fo-tour, .fo-tour-shade, .fo-tour-ring, .fo-tour-card, .fo-tour-cursor { transition: none; animation: none; }
}
/* After a click (tour.js centre): the screen that opened, nothing blurred, the card in the middle */
.fo-tour.fo-tour-open .fo-tour-shade, .fo-tour.fo-tour-open .fo-tour-ring { opacity: 0; pointer-events: none; }
/* The overview, a presentation (tour.js "present"): the whole app in view, a ring on what is talked about, the
   caption at the bottom like subtitles */
.fo-tour.fo-tour-present .fo-tour-shade { display: none; }
.fo-tour.fo-tour-present .fo-tour-card { left: 50% !important; top: auto !important; bottom: 1.25rem; transform: translateX(-50%);
                                         width: 640px; transition: none; }
.fo-tour.fo-tour-present .fo-tour-text { font-size: 1.05rem !important; color: var(--bs-gray-800); }
/* The timer button on every screen (timekeeping/_timer_panel.html, docs/ROUND_PLAN.md phase 7): a tab on the right
   edge, half way down, the running time beside it; it follows the person from screen to screen */
.fo-timer-float { position: fixed; top: 50%; right: 0; transform: translateY(-50%); z-index: 1040; width: 46px; height: 52px;
                  border-radius: .9rem 0 0 .9rem !important; }
.fo-timer-float .fo-timer-float-time { position: absolute; right: calc(100% + 6px); top: 50%; transform: translateY(-50%);
                                       background: var(--bs-body-bg); color: var(--bs-gray-800); border-radius: 1rem;
                                       padding: .15rem .55rem; font-size: .75rem; font-weight: 600; white-space: nowrap;
                                       box-shadow: var(--bs-box-shadow-sm); }
.fo-timer-float .fo-timer-float-time:empty { display: none; }

/* A table row that opens (Workload, Time and costs; time-report.js): its details sit in one panel joined to the row,
   laid out as tiles with a titled head, the lines evenly spaced. */


.fo-detail { background: var(--bs-primary-light); border-radius: 0 0 .75rem .75rem; padding: 1rem 1rem 1.25rem; }
.fo-tile { background: var(--bs-body-bg); border: 1px solid var(--bs-gray-200); border-radius: .75rem; padding: 1.25rem 1.5rem; }
.fo-tile-head { display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.05rem; color: var(--bs-gray-900); margin-bottom: .75rem; }
.fo-tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: .6rem; flex-shrink: 0; }
.fo-tile-icon i { font-size: 1.25rem; }
.fo-line { display: flex; align-items: center; gap: .85rem; padding: .7rem 0; font-size: .95rem; border-top: 1px solid var(--bs-gray-200); }
.fo-tile-head + .fo-line { border-top: 0; }
a.fo-line { border-radius: .5rem; margin: 0 -.5rem; padding-left: .5rem; padding-right: .5rem; }
a.fo-line:hover { background: var(--bs-gray-100); }
/* Nothing to show (partials/_empty.html, docs/EMPTY_PLAN.md): a soft round icon with a halo, a short title, a hint.
   sm: in a small card, a tile or a table row. done: good news, in green. */
.fo-none { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2.5rem 1rem; }
.fo-none-icon { width: 4.75rem; height: 4.75rem; border-radius: 50%; display: inline-flex; align-items: center;
                justify-content: center; margin-bottom: 1rem; background: var(--bs-primary-light); color: var(--bs-primary);
                box-shadow: 0 0 0 .6rem color-mix(in srgb, var(--bs-primary-light) 55%, transparent); }
.fo-none-icon i { font-size: 2.25rem; color: inherit; }
.fo-none-title { font-weight: 600; color: var(--bs-gray-700); font-size: 1rem; }
.fo-none-hint { color: var(--bs-gray-500); font-size: .875rem; margin-top: .3rem; max-width: 26rem; }
.fo-none-sm { padding: 1.25rem .75rem; }
.fo-none-sm .fo-none-icon { width: 2.75rem; height: 2.75rem; margin-bottom: .65rem; box-shadow: 0 0 0 .35rem color-mix(in srgb, var(--bs-primary-light) 45%, transparent); }
.fo-none-sm .fo-none-icon i { font-size: 1.35rem; }
.fo-none-sm .fo-none-title { font-size: .925rem; }
.fo-none-sm .fo-none-hint { font-size: .8rem; }
.fo-none-done .fo-none-icon { background: var(--bs-success-light); color: var(--bs-success);
                              box-shadow: 0 0 0 .6rem color-mix(in srgb, var(--bs-success-light) 55%, transparent); }
.fo-none-sm.fo-none-done .fo-none-icon { box-shadow: 0 0 0 .35rem color-mix(in srgb, var(--bs-success-light) 45%, transparent); }
.fo-facts > div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; font-size: .95rem; border-top: 1px solid var(--bs-gray-200); }
.fo-facts > div:first-child { border-top: 0; }
.fo-facts > div > span:first-child { color: var(--bs-gray-500); }
.fo-facts > div > :last-child { font-weight: 600; color: var(--bs-gray-800); text-align: end; }
tr[data-fo-row].bg-light-primary { border-bottom-color: transparent !important; }
/* A row that is a record opens with a click anywhere on it (app.js, docs/ROWS_PLAN.md) */
tr[data-fo-href], tr[data-fo-modal] { cursor: pointer; }
tr[data-fo-href]:hover > td, tr[data-fo-modal]:hover > td { background-color: var(--bs-gray-100); }

/* From page to page (the whole app and the overview's stage): the browser keeps the old screen until the new one is
   drawn, then the new one slides in from the right while the old one slides out to the left, so nothing flashes, in
   dark mode especially. The sidebar, the top bar and the timer tab stay where they are. Browsers without view
   transitions simply change page as before; reduced motion turns it off. */
@view-transition { navigation: auto; }
#kt_app_sidebar { view-transition-name: fo-sidebar; }
#kt_app_header { view-transition-name: fo-header; }
.fo-timer-float { view-transition-name: fo-timer-tab; }
::view-transition-old(root) { animation: fo-page-out .18s ease-in both; }
::view-transition-new(root) { animation: fo-page-in .28s ease-out both; }
@keyframes fo-page-out { to { opacity: 0; transform: translateX(-28px); } }
@keyframes fo-page-in { from { opacity: 0; transform: translateX(28px); } }
@media (prefers-reduced-motion: reduce) {
    @view-transition { navigation: none; }
}
