/* ════════════════════════════════════════════════════════════════════════════
   Celvo — the glass layer (docs/ui-modernization/design-system.md).

   Loaded after css/brand.css and changes looks only: no markup, label, route or
   behaviour depends on it, and removing this one file returns the app to the flat
   brand look. It keeps the brand's palette (warm stone, one clay accent, the four
   status colours each with its shape) and adds depth: lightly translucent ivory
   panels with a fine light edge, layered warm shadows, a floating side menu and top
   bar, rounder corners (controls 10px, cards 18px, panels 20px, dialogs 22px), and
   short, quiet motion. Dense surfaces (tables, form fields, figures) stay nearly
   opaque so numbers read exactly as before. Where backdrop-filter is missing the
   panels fall back to solid ivory. Variables are prefixed --g-.
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces */
  --g-ground: #F2EFE9;
  --g-glass: rgb(252 251 248 / .74);
  --g-glass-strong: rgb(252 251 248 / .90);
  --g-glass-dense: rgb(253 252 250 / .96);
  --g-solid: #FCFBF8;
  --g-raised: #FFFFFF;
  --g-sunk: rgb(28 26 23 / .035);
  --g-edge: rgb(255 255 255 / .78);
  --g-line: rgb(110 92 72 / .13);
  --g-line-2: rgb(110 92 72 / .20);
  --g-blur: 14px;
  /* Corners */
  --g-r-sm: 8px; --g-r-ctl: 10px; --g-r-card: 18px; --g-r-panel: 20px; --g-r-modal: 22px; --g-r-pill: 999px;
  /* Depth: a light top edge plus two warm shadows, one near, one far */
  --g-hi: inset 0 1px 0 rgb(255 255 255 / .85);
  --g-sh-1: 0 1px 2px rgb(60 45 31 / .05), 0 8px 20px -10px rgb(60 45 31 / .16);
  --g-sh-2: 0 1px 3px rgb(60 45 31 / .06), 0 14px 32px -14px rgb(60 45 31 / .22);
  --g-sh-3: 0 4px 10px rgb(60 45 31 / .07), 0 26px 56px -18px rgb(60 45 31 / .30);
  --g-card: var(--g-hi), 0 0 0 1px var(--g-line), var(--g-sh-1);
  --g-card-hover: var(--g-hi), 0 0 0 1px var(--g-line-2), var(--g-sh-2);
  --g-focus: 0 0 0 3px rgb(185 87 44 / .22);
  /* The tone of each home panel's head (status colours, not new ones) */
  --g-tone-prs: #5B7C99; --g-tone-pos: #6B8E3D; --g-tone-del: #66798A; --g-tone-team: #9E4521;
  /* Motion */
  --g-ease: cubic-bezier(.2, .8, .2, 1);
  --g-hover: 160ms; --g-press: 110ms; --g-page: 210ms; --g-dialog: 180ms;
  /* The brand's own variables follow the new corners and shadows */
  --radius-sm: 8px; --radius: 10px; --radius-lg: 18px;
  --shadow-md: var(--g-sh-2); --shadow-lg: var(--g-sh-3);
  --v-card-shadow: var(--g-card);
}

/* ─── The room: warm stone, lit softly from the side menu's corner ─── */
body, [dir="ltr"] body {
  background:
    radial-gradient(1100px 760px at 100% 0%, rgb(255 251 244 / .95) 0%, rgb(255 251 244 / 0) 62%),
    radial-gradient(900px 700px at 0% 100%, rgb(222 147 111 / .10) 0%, rgb(222 147 111 / 0) 60%),
    radial-gradient(1000px 640px at 40% 45%, rgb(203 196 183 / .20) 0%, rgb(203 196 183 / 0) 70%),
    var(--g-ground);
  background-attachment: fixed;
}
[dir="ltr"] body {
  background:
    radial-gradient(1100px 760px at 0% 0%, rgb(255 251 244 / .95) 0%, rgb(255 251 244 / 0) 62%),
    radial-gradient(900px 700px at 100% 100%, rgb(222 147 111 / .10) 0%, rgb(222 147 111 / 0) 60%),
    radial-gradient(1000px 640px at 60% 45%, rgb(203 196 183 / .20) 0%, rgb(203 196 183 / 0) 70%),
    var(--g-ground);
  background-attachment: fixed;
}

/* ─── Glass, with a solid fallback ─── */
.sidebar, .top-bar, .home-card, .mt-card, .kp, .lb-card, .card, .data-table-wrapper,
.fin6-kpi, .fin6-box, .rpx-c, .rpx-stat, .onb-card, .feedback-card, .ask-card, .apy-card, .cw-card, .rv-sheet {
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(1.25);
  backdrop-filter: blur(var(--g-blur)) saturate(1.25);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --g-glass: var(--g-solid); --g-glass-strong: var(--g-solid); --g-glass-dense: var(--g-solid); }
}

/* ─── Side menu: a floating panel on wide screens; the phone drawer keeps its behaviour ─── */
.sidebar, [dir="ltr"] .sidebar {
  background: var(--g-glass-strong);
  border: 1px solid var(--g-edge);
  box-shadow: var(--g-hi), 0 0 0 1px var(--g-line), var(--g-sh-2);
}
@media (min-width: 901px) {
  .sidebar, [dir="ltr"] .sidebar {
    top: 12px; inset-inline-start: 12px; height: calc(100vh - 24px);
    border-radius: var(--g-r-panel);
  }
  .main-content { margin-inline-start: calc(var(--sidebar-width) + 24px); }
  .top-bar {
    margin: 12px; margin-inline-start: 0; top: 12px;
    border-radius: 18px; border: 1px solid var(--g-edge);
  }
  .page-body { padding-top: 14px; padding-inline-start: 0; padding-inline-end: 24px; }
}
@media (max-width: 900px) {
  .sidebar, [dir="ltr"] .sidebar { border-radius: 0; }
  [dir="rtl"] .sidebar { border-start-start-radius: var(--g-r-panel); border-end-start-radius: var(--g-r-panel); }
  [dir="ltr"] .sidebar { border-start-end-radius: var(--g-r-panel); border-end-end-radius: var(--g-r-panel); }
}
.sidebar-brand { border-bottom-color: var(--g-line) !important; }
.sidebar-link {
  border-radius: 12px; margin-inline: 8px;
  transition: background-color var(--g-hover) var(--g-ease), color var(--g-hover) var(--g-ease), box-shadow var(--g-hover) var(--g-ease);
}
.sidebar-link:hover { background: rgb(255 255 255 / .55); }
.sidebar-link.active, [dir="rtl"] .sidebar-link.active {
  background: var(--g-raised); color: var(--b-s900);
  box-shadow: var(--g-hi), 0 0 0 1px var(--g-line), 0 6px 16px -8px rgb(158 69 33 / .35), inset 3px 0 0 var(--b-c600);
}
[dir="rtl"] .sidebar-link.active { box-shadow: var(--g-hi), 0 0 0 1px var(--g-line), 0 6px 16px -8px rgb(158 69 33 / .35), inset -3px 0 0 var(--b-c600); }
.sidebar-section-title.sg-h { border-radius: 10px; }
.sidebar-section-title.sg-h:hover { background: rgb(255 255 255 / .5); }
.sg-n { border-radius: var(--g-r-pill); background: rgb(28 26 23 / .06); }
.sb-count { border-radius: 6px; box-shadow: 0 2px 6px -2px rgb(158 69 33 / .5); }
.sidebar::-webkit-scrollbar-thumb { border-radius: 6px; }

/* ─── Top bar: a glass strip ─── */
.top-bar {
  background: var(--g-glass);
  box-shadow: var(--g-hi), 0 0 0 1px var(--g-line), var(--g-sh-1);
  border-bottom: 0;
}
.gsearch {
  background: rgb(255 255 255 / .82); border-color: var(--g-line-2); border-radius: var(--g-r-ctl);
  box-shadow: inset 0 1px 2px rgb(60 45 31 / .05);
  transition: border-color var(--g-hover) var(--g-ease), box-shadow var(--g-hover) var(--g-ease);
}
.gsearch:focus-within { border-color: var(--b-c500); box-shadow: var(--g-focus); }
.tb-avatar { box-shadow: 0 0 0 2px #fff, 0 4px 12px -4px rgb(60 45 31 / .45); }
.gs-results, .tb-acc-menu, .tb-new-menu, .ha-more-menu, .dropdown-menu {
  border-radius: 14px; background: var(--g-glass-dense);
  -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--g-hi), 0 0 0 1px var(--g-line), var(--g-sh-3);
  animation: g-pop var(--g-dialog) var(--g-ease) both;
}
.dropdown-item, .gs-item, .tb-acc-item { border-radius: 8px; }

/* ─── Cards and panels ─── */
.home-card, .mt-card, .lb-card, .lb-empty, .card, .fin6-kpi, .fin6-box, .rpx-c, .rpx-stat, .cw-card {
  background: var(--g-glass); border: 0; border-radius: var(--g-r-card); box-shadow: var(--g-card);
}
.data-table-wrapper {
  background: var(--g-glass-dense); border: 0; border-radius: var(--g-r-card); box-shadow: var(--g-card); overflow: hidden;
}
.card-header, .page-body .card > .card-header.table-dark { background: rgb(28 26 23 / .03); border-bottom: 1px solid var(--g-line); }
.card > .card-header:first-child { border-radius: var(--g-r-card) var(--g-r-card) 0 0; }
.card-footer { background: transparent; border-top-color: var(--g-line); }
/* Only what can be clicked lifts: the home dials, the KPI tiles and the report cards */
.kp, .rpx-c, .mt-card {
  transition: box-shadow var(--g-hover) var(--g-ease), transform var(--g-hover) var(--g-ease);
}
.kp { background: var(--g-glass); border-radius: var(--g-r-card); box-shadow: var(--g-card); }
.kp:hover, .rpx-c:hover { transform: translateY(-2px); box-shadow: var(--g-card-hover); }

/* ─── Home: the three dials wear a coloured head, as on the reference ─── */
.mt-card { overflow: hidden; position: relative; padding-top: 0; }
.mt-card .mt-head {
  margin: -16px -16px 10px; padding: 13px 18px 12px; position: relative; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--g-tone) 84%, #fff) 0%, var(--g-tone) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), inset 0 -1px 0 rgb(0 0 0 / .08);
}
@media (max-width: 600px) { .mt-card .mt-head { margin: -12px -14px 6px; padding: 10px 14px; } }
.mt-card .mt-head i { color: rgb(255 255 255 / .8); }
.mt-card .mt-head button:hover i { color: #fff; }
.mt-card[data-meter="prs"] { --g-tone: var(--g-tone-prs); }
.mt-card[data-meter="pos"] { --g-tone: var(--g-tone-pos); }
.mt-card[data-meter="del"] { --g-tone: var(--g-tone-del); }
.mt-card .mt-head button, .mt-card .mt-head button:hover { color: #fff; }
.mt-card .mt-head button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 6px; }
.mt-card:has(.mt-head button:hover) { box-shadow: var(--g-card-hover); }
.mt-item { border-radius: 8px; transition: background-color var(--g-hover) var(--g-ease); }
.mt-item:hover { background: rgb(28 26 23 / .04); }
/* Team activity takes the clay head, as on the reference; the other home panels keep a quiet one */
.home-card .home-card-head { border-bottom: 1px solid var(--g-line); background: rgb(255 255 255 / .35); }
section.home-card[aria-labelledby="home-feed-title"] > h2 {
  margin: -18px -20px 0; padding: 14px 20px 13px; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--g-tone-team) 84%, #fff) 0%, var(--g-tone-team) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .3);
}
.ha-row { transition: background-color var(--g-hover) var(--g-ease); }
.ha-row:hover { background: rgb(255 255 255 / .55); }
.home-trend .tr-svg { overflow: visible; }

/* ─── Lists: the header row, chips, the search and the table ─── */
.list-search, .rpx-search {
  background: rgb(255 255 255 / .85); border-radius: 12px; border-color: var(--g-line-2);
  box-shadow: inset 0 1px 2px rgb(60 45 31 / .05);
}
.list-chip {
  border-radius: var(--g-r-pill); background: rgb(255 255 255 / .7); border-color: var(--g-line-2);
  box-shadow: var(--g-hi), 0 1px 2px rgb(60 45 31 / .05);
  transition: background-color var(--g-hover) var(--g-ease), border-color var(--g-hover) var(--g-ease), box-shadow var(--g-hover) var(--g-ease), transform var(--g-press) var(--g-ease);
}
.list-chip:hover { background: #fff; box-shadow: var(--g-hi), 0 4px 10px -6px rgb(60 45 31 / .3); }
.list-chip:active { transform: scale(.97); }
.list-chip[aria-pressed="true"] { box-shadow: 0 6px 14px -8px rgb(28 26 23 / .6); }
.table thead th, .page-body .table thead.table-dark th, .page-body thead.table-dark th, .table-dark th {
  background: rgb(246 244 239 / .96); color: var(--b-s650);
  border-bottom: 1px solid var(--g-line-2);
}
.data-table-wrapper .table { margin-bottom: 0; }
.table tbody tr { transition: background-color var(--g-hover) var(--g-ease); }
.table tbody tr:hover > * { background: rgb(158 69 33 / .035); }
.list-pill, .badge { border-radius: 6px; }
.list-bar { border-radius: var(--g-r-pill); }
.list-bar span { border-radius: var(--g-r-pill); }
@media (max-width: 767.98px) {
  .list-table tr { background: var(--g-glass-dense); border-radius: 14px; box-shadow: var(--g-card); border: 0; }
}
.table-responsive { border-radius: inherit; }
.pagination .page-link { border-radius: 8px; margin-inline: 2px; border-color: var(--g-line-2); }

/* ─── Buttons: rounder, a soft lift on hover, a quick press ─── */
.btn {
  border-radius: var(--g-r-ctl);
  transition: background-color var(--g-hover) var(--g-ease), border-color var(--g-hover) var(--g-ease), color var(--g-hover) var(--g-ease),
              box-shadow var(--g-hover) var(--g-ease), transform var(--g-press) var(--g-ease);
}
.btn-sm, .btn-group-sm > .btn { border-radius: 8px; }
.btn-group > .btn:first-child, .input-group > .btn:first-child { border-start-start-radius: var(--g-r-ctl); border-end-start-radius: var(--g-r-ctl); }
.btn-group > .btn:last-child, .input-group > .btn:last-child { border-start-end-radius: var(--g-r-ctl); border-end-end-radius: var(--g-r-ctl); }
.btn:not(:disabled):not(.disabled):hover { transform: translateY(-1px); }
.btn:not(:disabled):not(.disabled):active { transform: translateY(0) scale(.98); transition-duration: 90ms; }
.btn-primary, .tb-new-btn, .rpx-run, .section-header .btn-info, .section-header .btn-warning {
  background: linear-gradient(180deg, #AE4F27 0%, var(--b-c600) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 1px 2px rgb(60 45 31 / .18), 0 6px 14px -6px rgb(158 69 33 / .55);
}
.btn-primary:hover, .tb-new-btn:hover, .tb-new[open] .tb-new-btn, .rpx-run:hover,
.section-header .btn-info:hover, .section-header .btn-warning:hover {
  background: linear-gradient(180deg, #A0471F 0%, var(--b-c700) 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 2px 4px rgb(60 45 31 / .18), 0 10px 20px -8px rgb(158 69 33 / .6);
}
.btn-primary:disabled, .btn-primary.disabled { background: var(--b-c800); box-shadow: none; opacity: .55; }
.btn-light, .btn-outline-secondary, .btn-outline-dark {
  background: rgb(255 255 255 / .78); border-color: var(--g-line-2);
  box-shadow: var(--g-hi), 0 1px 2px rgb(60 45 31 / .06);
}
.btn-light:hover, .btn-outline-secondary:hover, .btn-outline-dark:hover { background: #fff; box-shadow: var(--g-hi), 0 6px 14px -8px rgb(60 45 31 / .35); }
.btn-outline-primary, .btn-outline-success, .btn-outline-info { background: rgb(255 255 255 / .55); border-color: var(--g-line-2); }
.btn-success, .btn-danger, .btn-dark, .btn-secondary, .btn-info { box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 6px 14px -8px rgb(28 26 23 / .45); }
.btn:focus-visible { box-shadow: var(--ring) !important; }
.btn:disabled, .btn.disabled { transform: none; }

/* ─── Form fields: opaque, round, a clay focus ring ─── */
.form-control, .form-select {
  border-radius: var(--g-r-ctl); background-color: rgb(255 255 255 / .92); border-color: var(--g-line-2);
  box-shadow: inset 0 1px 2px rgb(60 45 31 / .05);
  transition: border-color var(--g-hover) var(--g-ease), box-shadow var(--g-hover) var(--g-ease), background-color var(--g-hover) var(--g-ease);
}
.form-control-sm, .form-select-sm { border-radius: 8px; }
.form-control:focus, .form-select:focus { background-color: #fff; border-color: var(--b-c500); box-shadow: var(--g-focus); }
.form-control:disabled, .form-select:disabled, .form-control[readonly] { background-color: rgb(28 26 23 / .04); box-shadow: none; }
.form-control.is-invalid, .was-validated .form-control:invalid { border-color: var(--b-bad); }
.form-control.is-invalid:focus { box-shadow: 0 0 0 3px rgb(155 28 49 / .18); }
.input-group-text { border-radius: var(--g-r-ctl); background: rgb(246 244 239 / .95); border-color: var(--g-line-2); }
.input-group > .form-control:not(:first-child), .input-group > .form-select:not(:first-child) { border-start-start-radius: 0; border-end-start-radius: 0; }
.input-group > .form-control:not(:last-child), .input-group > .form-select:not(:last-child) { border-start-end-radius: 0; border-end-end-radius: 0; }
.form-check-input { border-color: var(--g-line-2); }
.form-check-input[type="checkbox"] { border-radius: 5px; }
input[type="file"].form-control::file-selector-button { border-radius: 8px; }

/* ─── Tabs and pills ─── */
.nav-tabs { border-bottom-color: var(--g-line); }
.nav-tabs .nav-link { border-radius: 10px 10px 0 0; transition: color var(--g-hover) var(--g-ease), background-color var(--g-hover) var(--g-ease); }
.nav-tabs .nav-link:hover { background: rgb(255 255 255 / .5); border-color: transparent; }
.nav-tabs .nav-link.active { background: rgb(255 255 255 / .75); }
.nav-pills .nav-link { border-radius: 10px; }
.nav-pills .nav-link.active { background: #fff; box-shadow: var(--g-hi), 0 0 0 1px var(--g-line), var(--g-sh-1); }

/* ─── Dialogs and overlays ─── */
.modal-content, .rv-sheet, .ask-card, .feedback-card, .apy-card, .onb-card {
  border: 0; border-radius: var(--g-r-modal);
  background: var(--g-glass-dense);
  box-shadow: var(--g-hi), 0 0 0 1px var(--g-line), var(--g-sh-3);
}
.modal-header { border-bottom-color: var(--g-line); }
.modal-footer { border-top-color: var(--g-line); }
.modal.fade .modal-dialog { transform: translateY(8px) scale(.985); transition: transform var(--g-dialog) var(--g-ease); }
.modal.show .modal-dialog { transform: none; }
.modal-backdrop.show { opacity: .28; }
.modal-backdrop { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.rv-overlay, .ask-overlay, .feedback-overlay, .apy-overlay, .cw-overlay { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.rv-sheet, .ask-card, .feedback-card, .apy-card { animation: g-pop var(--g-dialog) var(--g-ease) both; }

/* ─── Alerts ─── */
.alert { border-radius: 14px; box-shadow: var(--g-hi); }

/* ─── The sign-in screen: the same card, in glass; the film panel matches ─── */
#auth-overlay {
  background-color: var(--g-ground) !important;
  background-image:
    radial-gradient(900px 600px at 80% 10%, rgb(255 251 244 / .95), rgb(255 251 244 / 0) 60%),
    radial-gradient(800px 600px at 10% 95%, rgb(222 147 111 / .14), rgb(222 147 111 / 0) 60%),
    linear-gradient(rgba(28,26,23,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(28,26,23,.035) 1px, transparent 1px) !important;
  background-size: auto, auto, 40px 40px, 40px 40px !important;
}
#auth-overlay > div > div:last-child {
  background: var(--g-glass-strong) !important; border-radius: var(--g-r-modal) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.25); backdrop-filter: blur(16px) saturate(1.25);
  box-shadow: var(--g-hi), 0 0 0 1px var(--g-line), var(--g-sh-3) !important;
  animation: g-rise .32s var(--g-ease) both;
}
#auth-overlay > div > div:first-child:not(:last-child) {
  border-radius: var(--g-r-modal) !important; overflow: hidden;
  box-shadow: var(--g-hi), 0 0 0 1px var(--g-line), var(--g-sh-2) !important;
}
#auth-overlay .btn-primary, #auth-overlay .btn[style*="#1B5E35"], #auth-overlay .btn[style*="#0D2E5C"] {
  background: linear-gradient(180deg, #AE4F27 0%, var(--b-c600) 100%) !important;
  border: 1px solid var(--b-c700) !important; border-radius: 12px; color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .22), 0 8px 18px -8px rgb(158 69 33 / .6);
}
#auth-overlay .btn-primary:hover, #auth-overlay .btn[style*="#1B5E35"]:hover, #auth-overlay .btn[style*="#0D2E5C"]:hover { background: linear-gradient(180deg, #A0471F 0%, var(--b-c700) 100%) !important; }
#auth-overlay h5 { color: var(--b-s900) !important; }
#auth-overlay a { color: var(--b-c700) !important; }
#auth-overlay .form-control { height: 44px; }

/* ─── The intro splash takes the same room ─── */
#intro-splash {
  background-color: var(--g-ground) !important;
}

/* ─── Toasts: one glass chip in the status colour (they are written inline in app.js) ─── */
body > div[style*="position: fixed"][style*="bottom: 24px"][style*="z-index: 9999"] {
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .2), 0 18px 40px -14px rgb(28 26 23 / .55) !important;
  font-family: inherit !important;
  animation: g-toast .22s var(--g-ease) both;
}

/* ─── Page entrance (app.js adds .page-enter on every screen change) ─── */
@keyframes calm-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.page-enter { animation: calm-enter var(--g-page) var(--g-ease) both; }
@keyframes g-pop { from { opacity: 0; transform: translateY(4px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes g-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes g-toast { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }

/* ─── Reduced motion: keep every state change, drop the movement ─── */
@media (prefers-reduced-motion: reduce) {
  .page-enter, .gs-results, .tb-acc-menu, .tb-new-menu, .ha-more-menu, .dropdown-menu,
  .rv-sheet, .ask-card, .feedback-card, .apy-card, #auth-overlay > div > div:last-child,
  body > div[style*="position: fixed"][style*="bottom: 24px"] { animation: none !important; }
  .btn, .kp, .rpx-c, .mt-card, .list-chip, .sidebar-link, .table tbody tr, .modal.fade .modal-dialog { transition: none !important; }
  .btn:hover, .btn:active, .kp:hover, .rpx-c:hover, .list-chip:active { transform: none !important; }
}

/* ─── Print never carries the glass ─── */
@media print {
  body { background: #fff !important; }
  .home-card, .mt-card, .card, .data-table-wrapper, .modal-content { box-shadow: none !important; backdrop-filter: none !important; background: #fff !important; }
}

/* The toast colours written in app.js are older greens and reds: they take the brand's
   status colours, same meaning. */
body > div[style*="bottom: 24px"][style*="background: rgb(27, 94, 53)"] { background: var(--b-ok) !important; }
body > div[style*="bottom: 24px"][style*="background: rgb(230, 81, 0)"] { background: var(--b-warn) !important; }
body > div[style*="bottom: 24px"][style*="background: rgb(198, 40, 40)"] { background: var(--b-bad) !important; }
body > div[style*="bottom: 24px"][style*="background: rgb(13, 46, 92)"] { background: var(--b-info) !important; }

/* ════════════════════════════════════════════════════════════════════════════
   Premium finish (Peter, 2026-11-16): lit glass. Each panel has a polished bevel
   (bright top edge, a white rim, a darker lower lip), a warm halo where light
   catches its edge, a soft diagonal sheen across its face, and sits on a warm room
   with light falling in. Home's panels wear glossy coloured tabs with their icon.
   Text and figures stay on near-white so they read as before.
   ════════════════════════════════════════════════════════════════════════════ */
:root {
  --g-ground: #F1EAE1;
  /* polished bevel: top light, white rim, inner glow, lower lip */
  --g-bevel:
    inset 0 1.5px 0 rgb(255 255 255 / 1),
    inset 0 0 0 1px rgb(255 255 255 / .85),
    inset 0 0 0 4px rgb(255 255 255 / .38),
    inset 0 0 22px rgb(255 255 255 / .55),
    inset 0 -2px 0 rgb(196 160 120 / .22),
    inset 0 -18px 30px -12px rgb(222 182 140 / .28);
  /* the halo and the shadow under it */
  --g-halo:
    0 0 0 1px rgb(236 214 190 / .85),
    0 0 18px 1px rgb(255 196 146 / .30),
    0 2px 3px rgb(110 70 35 / .10),
    0 14px 26px -10px rgb(120 72 32 / .28),
    0 32px 60px -26px rgb(120 72 32 / .38);
  --g-halo-hover:
    0 0 0 1px rgb(236 200 166 / .95),
    0 0 26px 3px rgb(255 186 128 / .42),
    0 4px 6px rgb(110 70 35 / .12),
    0 20px 34px -12px rgb(120 72 32 / .34),
    0 40px 70px -28px rgb(120 72 32 / .44);
  --g-sheen: linear-gradient(118deg, rgb(255 255 255 / 0) 0%, rgb(255 255 255 / 0) 34%, rgb(255 255 255 / .55) 46%, rgb(255 255 255 / 0) 58%, rgb(255 255 255 / 0) 100%);
  --g-face: linear-gradient(165deg, rgb(255 255 255 / .96) 0%, rgb(252 249 244 / .88) 45%, rgb(246 239 230 / .86) 100%);
  --g-gloss: linear-gradient(180deg, rgb(255 255 255 / .38) 0%, rgb(255 255 255 / .10) 48%, rgb(255 255 255 / 0) 50%, rgb(0 0 0 / .06) 100%);
}

/* The room: warm ivory, light falling in from the top corner, a golden glow low down */
body, [dir="ltr"] body {
  background:
    linear-gradient(122deg, rgb(255 255 255 / 0) 22%, rgb(255 255 255 / .45) 30%, rgb(255 255 255 / 0) 40%),
    linear-gradient(122deg, rgb(255 255 255 / 0) 52%, rgb(255 250 240 / .35) 58%, rgb(255 255 255 / 0) 66%),
    radial-gradient(1100px 700px at 100% -8%, rgb(255 254 250 / 1) 0%, rgb(255 254 250 / 0) 62%),
    radial-gradient(900px 560px at 8% 108%, rgb(244 170 118 / .42) 0%, rgb(244 170 118 / 0) 62%),
    radial-gradient(700px 480px at 70% 112%, rgb(250 200 150 / .30) 0%, rgb(250 200 150 / 0) 60%),
    radial-gradient(520px 420px at 30% 30%, rgb(255 255 255 / .55) 0%, rgb(255 255 255 / 0) 70%),
    var(--g-ground);
  background-attachment: fixed;
}
[dir="ltr"] body {
  background:
    linear-gradient(238deg, rgb(255 255 255 / 0) 22%, rgb(255 255 255 / .45) 30%, rgb(255 255 255 / 0) 40%),
    linear-gradient(238deg, rgb(255 255 255 / 0) 52%, rgb(255 250 240 / .35) 58%, rgb(255 255 255 / 0) 66%),
    radial-gradient(1100px 700px at 0% -8%, rgb(255 254 250 / 1) 0%, rgb(255 254 250 / 0) 62%),
    radial-gradient(900px 560px at 92% 108%, rgb(244 170 118 / .42) 0%, rgb(244 170 118 / 0) 62%),
    radial-gradient(700px 480px at 30% 112%, rgb(250 200 150 / .30) 0%, rgb(250 200 150 / 0) 60%),
    radial-gradient(520px 420px at 70% 30%, rgb(255 255 255 / .55) 0%, rgb(255 255 255 / 0) 70%),
    var(--g-ground);
  background-attachment: fixed;
}

/* Every panel: lit glass */
.home-card, .mt-card, .kp, .lb-card, .lb-empty, .card, .fin6-kpi, .fin6-box, .rpx-c, .rpx-stat, .cw-card, .data-table-wrapper,
.sidebar, [dir="ltr"] .sidebar, .top-bar {
  border: 0; border-radius: 24px;
  background: var(--g-sheen), var(--g-face);
  box-shadow: var(--g-bevel), var(--g-halo);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
.data-table-wrapper { background: linear-gradient(180deg, rgb(255 255 255 / .98), rgb(251 248 243 / .96)); padding: 6px; }
.data-table-wrapper .table { border-radius: 18px; overflow: hidden; }
.kp:hover, .rpx-c:hover { box-shadow: var(--g-bevel), var(--g-halo-hover); }
.card > .card-header:first-child { border-radius: 24px 24px 0 0; background: linear-gradient(180deg, rgb(255 255 255 / .7), rgb(255 255 255 / .2)); }
.home-card .home-card-head { background: linear-gradient(180deg, rgb(255 255 255 / .75), rgb(255 255 255 / .15)); border-bottom-color: rgb(196 160 120 / .18); }
@media (min-width: 901px) { .sidebar, [dir="ltr"] .sidebar { border-radius: 28px; } .top-bar { border-radius: 22px; } }
@media (max-width: 900px) { .top-bar { border-radius: 0 0 20px 20px; } }

/* Side menu: the open page is a lit pill with a clay glow */
.sidebar-link.active, [dir="rtl"] .sidebar-link.active {
  background: linear-gradient(180deg, #fff 0%, #FFF9F4 55%, #F9EEE6 100%); font-weight: 700; color: var(--b-s900);
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -2px 0 rgb(158 69 33 / .10), 0 0 0 1px rgb(185 87 44 / .38),
    0 0 16px rgb(214 110 60 / .30), 0 8px 18px -8px rgb(158 69 33 / .45), inset 4px 0 0 var(--b-c600);
}
[dir="rtl"] .sidebar-link.active {
  box-shadow: inset 0 1.5px 0 #fff, inset 0 -2px 0 rgb(158 69 33 / .10), 0 0 0 1px rgb(185 87 44 / .38),
    0 0 16px rgb(214 110 60 / .30), 0 8px 18px -8px rgb(158 69 33 / .45), inset -4px 0 0 var(--b-c600);
}
.sb-count { border-radius: 8px; padding: 2px 8px; color: #fff;
  background: var(--g-gloss), linear-gradient(180deg, #C2602F, var(--b-c600)); box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), 0 3px 8px -2px rgb(158 69 33 / .55); }
.sg-n { border-radius: 50%; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #fff, #F3ECE3); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgb(196 160 120 / .35), 0 2px 4px rgb(60 45 31 / .10); }

/* Search and avatar in the bar */
.gsearch { border-radius: 14px; background: linear-gradient(180deg, #fff, #FBF8F4); border-color: rgb(196 160 120 / .30);
  box-shadow: inset 0 1px 2px rgb(110 70 35 / .08), 0 1px 0 #fff; }
.tb-avatar { box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgb(196 160 120 / .4), 0 6px 14px -4px rgb(60 45 31 / .5); }

/* Buttons: polished, a light top half, a warm glow under the clay */
.btn-primary, .tb-new-btn, .rpx-run, .section-header .btn-info, .section-header .btn-warning {
  background: var(--g-gloss), linear-gradient(180deg, #C4612F 0%, #A84B23 55%, #933E1B 100%);
  border: 1px solid #7F371B; border-radius: 12px; color: #fff; text-shadow: 0 1px 1px rgb(0 0 0 / .18);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .45), inset 0 -2px 0 rgb(0 0 0 / .12), 0 0 14px rgb(214 110 60 / .28), 0 8px 16px -6px rgb(158 69 33 / .55);
}
.btn-primary:hover, .tb-new-btn:hover, .tb-new[open] .tb-new-btn, .rpx-run:hover, .section-header .btn-info:hover, .section-header .btn-warning:hover {
  background: var(--g-gloss), linear-gradient(180deg, #B5562A 0%, #9A431F 55%, #85381A 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .4), inset 0 -2px 0 rgb(0 0 0 / .14), 0 0 20px rgb(214 110 60 / .38), 0 12px 22px -8px rgb(158 69 33 / .6);
}
.btn-light, .btn-outline-secondary, .btn-outline-dark, .btn-outline-primary, .btn-outline-success, .btn-outline-info {
  background: linear-gradient(180deg, #fff 0%, #FBF7F2 100%); border: 1px solid rgb(196 160 120 / .38); border-radius: 12px;
  box-shadow: inset 0 1px 0 #fff, inset 0 -1.5px 0 rgb(196 160 120 / .18), 0 2px 6px -2px rgb(110 70 35 / .16);
}
.btn-light:hover, .btn-outline-secondary:hover, .btn-outline-dark:hover, .btn-outline-primary:hover, .btn-outline-success:hover, .btn-outline-info:hover {
  background: linear-gradient(180deg, #fff 0%, #FFF6EE 100%); border-color: rgb(185 87 44 / .45);
  box-shadow: inset 0 1px 0 #fff, 0 0 12px rgb(214 110 60 / .18), 0 6px 14px -6px rgb(110 70 35 / .3);
}
.btn-success { background: var(--g-gloss), linear-gradient(180deg, #6A8A42, #4F6B2F); }
.btn-danger { background: var(--g-gloss), linear-gradient(180deg, #B83A4E, #9B1C31); }
.btn-dark, .btn-secondary { background: var(--g-gloss), linear-gradient(180deg, #3A3732, #1C1A17); }
.list-chip { background: linear-gradient(180deg, #fff, #FAF5EF); border-color: rgb(196 160 120 / .35);
  box-shadow: inset 0 1px 0 #fff, 0 2px 6px -2px rgb(110 70 35 / .16); }
.list-chip[aria-pressed="true"] { background: var(--g-gloss), linear-gradient(180deg, #3A3732, #1C1A17); color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 6px 14px -6px rgb(28 26 23 / .6); }
.form-control, .form-select, .list-search, .rpx-search {
  background-color: #fff; border-color: rgb(196 160 120 / .32);
  box-shadow: inset 0 1.5px 3px rgb(110 70 35 / .08), 0 1px 0 rgb(255 255 255 / .9);
}

/* Home: glossy coloured tabs, the white panel set into each */
.mt-card, section.home-card[aria-labelledby="home-feed-title"] {
  --g-tab: 64px;
  position: relative; overflow: hidden; padding: 0 0 12px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .40) 0px, rgb(255 255 255 / .12) 26px, rgb(255 255 255 / 0) 28px, rgb(0 0 0 / .10) var(--g-tab), transparent var(--g-tab)),
    linear-gradient(180deg, color-mix(in srgb, var(--g-tone) 80%, #fff) 0px, var(--g-tone) 30px, color-mix(in srgb, var(--g-tone) 86%, #000) var(--g-tab), rgb(255 255 255 / .82) var(--g-tab));
}
section.home-card[aria-labelledby="home-feed-title"] { --g-tone: var(--g-tone-team); padding: 0 0 18px; }
.mt-card::before, section.home-card[aria-labelledby="home-feed-title"]::before {
  content: ''; position: absolute; inset: calc(var(--g-tab) - 12px) 6px 6px; border-radius: 20px; z-index: 0;
  border: 1.5px solid rgb(255 255 255 / .95);
  background: var(--g-sheen), linear-gradient(165deg, #fff 0%, #FCFAF6 45%, #F5EEE5 100%);
  box-shadow: 0 -5px 12px -4px rgb(0 0 0 / .28), inset 0 2px 0 #fff, inset 0 0 18px rgb(255 255 255 / .9),
    inset 0 -20px 30px -12px rgb(222 182 140 / .32), 0 0 10px rgb(255 255 255 / .6);
}
.mt-card > *, section.home-card[aria-labelledby="home-feed-title"] > * { position: relative; z-index: 1; }
.mt-card .mt-head, section.home-card[aria-labelledby="home-feed-title"] > h2 {
  margin: 0 0 14px; height: calc(var(--g-tab) - 12px); padding: 0 22px; display: flex; align-items: center; gap: 10px;
  background: none; box-shadow: none; color: #fff; font-size: 21px; font-weight: 700; text-shadow: 0 1px 2px rgb(0 0 0 / .25);
}
.mt-card .mt-head button { font-size: 21px; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 8px; text-shadow: inherit; }
.mt-card .mt-head i { color: rgb(255 255 255 / .85); }
.mt-card .mt-head::after, section.home-card[aria-labelledby="home-feed-title"] > h2::after {
  font-family: 'bootstrap-icons'; font-weight: 400; font-size: 25px; line-height: 1; color: #fff;
  filter: drop-shadow(0 1px 1px rgb(0 0 0 / .25));
}
.mt-card[data-meter="prs"] .mt-head::after { content: '\f28b'; }
.mt-card[data-meter="pos"] .mt-head::after { content: '\f1c7'; }
.mt-card[data-meter="del"] .mt-head::after { content: '\f5ea'; }
section.home-card[aria-labelledby="home-feed-title"] > h2::after { content: '\f292'; }
section.home-card[aria-labelledby="home-feed-title"] > ul { padding-inline: 22px; padding-top: 6px; }
.mt-card .mt-dial, .mt-card .mt-legend { margin-inline: 18px; }
.mt-num { font-size: 40px; font-weight: 700; letter-spacing: -.02em; line-height: 1; text-shadow: 0 1px 0 #fff, 0 2px 6px rgb(110 70 35 / .12); }
.mt-unit { font-size: 15px; }
.mt-track { stroke: rgb(110 70 35 / .08); stroke-width: 13; }
.mt-seg { stroke-width: 13; }
.mt-dial svg { filter: drop-shadow(0 2px 2px rgb(110 70 35 / .18)); }
.mt-legend { border-top-color: rgb(196 160 120 / .25) !important; }
.mt-n { font-size: 16px; }
.mt-dot { border-radius: 4px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), 0 1px 2px rgb(0 0 0 / .15); }
.mt-card:hover { box-shadow: var(--g-bevel), var(--g-halo-hover); }
@media (max-width: 600px) {
  .mt-card { --g-tab: 54px; padding: 0 0 10px; }
  .mt-card .mt-head, .mt-card .mt-head button { font-size: 17px; }
  .mt-num { font-size: 26px; }
}
/* the trend line glows a little */
.tr-line { filter: drop-shadow(0 3px 4px rgb(158 69 33 / .30)); }
.tr-dot { filter: drop-shadow(0 1px 2px rgb(158 69 33 / .35)); }

/* Dialogs get the same lit glass */
.modal-content, .rv-sheet, .ask-card, .feedback-card, .apy-card, .onb-card {
  background: var(--g-sheen), linear-gradient(165deg, rgb(255 255 255 / .98), rgb(251 247 242 / .96));
  box-shadow: var(--g-bevel), var(--g-halo);
}
#auth-overlay > div > div:last-child {
  background: var(--g-sheen), var(--g-face) !important;
  box-shadow: var(--g-bevel), var(--g-halo) !important;
}

/* Premium motion (Peter, 2026-11-16: "make sure the transition animation is there"):
   every screen change rises in from a soft blur, and its glass panels follow one after
   another. Motion only; nothing waits for it, and reduced motion drops it below. */
:root { --g-page: 420ms; }
@keyframes calm-enter { from { opacity: 0; transform: translateY(14px) scale(.992); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes g-panel { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.page-enter :is(.home-card, .mt-card, .kp, .data-table-wrapper, .card, .fin6-kpi, .fin6-box, .rpx-c, .rpx-stat, .cw-card, .lb-card) {
  animation: g-panel 520ms var(--g-ease) both;
}
.page-enter :is(.kp, .mt-card, .rpx-c, .fin6-kpi):nth-child(2) { animation-delay: 60ms; }
.page-enter :is(.kp, .mt-card, .rpx-c, .fin6-kpi):nth-child(3) { animation-delay: 120ms; }
.page-enter :is(.kp, .mt-card, .rpx-c, .fin6-kpi):nth-child(4) { animation-delay: 180ms; }
.page-enter :is(.kp, .mt-card, .rpx-c, .fin6-kpi):nth-child(n+5) { animation-delay: 240ms; }
/* the sign-in panel arrives the same way */
#auth-overlay > div > div:last-child { animation: g-panel 560ms var(--g-ease) both; }
@media (prefers-reduced-motion: reduce) {
  .page-enter, .page-enter :is(.home-card, .mt-card, .kp, .data-table-wrapper, .card, .fin6-kpi, .fin6-box, .rpx-c, .rpx-stat, .cw-card, .lb-card),
  #auth-overlay > div > div:last-child { animation: none !important; }
}

/* ════════════════════════════════════════════════════════════════════════════
   See-through glass (Peter, 2026-11-16, evening): the panels are frosted and
   semi-transparent, so the warm light behind them shows through; a bright rim
   and a light that sweeps across each panel as a screen opens give the finish.
   ════════════════════════════════════════════════════════════════════════════ */
/* Light behind the glass: soft warm and cool glows that the frosting picks up */
body::before {
  content: ''; position: fixed; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(30vw 26vw at 16% 24%, rgb(255 150 84 / .85), transparent 68%),
    radial-gradient(28vw 24vw at 80% 74%, rgb(214 112 70 / .70), transparent 68%),
    radial-gradient(24vw 22vw at 56% 16%, rgb(120 160 205 / .62), transparent 68%),
    radial-gradient(26vw 20vw at 34% 88%, rgb(150 186 96 / .55), transparent 68%),
    radial-gradient(20vw 18vw at 92% 10%, rgb(255 226 170 / .95), transparent 68%),
    radial-gradient(18vw 16vw at 66% 52%, rgb(255 196 140 / .60), transparent 68%);
  filter: blur(30px);
  animation: g-drift 38s ease-in-out infinite alternate;
}
@keyframes g-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-2.5%, 2%, 0) scale(1.06); } }

:root {
  --g-frost: linear-gradient(165deg, rgb(255 255 255 / .58) 0%, rgb(255 252 247 / .36) 50%, rgb(255 246 236 / .30) 100%);
  --g-rim: linear-gradient(180deg, rgb(255 255 255 / .70) 0px, rgb(255 255 255 / 0) 46px);
  --g-sweep: linear-gradient(105deg, transparent 38%, rgb(255 255 255 / .70) 48%, rgb(255 255 255 / .15) 54%, transparent 62%);
}
.home-card, .kp, .lb-card, .lb-empty, .card, .fin6-kpi, .fin6-box, .rpx-c, .rpx-stat, .cw-card, .data-table-wrapper,
.sidebar, [dir="ltr"] .sidebar, .top-bar {
  background: var(--g-sweep) no-repeat, var(--g-rim), var(--g-frost);
  background-size: 260% 100%, auto, auto;
  background-position: 130% 0, 0 0, 0 0;
  -webkit-backdrop-filter: blur(24px) saturate(1.7) brightness(1.04); backdrop-filter: blur(24px) saturate(1.7) brightness(1.04);
}
/* tables stay a touch more solid so long lists read easily */
.data-table-wrapper .table, .data-table-wrapper .table > :not(caption) > * > * { background-color: rgb(255 255 255 / .55); }
.data-table-wrapper .table thead th { background-color: rgb(255 250 244 / .70); }
/* Home's tabbed panels: the white inset becomes frosted too */
.mt-card, section.home-card[aria-labelledby="home-feed-title"] {
  -webkit-backdrop-filter: blur(24px) saturate(1.7); backdrop-filter: blur(24px) saturate(1.7);
}
.mt-card::before, section.home-card[aria-labelledby="home-feed-title"]::before {
  background: var(--g-rim), linear-gradient(165deg, rgb(255 255 255 / .70) 0%, rgb(255 251 246 / .46) 55%, rgb(255 244 232 / .38) 100%);
}
/* The light sweeps across each panel once as a screen opens */
@keyframes g-sweep { from { background-position: 130% 0, 0 0, 0 0; } to { background-position: -40% 0, 0 0, 0 0; } }
.page-enter :is(.home-card, .kp, .data-table-wrapper, .card, .fin6-kpi, .fin6-box, .rpx-c, .rpx-stat, .cw-card, .lb-card):not(section.home-card[aria-labelledby="home-feed-title"]) {
  animation: g-panel 520ms var(--g-ease) both, g-sweep 1500ms 260ms cubic-bezier(.4, 0, .2, 1) both;
}
/* Dialogs and document sheets: frosted too, over a blurred room */
.modal-content, .rv-sheet, .ask-card, .feedback-card, .apy-card, .onb-card {
  background: var(--g-rim), linear-gradient(165deg, rgb(255 255 255 / .86), rgb(255 250 244 / .76));
  -webkit-backdrop-filter: blur(28px) saturate(1.6); backdrop-filter: blur(28px) saturate(1.6);
}
.rv-overlay, .modal-backdrop.show { -webkit-backdrop-filter: blur(6px) saturate(1.2); backdrop-filter: blur(6px) saturate(1.2); animation: g-fade 260ms ease both; }
@keyframes g-fade { from { opacity: 0; } to { opacity: 1; } }

/* ─── Screen to screen, document to document ───
   Lists and dashboards rise in from a soft blur (above). A document (any «-form»
   screen, an order's activation) slides in from the reading side like a page laid
   on the desk; opening the next document from the same screen turns to it the same
   way. app.js sets .page-doc on those; the direction follows the language. */
@keyframes g-doc-in-rtl { from { opacity: 0; transform: perspective(1400px) translateX(-48px) rotateY(-5deg) scale(.985); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes g-doc-in-ltr { from { opacity: 0; transform: perspective(1400px) translateX(48px) rotateY(5deg) scale(.985); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.page-enter.page-doc { animation: g-doc-in-rtl 480ms var(--g-ease) both; transform-origin: 0 50%; }
[dir="ltr"] .page-enter.page-doc { animation-name: g-doc-in-ltr; transform-origin: 100% 50%; }
/* a document sheet over a screen (a request, a sending form) rises like a card lifted */
@keyframes g-sheet { from { opacity: 0; transform: translateY(28px) scale(.97); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
.rv-sheet, .modal.show .modal-content { animation: g-sheet 440ms var(--g-ease) both; }

@media (prefers-reduced-motion: reduce) {
  body::before, .page-enter.page-doc, .rv-sheet, .modal.show .modal-content, .rv-overlay, .modal-backdrop.show,
  .page-enter :is(.home-card, .kp, .data-table-wrapper, .card, .fin6-kpi, .fin6-box, .rpx-c, .rpx-stat, .cw-card, .lb-card) { animation: none !important; }
}
@media print { body::before { display: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .home-card, .kp, .card, .data-table-wrapper, .sidebar, .top-bar, .fin6-kpi, .rpx-c { background: #FFFDF9; }
}
