/* Seasonal themes (docs/2026-11-10_seasonal-themes.md). <html data-season> is set by bos-season-boot.js before paint.
   Colours: the season overrides the same variables as the Accent (bos.css), so it must load AFTER bos.css; the
   user's accent comes back by itself when the season ends. --season-1/-2 = the light sidebar pair (sign-in page in
   both modes), --season-a/-b = the occasion's own two colours (tiles, invite). Decorations only live in the shell's
   sidebar / top bar, the Home dashboard greeting and the sign-in page - never in reports, prints or entry grids. */
html[data-season="christmas"]{--bos-blue:#c62a35;--bos-blue-dark:#9d1d27;--sidebar:#0e3b2c;--sidebar-2:#1a6a46;--season-1:#0e3b2c;--season-2:#1a6a46;--season-a:#d6283a;--season-b:#1a6a46}
html[data-season="newyear"]{--bos-blue:#b5841f;--bos-blue-dark:#8d6614;--sidebar:#11152b;--sidebar-2:#2a2d5c;--season-1:#11152b;--season-2:#2a2d5c;--season-a:#e2b44c;--season-b:#2a2d5c}
html[data-season="valentine"]{--bos-blue:#d63a6a;--bos-blue-dark:#ad2552;--sidebar:#5b0f2e;--sidebar-2:#a61f50;--season-1:#5b0f2e;--season-2:#a61f50;--season-a:#ff8fb1;--season-b:#a61f50}
html[data-season="ramadan"]{--bos-blue:#a8781c;--bos-blue-dark:#835c12;--sidebar:#0f1f3d;--sidebar-2:#1d3a6b;--season-1:#0f1f3d;--season-2:#1d3a6b;--season-a:#d9a640;--season-b:#1d3a6b}
html[data-season="easter"]{--bos-blue:#7d55c4;--bos-blue-dark:#5f3ca3;--sidebar:#1f5a48;--sidebar-2:#3f8f6b;--season-1:#1f5a48;--season-2:#3f8f6b;--season-a:#b48be0;--season-b:#3f8f6b}
html[data-season="halloween"]{--bos-blue:#d9650c;--bos-blue-dark:#a64c08;--sidebar:#1d1029;--sidebar-2:#3d1d52;--season-1:#1d1029;--season-2:#3d1d52;--season-a:#f07f1d;--season-b:#3d1d52}
html[data-season="independence"]{--bos-blue:#0f8a4a;--bos-blue-dark:#0b6a39;--sidebar:#8d1b14;--sidebar-2:#cf2f22;--season-1:#8d1b14;--season-2:#cf2f22;--season-a:#e6463b;--season-b:#00a651}
html[data-theme="dark"][data-season="christmas"]{--sidebar:#0b1a14;--sidebar-2:#13301f;--bos-blue:#d94450}
html[data-theme="dark"][data-season="newyear"]{--sidebar:#0c0f1d;--sidebar-2:#1b1d3a;--bos-blue:#c99a2e}
html[data-theme="dark"][data-season="valentine"]{--sidebar:#22101a;--sidebar-2:#3a1728;--bos-blue:#e0507d}
html[data-theme="dark"][data-season="ramadan"]{--sidebar:#0a1426;--sidebar-2:#13264a;--bos-blue:#c0902e}
html[data-theme="dark"][data-season="easter"]{--sidebar:#0f2119;--sidebar-2:#183a2b;--bos-blue:#9672d8}
html[data-theme="dark"][data-season="halloween"]{--sidebar:#130b1b;--sidebar-2:#241433;--bos-blue:#e8761e}
html[data-theme="dark"][data-season="independence"]{--sidebar:#2a0f0c;--sidebar-2:#4a1712;--bos-blue:#1ea35c}

/* ---- decorations (bos-season.js adds the elements; hidden when Show decorations is off) ---- */
html:not([data-season-deco="1"]) .bos-season-deco{display:none!important}
.sidebar-brand{position:relative}
.bos-season-badge{position:absolute;left:4px;top:3px;width:26px;height:26px;transform:rotate(-16deg);pointer-events:none;z-index:2}
.bos-season-badge svg{width:100%;height:100%;display:block}
.sidebar-collapsed .bos-season-badge{left:6px;top:6px;width:22px;height:22px}
/* z-index -1 inside the sidebar's own stacking context: above its gradient, under the menu text */
.bos-season-fx{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:-1}
.bos-season-corner{position:absolute;right:0;bottom:0;pointer-events:none;z-index:-1}
.bos-season-corner svg{width:100%;height:auto;display:block}
.bos-season-strip{position:absolute;left:0;right:0;top:100%;pointer-events:none;background-repeat:repeat-x;background-position:0 0;z-index:1}

.bos-season-pill{display:inline-flex;align-items:center;gap:6px;height:30px;font-size:12px;font-weight:700;padding:0 10px 0 7px;border-radius:999px;cursor:pointer;
  background:color-mix(in srgb,var(--bos-blue) 11%,var(--surface));color:color-mix(in srgb,var(--bos-blue) 72%,var(--text));border:1px solid color-mix(in srgb,var(--bos-blue) 30%,var(--border));white-space:nowrap}
.bos-season-pill:hover{background:color-mix(in srgb,var(--bos-blue) 18%,var(--surface))}
.bos-season-pill svg{width:16px;height:16px;flex:none}
@media(max-width:800px){.bos-season-pill{padding:0 7px}.bos-season-pill span{display:none}}

/* particles (snow / petals / confetti fall, hearts rise, stars twinkle) */
.bos-season-p{position:absolute;left:var(--x);top:-14px;width:var(--s);height:var(--s);opacity:var(--o,.85);animation:bos-season-fall var(--d) linear var(--dl) infinite}
.bos-season-p--snow{border-radius:50%;background:#fff}
.bos-season-p--petal{background:#ffd3e1;border-radius:70% 0 70% 0;width:calc(var(--s) * 1.5)}
.bos-season-p--conf{background:var(--c);width:calc(var(--s) * .55);animation-name:bos-season-fallspin}
.bos-season-p--heart{top:auto;bottom:-16px;animation-name:bos-season-rise}
.bos-season-p--heart svg{width:100%;height:100%;display:block}
.bos-season-p--star{top:var(--y);border-radius:50%;background:#ffe9a6;box-shadow:0 0 6px 1px rgba(255,226,140,.7);animation-name:bos-season-twinkle;animation-timing-function:ease-in-out}
@keyframes bos-season-fall{from{transform:translate(0,0)}50%{transform:translate(10px,52vh)}to{transform:translate(-6px,104vh)}}
@keyframes bos-season-fallspin{from{transform:translate(0,0) rotate(0)}to{transform:translate(14px,104vh) rotate(540deg)}}
@keyframes bos-season-rise{from{transform:translate(0,0)}50%{transform:translate(-8px,-52vh)}to{transform:translate(6px,-104vh);opacity:0}}
@keyframes bos-season-twinkle{0%,100%{opacity:.25}50%{opacity:1}}
html[data-season-anim="0"] .bos-season-p{animation:none!important;top:var(--y)!important;bottom:auto!important}
@media (prefers-reduced-motion: reduce){.bos-season-p{animation:none!important;top:var(--y)!important;bottom:auto!important}}

/* ---- Appearance menu: Season section ---- */
.theme-menu-popover{width:280px;max-height:calc(100vh - 80px);overflow:auto}
.theme-season-modes{display:flex;flex-direction:column;gap:5px}
.theme-season-mode{display:flex;align-items:flex-start;gap:9px;width:100%;text-align:left;border:1px solid var(--border);background:var(--surface-2);color:var(--text);border-radius:8px;padding:7px 9px}
.theme-season-mode:hover{border-color:color-mix(in srgb,var(--bos-blue) 45%,var(--border))}
.theme-season-mode b{display:block;font-size:12px}
.theme-season-mode small{display:block;font-size:11px;color:var(--muted);line-height:1.35}
.theme-season-mode::before{content:"";width:14px;height:14px;border-radius:50%;border:2px solid var(--muted);flex:none;margin-top:1px;box-sizing:border-box}
.theme-season-mode.is-active{border-color:var(--bos-blue);background:color-mix(in srgb,var(--bos-blue) 8%,var(--surface))}
.theme-season-mode.is-active::before{border-color:var(--bos-blue);background:radial-gradient(circle,var(--bos-blue) 0 3px,transparent 3.5px)}
.theme-season-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:8px}
.theme-season-tile{border:1px solid var(--border);border-radius:8px;padding:6px 2px 5px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;font-weight:650;line-height:1.15;color:var(--text);background:var(--surface);text-align:center}
.theme-season-tile:hover{border-color:color-mix(in srgb,var(--bos-blue) 45%,var(--border))}
.theme-season-tile .bos-season-swatch{width:30px;height:22px;border-radius:6px;display:grid;place-items:center;background:linear-gradient(135deg,var(--a),var(--b))}
.theme-season-tile .bos-season-swatch svg{width:16px;height:16px}
.theme-season-tile.is-active{border-color:var(--bos-blue);box-shadow:inset 0 0 0 1px var(--bos-blue)}
.theme-season-tile.is-today:not(.is-active) .bos-season-swatch{box-shadow:0 0 0 2px var(--surface),0 0 0 3.5px color-mix(in srgb,var(--b) 60%,transparent)}
.theme-season-accent-note{font-size:11px;color:var(--muted);margin:7px 0 0;line-height:1.35}
.theme-season-checks{display:flex;flex-direction:column;gap:6px;margin-top:10px;padding-top:9px;border-top:1px solid var(--border)}
.theme-season-checks label{display:flex;align-items:center;gap:7px;font-size:12px;cursor:pointer}
.theme-season-checks input{accent-color:var(--bos-blue);margin:0}

/* ---- the invite (top window only, once per occasion) ---- */
/* top centre: the reminders stack (bottom right) and the notification popup (top right) keep their corners */
.bos-season-invite{position:fixed;left:50%;top:calc(var(--topbar-height) + 14px);z-index:10040;width:min(360px,calc(100vw - 24px));background:var(--surface);color:var(--text);
  border:1px solid var(--border);border-radius:12px;box-shadow:0 18px 44px rgba(0,0,0,.22);overflow:hidden;animation:bos-season-in .25s ease-out}
.bos-season-invite__band{height:64px;position:relative;overflow:hidden;background:linear-gradient(120deg,var(--a),var(--b));display:flex;align-items:center;gap:12px;padding:0 16px;color:#fff}
.bos-season-invite__band svg{width:30px;height:30px;flex:none}
.bos-season-invite__band strong{font-size:15px}
.bos-season-invite__body{padding:12px 16px 14px}
.bos-season-invite__body p{margin:0 0 12px;font-size:13px;color:var(--muted);line-height:1.45}
.bos-season-invite__actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bos-season-invite__try{background:var(--b);color:#fff;border-color:transparent}
.bos-season-invite__try:hover{filter:brightness(1.08);background:var(--b)}
.bos-season-invite__always{margin-left:auto;border:0;background:transparent;color:var(--muted);font-size:12px;text-decoration:underline;padding:4px 0}
.bos-season-invite__close{position:absolute;right:8px;top:8px;width:26px;height:26px;border:0;border-radius:6px;background:rgba(255,255,255,.16);color:#fff;font-size:17px;line-height:1}
.bos-season-invite__close:hover{background:rgba(255,255,255,.28)}
.bos-season-invite{transform:translateX(-50%)}
@keyframes bos-season-in{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translateX(-50%)}}
@media (prefers-reduced-motion: reduce){.bos-season-invite{animation:none}}

/* ---- Home dashboard greeting ---- */
.bos-season-greeting{display:flex;align-items:center;gap:18px;padding:16px 20px;margin-bottom:14px;position:relative;overflow:hidden}
.bos-season-greeting::before{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 40%,color-mix(in srgb,var(--bos-blue) 9%,transparent));pointer-events:none}
.bos-season-greeting__text{flex:1;min-width:0;position:relative}
.bos-season-greeting__text .eyebrow{color:var(--bos-blue)}
.bos-season-greeting__text h2{margin:3px 0 4px;font-size:21px}
.bos-season-greeting__text p{margin:0;color:var(--muted)}
.bos-season-greeting__ar{font-size:16px;font-weight:700;margin-left:10px;color:color-mix(in srgb,var(--bos-blue) 75%,var(--text))}
.bos-season-greeting__art{width:140px;height:96px;flex:none;position:relative}
.bos-season-greeting__art svg{width:100%;height:100%;display:block}
.bos-season-greeting__close{position:absolute;right:8px;top:8px;z-index:1}
@media(max-width:600px){.bos-season-greeting__art{width:92px;height:64px}.bos-season-greeting__text h2{font-size:18px}}

/* ---- sign-in page ---- */
html[data-season] .login-brand-panel{background:linear-gradient(145deg,var(--season-1),var(--season-2));position:relative;overflow:hidden}
html[data-season] .login-brand-panel > :not(.bos-season-fx):not(.bos-season-corner){position:relative;z-index:1}
html[data-season] .login-brand-panel .bos-season-fx,html[data-season] .login-brand-panel .bos-season-corner{z-index:0}
.bos-season-login-art{width:min(240px,70%);height:auto;align-self:center}
.bos-season-login-art svg{width:100%;height:auto;display:block}
.login-brand-copy .bos-season-login-greet{font-size:20px;font-weight:800;margin:0 0 6px;color:#fff;max-width:none}
.bos-season-login-greet [lang="ar"]{font-size:17px;opacity:.85;margin-left:8px}
.login-brand-copy .bos-season-login-from{margin:0 0 14px;color:rgba(255,255,255,.85)}
/* Login.cshtml wraps the logo so the badge can sit on it; the wrapper takes the logo's width (bos.css .login-logo) */
.login-logo-wrap{position:relative;display:block;width:min(300px,75%);align-self:flex-start}
.login-logo-wrap .login-logo{width:100%}
@media(max-width:800px){.login-logo-wrap{width:150px}}
.login-logo-wrap .bos-season-badge{width:38px;height:38px;left:2px;top:-10px}
@media(max-width:800px){html[data-season] .login-page{background:linear-gradient(160deg,var(--season-1) 0 28%,var(--bg) 28%)}html[data-season] .login-brand-panel{background:transparent}.bos-season-login-art{display:none}}
