/* Visit blue identity: translucent navigation, opaque readable work surfaces. */
.northern-theme{color-scheme:light;--ink:#142e48;--muted:#526b80;--bg:#f3f8fd;--canvas:#f3f8fd;--paper:#fff;--surface:#fff;--soft:#eaf4fc;--line:#d7e5f0;--green:#1f7a5a;--lime:#67c6f2;--red:#b42318;--orange:#8a4b00;--night:#103956;--frost:#f1f9ff;--glass:#ffffff70;--glass-line:#ffffffb3;--shadow:0 5px 22px #005baa0d;background:radial-gradient(ellipse 440px 700px at 0 15%,#a9d9fa80,transparent 85%),radial-gradient(ellipse 520px 340px at 18% 0,#d0edff88,transparent 80%),var(--canvas);background-attachment:fixed;color:var(--ink);min-height:100vh}
.northern-theme .shell{background:transparent}
.northern-theme .sidebar{background:linear-gradient(155deg,rgba(0,91,170,.78),rgba(5,49,98,.72));border:1px solid #ffffff66;border-radius:24px;inset:18px auto 18px 18px;width:226px;box-shadow:inset 0 1px 0 #ffffff40,0 12px 36px #005baa24;backdrop-filter:blur(26px) saturate(145%);-webkit-backdrop-filter:blur(26px) saturate(145%);color:#fff}
.northern-theme #navigation a{color:#fff}
.northern-theme #navigation a.active{background:#033f7d66;color:#fff;border-color:#ffffff66;box-shadow:0 5px 14px #001f421f,inset 3px 0 #67c6f2}
.northern-theme #navigation a:hover:not(.active){background:#033f7d33;color:#fff;border-color:#ffffff40}
.northern-theme .sidebar .workspace-label,.northern-theme .sidebar-bottom p{color:#fff}.northern-theme .sidebar-bottom{color:#fff}.northern-theme .sidebar .online-dot{background:#67c6f2}
.northern-theme .topbar{background:#f3f8fd;border-color:var(--line);color:var(--ink)}
.northern-theme .demo-tag{background:#e6f2fa;color:#365e7c;border-color:var(--line)}
.northern-theme .panel,.northern-theme .metric,.northern-theme .op-metric,.northern-theme .module-card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);color:var(--ink);backdrop-filter:none}
.northern-theme .panel .panel{box-shadow:none}
.northern-theme .module-card:hover{border-color:#80bfe8;box-shadow:0 12px 28px #005baa16}
.northern-theme .module-featured{background:#ecf7ff}
.northern-theme .module-icon{color:#005baa;background:#d9f2fd}
.northern-theme .module-card p,.northern-theme .module-status,.northern-theme .module-number{color:var(--muted)}
.northern-theme .module-open{color:#005baa;border-color:var(--line)}
.northern-theme .section-nav a{color:#43657e}
.northern-theme .section-nav a[aria-current="page"]{background:#005baa;color:#fff}
.northern-theme .section-nav a:hover:not([aria-current="page"]){background:#e2f3fc;color:#005baa}
.northern-theme :is(.button,.button.soft){background:#fff;color:#005baa;border:1px solid #8dbada;min-height:44px;border-radius:12px;font-weight:600;transition:background .15s,box-shadow .15s}
.northern-theme .button.primary{background:#005baa;border-color:#005baa;color:white;box-shadow:0 4px 10px #005baa2e}
.northern-theme .button.primary:hover{background:#004988;border-color:#004988;color:#fff}
.northern-theme .button.primary:active{background:#004988;transform:translateY(1px)}
.northern-theme .button.blue-action{background:#67c6f2;border-color:#2696ca;color:#fff;box-shadow:0 4px 12px #67c6f222}
.northern-theme .button.blue-action:hover{background:#85d1f5;border-color:#2696ca;color:#fff}.northern-theme .button.blue-action:active{background:#4dbbef;transform:translateY(1px)}
.northern-theme .button:not(.primary):not(.blue-action):hover{background:#e2f3fc;color:#005baa}
.northern-theme .button.link{background:transparent;color:#005baa;border-color:transparent;box-shadow:none}
.northern-theme .button.link:hover{text-decoration:underline}
.northern-theme .button:disabled{background:#e4ebf1;color:#60758a;border-color:#d7e5f0;box-shadow:none}
.northern-theme :is(button,a,input,select,textarea,summary):focus-visible{outline:3px solid #005baa;outline-offset:3px}
.northern-theme .sidebar :is(button,a):focus-visible{outline-color:#67c6f2}
.northern-theme :is(.field input,.field select,.field textarea,.search,.cost-fields input,.cost-fields select,.reference-controls input,.reference-controls select){background:#fff;color:var(--ink);border-color:#97b6ce;font-size:16px}
.northern-theme input::placeholder,.northern-theme textarea::placeholder{color:#60788e;opacity:1}
.northern-theme option{background:#fff;color:var(--ink)}
.northern-theme input:-webkit-autofill{-webkit-text-fill-color:#142e48;box-shadow:0 0 0 1000px #fff inset;caret-color:#142e48}
.northern-theme input[type="checkbox"]{accent-color:#005baa}
.northern-theme :is(th,.plan-table thead,.modal-actions){background:#edf5fc;color:#45627a;border-color:var(--line)}
.northern-theme :is(.note,.wide-note,.cost-exclusions,.cost-included,.invite-result){background:#eff7fc;color:#45627a;border-color:var(--line)}
.northern-theme :is(.reference-route,.reference-card,.reference-controls){background:#fff;border-color:var(--line);color:var(--ink)}
.northern-theme .reference-route>header{background:#f3f9ff;border-color:var(--line)}
.northern-theme .reference-card:has(.reference-row-details[open]){background:#fff}
.northern-theme :is(.reference-card summary,.reference-vehicle-name,.reference-row-details summary,.reference-notice a){color:#005baa}
.northern-theme .reference-tabs button{color:#335e7c;background:#fff;border-color:#aacfe8}
.northern-theme .reference-tabs button[aria-pressed="true"]{background:#005baa;color:#fff;border-color:#005baa}
.northern-theme .reference-tabs button:hover:not([aria-pressed="true"]){background:#e3f4fd}
.northern-theme .reference-sale,.northern-theme .sale-legend{background:#dff5e7;color:#126036}
.northern-theme .reference-sale dt,.northern-theme .reference-sale dd{color:#126036}
.northern-theme .reference-sync,.northern-theme .reference-notice{background:#edf7fe;color:#335f7e;border-color:#bdddf3}
.northern-theme .reference-stale,.northern-theme .reference-sync.reference-stale{background:#fff4e5;color:#8a4b00;border-color:#e8c58f}
.northern-theme .badge.green{background:#e0f4e8;color:#126036}
.northern-theme .badge.blue{background:#e8efff;color:#244f9f}
.northern-theme .badge.amber{background:#fff0d8;color:#874800}
.northern-theme .badge.neutral{background:#edf3f8;color:#43586b}
.northern-theme .badge.red{background:#ffedea;color:#b42318}
.northern-theme .cost-total{color:#142e48;font-size:40px}
.northern-theme .cost-line{background:#f2f8fd;border-color:var(--line)}
.northern-theme .cost-error,.northern-theme .error,.northern-theme .warning-text{color:#aa391f}
.northern-theme dialog{background:#fff;border:1px solid #c6ddec;color:var(--ink);box-shadow:0 30px 100px #10395655;border-radius:22px}
.northern-theme dialog::backdrop{background:#10395699;backdrop-filter:blur(4px)}
.northern-theme #toast{background:#005baa;color:#fff}
.northern-theme .password-toggle,.northern-theme .password-copy{color:#005baa}
.northern-theme .brand{padding:0;line-height:1}
.northern-theme .brand-logo{display:block;width:170px;max-width:100%;height:auto;object-fit:contain}
.northern-theme .sidebar .brand{width:170px;max-width:100%;flex-shrink:0;position:relative;isolation:isolate}.northern-theme .sidebar .brand::before{content:none}
.northern-theme .access-header{background:#005baa;border:1px solid #27689d;border-radius:20px;padding:22px;color:#fff}
.northern-theme .access-header .back{color:#fff}
.northern-theme .access-header .button{background:#fff;color:#005baa}
/* Entry: photo outside the readable, solid form. */
.northern-theme.login-page{background:linear-gradient(#10395644,#10395699),url('/assets/northern-fjord.png') center/cover fixed}
.northern-theme.login-page .login-layout{display:flex;flex-direction:column;justify-content:center;gap:26px;max-width:560px;padding:38px 28px;min-height:100vh}
.northern-theme.login-page .welcome{display:block;padding:0;background:none;width:auto}
.northern-theme.login-page :is(.welcome-copy,.welcome-foot,.north-line){display:none}
.northern-theme.login-page .brand-logo{width:210px}
.northern-theme.login-page .login-panel{width:100%;padding:38px 42px;border:1px solid #fff;border-radius:28px;background:#fff;box-shadow:0 25px 80px #05131f44;backdrop-filter:none}
.northern-theme.login-page .login-card h2{color:#142e48;font-size:32px}
.northern-theme.login-page .login-card input{background:#fff;border-color:#97b6ce;color:#142e48;font-size:16px}
.northern-theme.login-page .local-caption{color:#526b80}
/* Financial overview */
.finance-heading{display:flex;justify-content:space-between;align-items:center;gap:25px;margin:10px 0 28px}
.workspace-page .finance-heading h1{font-size:40px;letter-spacing:-1.3px;line-height:1.2;margin:10px 0 14px}
.finance-heading p:not(.eyebrow){color:#526b80;font-size:15px;max-width:550px;line-height:1.7}
.finance-actions,.finance-shortcuts{display:flex;gap:10px;flex-wrap:wrap}
.finance-period{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:0 0 20px;font-size:14px}
.finance-period label{display:flex;align-items:center;gap:10px;color:#45627a}
.finance-period input{border:1px solid #97b6ce;border-radius:10px;padding:10px;background:#fff;color:#142e48;font:inherit;min-height:44px;max-width:100%}
.finance-period>span{font-size:12px;color:#526b80}
.finance-source{display:flex;align-items:center;gap:12px;background:#eaf6ff;border:1px solid #bddff5;border-radius:14px;padding:14px 18px;margin-bottom:24px;color:#335f7e;font-size:13px}
.finance-source>div{flex:1}.finance-source strong,.finance-source span:not(.source-dot){display:block}.finance-source span:not(.source-dot){font-size:12px;margin-top:5px;line-height:1.6}.source-dot{width:8px;height:8px;border-radius:50%;background:#005baa;flex-shrink:0}
.finance-source.is-warning{background:#fff4e5;border-color:#e8c58f;color:#8a4b00}
.finance-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:26px}
.finance-stat{display:flex;flex-direction:column;gap:14px;padding:22px;border:1px solid #d7e5f0;border-top:4px solid #67c6f2;background:#fff;border-radius:18px;color:#142e48;box-shadow:var(--shadow);text-decoration:none;min-width:0}
.finance-stat>span{font-size:13px;display:flex;justify-content:space-between;gap:8px}.finance-stat>span b{color:#005baa}.finance-stat>strong{font-size:27px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.3}.finance-stat>small{font-size:12px;line-height:1.6;color:#526b80}
.finance-stat:hover{box-shadow:0 7px 20px #005baa20;border-color:#83bfeb}.finance-stat.stat-bank{background:#f4f8ff;border-top-color:#005baa}.finance-stat.stat-deposit{border-top-color:#005baa}.finance-stat.stat-due{border-top-color:#db9129}
.finance-grid{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(270px,1fr);gap:24px}.finance-grid>div{min-width:0}.finance-accounts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.finance-table{margin:0 -22px 12px;max-width:calc(100% + 44px)}.finance-table th{font-weight:600;line-height:1.6}.finance-table td{vertical-align:middle;white-space:normal;font-variant-numeric:tabular-nums}.finance-table .amount{white-space:nowrap}.finance-table td:first-child{min-width:190px}.finance-table .badge{white-space:normal;line-height:1.5}
.booking-link{color:#142e48;text-decoration:none;display:block;min-height:44px;padding:4px 0}.booking-link:hover strong{color:#005baa;text-decoration:underline}.booking-link strong{font-size:13px;line-height:1.6;display:block}.booking-link small{display:block;font-size:11px;margin-top:6px;color:#526b80}
.finance-empty{text-align:left;padding:8px 0 12px}.finance-empty h3{font-size:18px;line-height:1.5;margin:8px 0}.finance-empty p{font-size:14px;color:#526b80;line-height:1.7;max-width:700px}.finance-empty .button{margin:15px 8px 0 0}.empty-symbol{font-size:34px;line-height:1;color:#397ba5}
.finance-attention{display:flex;gap:12px;padding:12px 0}.finance-attention+.finance-attention{border-top:1px solid #d7e5f0}.attention-icon{width:30px;height:30px;flex-shrink:0;display:grid;place-items:center;border-radius:10px;background:#fff0d8;color:#874800}.finance-attention h3{font-size:15px}.finance-attention p{font-size:13px;color:#526b80;line-height:1.7;margin-top:8px}.finance-attention .button{padding-left:0}.finance-lead{font-size:22px;font-weight:600;margin:5px 0 14px}.finance-grid .panel-body>p{line-height:1.7}.finance-grid .panel-body>.button{margin-top:18px}.finance-shortcuts{margin:5px 0 25px}.finance-issues{display:grid;gap:18px}.finance-issues h3{margin:14px 0}.finance-issues p{line-height:1.7}.finance-issues .button{margin-top:14px}.finance-guide{padding-left:22px}.finance-guide li{line-height:1.8;margin:16px 0}
@media(max-width:1200px){.finance-heading{align-items:start;flex-direction:column}.finance-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-grid{grid-template-columns:minmax(0,1fr)}.finance-grid>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:18px}}
@media(max-width:1150px){.northern-theme .sidebar{width:200px;left:12px;top:12px;bottom:12px}}
@media(max-width:850px){.northern-theme .sidebar{background:linear-gradient(155deg,#005baa,#053162);position:relative;inset:auto;width:auto;margin:12px 12px 0;border-radius:20px}.northern-theme .sidebar .brand{width:160px;max-width:calc(100% - 90px)}.northern-theme .topbar{border-bottom:0}.northern-theme .nav-toggle{background:#ffffff17;border-color:#ffffff70;color:#fff}.northern-theme #navigation{background:transparent}.finance-accounts{grid-template-columns:1fr}}
@media(max-width:580px){.workspace-page .finance-heading h1{font-size:32px}.finance-heading{gap:16px;margin-bottom:22px}.finance-stats{gap:10px}.finance-stat{padding:16px 13px;gap:10px}.finance-stat>strong{font-size:22px}.finance-stat>span{font-size:12px}.finance-stat>small{font-size:11px}.finance-grid>div:last-child{display:block}.finance-period{gap:12px}.finance-period label{width:100%;flex-wrap:wrap}.finance-source{flex-wrap:wrap;padding:14px}.finance-source>div{min-width:210px}.finance-source .button{margin-left:20px}.finance-grid{gap:0}.finance-table{margin:0 -16px 12px;max-width:calc(100% + 32px)}.finance-table th,.finance-table td{padding-left:16px;padding-right:16px}.finance-heading .button{font-size:13px}.northern-theme.login-page .login-layout{padding:26px 18px}.northern-theme.login-page .login-panel{padding:30px 25px}.northern-theme.login-page .login-card h2{font-size:28px}.northern-theme .access-header{padding:18px}}
@media(prefers-reduced-motion:reduce){.northern-theme .button{transition:none}.northern-theme .button:active{transform:none}}

/* Auxiliary accents and a readable fallback when glass effects are unavailable. */
.northern-theme .eyebrow{color:#3d6a8c}.northern-theme .skip-link{color:#005baa}.northern-theme .module-featured .module-icon{background:#d9f2fd}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.northern-theme .sidebar{background:linear-gradient(155deg,#005baa,#053162)}}
@media(prefers-reduced-transparency:reduce){.northern-theme .sidebar{background:#005baa;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Light mobile glass, with a separate blue menu control. */
@media(max-width:850px){
 .northern-theme.workspace-page .sidebar{background:linear-gradient(135deg,rgba(255,255,255,.30),rgba(208,237,255,.18));border-color:rgba(255,255,255,.90);box-shadow:inset 0 1px 0 #fff,0 7px 24px #005baa12;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);color:#005baa}
 .northern-theme.workspace-page .sidebar .brand-logo{opacity:0}
 .northern-theme.workspace-page .sidebar .brand::after{content:"";position:absolute;inset:0;background:#005baa;mask:url('/assets/visit-teriberka-logo-white.png') center/contain no-repeat;-webkit-mask:url('/assets/visit-teriberka-logo-white.png') center/contain no-repeat;pointer-events:none}
 .northern-theme.workspace-page .nav-toggle{background:#005baa;border:1px solid #005baa;color:#fff;box-shadow:inset 0 1px 0 #ffffff33,0 3px 10px #005baa24}
 .northern-theme.workspace-page .nav-toggle:hover,.northern-theme.workspace-page .nav-toggle[aria-expanded="true"]{background:#004988;border-color:#004988}
 .northern-theme.workspace-page #navigation a{color:#005baa;background:#ffffff38;border-color:#ffffff66}
 .northern-theme.workspace-page #navigation a.active{background:#005baa;color:#fff;border-color:#005baa;box-shadow:inset 3px 0 #67c6f2,0 3px 10px #005baa1a}
 .northern-theme.workspace-page #navigation a:hover:not(.active){background:#ffffff99;color:#005baa;border-color:#9fcae7}
 .northern-theme.workspace-page .sidebar-account .account-actions{border-color:#005baa33}
 .northern-theme.workspace-page .sidebar-account .button{background:#ffffff55;color:#005baa;border-color:#005baa55}
 .northern-theme.workspace-page .sidebar-account .button:hover{background:#ffffffaa;color:#005baa}
 .northern-theme.workspace-page .sidebar :is(button,a):focus-visible{outline-color:#005baa}
 @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.northern-theme.workspace-page .sidebar{background:#e3f2fc}}
}
@media(max-width:850px) and (prefers-reduced-transparency:reduce){.northern-theme.workspace-page .sidebar{background:#e3f2fc;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* A single navigation surface; account actions live inside its menu. */
.northern-theme .sidebar #navigation{margin-top:36px}
.northern-theme .sidebar-account{margin-top:auto;padding-top:22px}
.northern-theme .sidebar-account .account-actions{display:grid;gap:8px;padding-top:18px;border-top:1px solid #ffffff40;width:100%}
.northern-theme .sidebar-account .button{background:#005baa2e;border-color:#ffffff55;color:#fff;justify-content:center;font-size:12px;min-height:44px}
.northern-theme .sidebar-account .button:hover{background:#005baa55;color:#fff}
@media(max-width:850px){.northern-theme .sidebar #navigation{margin-top:24px}.northern-theme .sidebar-account{display:none;margin:0;padding:0}.northern-theme .nav-toggle[aria-expanded="true"]~.sidebar-account{display:block}.northern-theme .sidebar-account .account-actions{grid-template-columns:1fr 1fr;margin-top:16px;padding-top:16px}.northern-theme .sidebar-account .button{font-size:13px}}

/* Desktop uses the same light glass as the mobile header, without a photo. */
@media(min-width:851px){
 .northern-theme.workspace-page .sidebar{background:linear-gradient(135deg,rgba(255,255,255,.30),rgba(208,237,255,.18));border-color:rgba(255,255,255,.90);box-shadow:inset 0 1px 0 #fff,0 7px 24px #005baa12;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);color:#005baa}
 .northern-theme.workspace-page .sidebar .brand-logo{opacity:0}
 .northern-theme.workspace-page .sidebar .brand::after{content:"";position:absolute;inset:0;background:#005baa;mask:url('/assets/visit-teriberka-logo-white.png') center/contain no-repeat;-webkit-mask:url('/assets/visit-teriberka-logo-white.png') center/contain no-repeat;pointer-events:none}
 .northern-theme.workspace-page #navigation a{color:#005baa;background:#ffffff38;border-color:#ffffff66}
 .northern-theme.workspace-page #navigation a.active{background:#005baa;color:#fff;border-color:#005baa;box-shadow:inset 3px 0 #67c6f2,0 3px 10px #005baa1a}
 .northern-theme.workspace-page #navigation a:hover:not(.active){background:#ffffff99;color:#005baa;border-color:#9fcae7}
 .northern-theme.workspace-page .sidebar-account .account-actions{border-color:#005baa33}
 .northern-theme.workspace-page .sidebar-account .button{background:#ffffff55;color:#005baa;border-color:#005baa55}
 .northern-theme.workspace-page .sidebar-account .button:hover{background:#ffffffaa;color:#005baa}
 .northern-theme.workspace-page .sidebar :is(button,a):focus-visible{outline-color:#005baa}
}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.northern-theme.workspace-page .sidebar{background:#e3f2fc}}
@media(prefers-reduced-transparency:reduce){.northern-theme.workspace-page .sidebar{background:#e3f2fc;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Compact summaries and section cards: keep type sizes and all source notes. */
.northern-theme .finance-stats{gap:10px;margin-bottom:18px}
.northern-theme .finance-stat{padding:12px 14px;gap:6px;border-top-width:3px;border-radius:14px}
.northern-theme .finance-stat>small{line-height:1.45}
.northern-theme .module-grid{gap:12px}
.northern-theme .module-card{min-height:0;padding:16px;border-radius:14px}
.northern-theme .module-icon{margin-bottom:10px}
.northern-theme .module-number{margin-bottom:8px}
.northern-theme .module-status{margin-bottom:6px}
.northern-theme .module-card p{margin:8px 0 12px}
.northern-theme .module-open{padding-top:10px}
@media(min-width:1051px){.northern-theme .finance-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:580px){.northern-theme .finance-stats{gap:8px}.northern-theme .finance-stat{padding:10px;gap:5px}.northern-theme .module-icon{top:16px;right:16px}}

/* Compact field focus; keep a visible keyboard indicator without an outer ring. */
.northern-theme :is(input,select,textarea):focus{outline:none;outline-offset:0}
.northern-theme :is(input,select,textarea):focus-visible{outline:none;box-shadow:inset 0 -2px 0 #005baa}
.northern-theme .finance-date-field{display:flex;align-items:center;position:relative;max-width:100%;width:182px;border:1px solid #96bad7;border-radius:14px;background:#fff;overflow:hidden}
.northern-theme .finance-date-field input{min-width:0;width:100%;border:0;border-radius:0;background:transparent;padding:12px 8px 12px 14px;color:#17324d;font:inherit}
.northern-theme .finance-date-field button{flex:none;display:grid;place-items:center;width:44px;height:44px;min-height:44px;border:0;border-radius:12px;background:transparent;color:#005baa;padding:8px}
.northern-theme .finance-date-field button:hover{background:#e6f5fd}
.northern-theme .finance-date-field button:focus-visible{outline:2px solid #005baa;outline-offset:-4px}
.northern-theme .finance-date-error:empty{display:none}
.northern-theme .finance-date-error{color:#a33428;font-size:12px}
.northern-theme .finance-date-field:has([aria-invalid="true"]){border-color:#a33428}
.northern-theme dialog.finance-calendar{position:fixed;inset:auto;margin:0;padding:12px;width:320px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;background:#f8fcff;color:#17324d;border:1px solid #b8dcef;border-radius:24px;box-shadow:0 16px 50px #005baa26;font:15px/1.5 Mont,Arial,sans-serif}
.northern-theme .finance-calendar::backdrop{background:#005baa05;backdrop-filter:none;-webkit-backdrop-filter:none}
.northern-theme .finance-calendar-head{display:flex;align-items:center;gap:2px;margin-bottom:8px}
.northern-theme .finance-calendar-head h2{flex:1;text-align:center;font-size:17px;text-transform:capitalize;white-space:nowrap;letter-spacing:0}
.northern-theme .finance-calendar button{font:inherit;cursor:pointer;border:0;color:#005baa;background:transparent;box-shadow:none}
.northern-theme .finance-calendar-head button{flex:none;width:28px;height:34px;border-radius:12px;font-size:26px;line-height:1;padding:0}
.northern-theme .finance-calendar-weekdays,.northern-theme .finance-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;text-align:center}
.northern-theme .finance-calendar-weekdays{margin-bottom:4px;font-size:13px;color:#57748b;font-weight:600}
.northern-theme .finance-calendar-days button{width:100%;height:36px;min-height:36px;border-radius:11px;padding:0;font-size:16px;font-weight:600;color:#17324d}
.northern-theme .finance-calendar-days button.outside{color:#748799;font-weight:400}
.northern-theme .finance-calendar button:hover{background:#d5effc}
.northern-theme .finance-calendar-days button.today{box-shadow:inset 0 0 0 1px #67c6f2}
.northern-theme .finance-calendar-days button.selected{background:#005baa;color:white}
.northern-theme .finance-calendar button:focus-visible{outline:2px solid #005baa;outline-offset:-3px;background:#d5effc}
.northern-theme .finance-calendar-days button.selected:focus-visible{outline-color:white;background:#005baa}
.northern-theme .finance-calendar footer{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 0;padding:8px 0 0;border-top:1px solid #d6e9f5;color:#57748b;font-size:11px}
.northern-theme .finance-calendar footer button{min-height:36px;border-radius:11px;background:#e2f3fc;padding:6px 10px;font-size:13px;font-weight:600}
@media(max-width:400px){.northern-theme dialog.finance-calendar{padding:12px}.northern-theme .finance-calendar-head h2{font-size:16px}}

/* Two endpoints, one compact range calendar. */
.northern-theme .finance-range-field{width:326px}
.northern-theme .finance-range-field input{flex:1;width:0;padding:12px 8px;text-align:center;font-size:13px}
.northern-theme .finance-range-field>span{flex:none;color:#57748b}
.northern-theme .finance-calendar-days button.in-range{background:#d5effc;color:#005baa;border-radius:6px}

/* Financial decisions first; provenance stays available without a large banner. */
.northern-theme .finance-stat.stat-expenses{border-top-color:#67c6f2}
.northern-theme .finance-stat.stat-balance{border-top-color:#005baa}
.northern-theme .finance-priorities{margin:22px 0}
.northern-theme .finance-priorities>h2{margin-bottom:12px}
.northern-theme .finance-next-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}
.northern-theme .finance-next{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding:14px 16px;border:1px solid #d1e4f0;border-radius:14px;background:#ffffffb8}
.northern-theme .finance-next.needs-check{background:#fff9ee;border-color:#ecd2a6}
.northern-theme .finance-next h3{font-size:15px;line-height:1.5}
.northern-theme .finance-next p{font-size:13px;color:#526b80;line-height:1.6;margin:6px 0 8px}
.northern-theme .finance-next .button{margin-top:auto;white-space:normal;text-align:left;justify-content:flex-start}
.northern-theme .finance-source-details{border:1px solid #c8e0ef;border-radius:12px;background:#edf7fd;color:#335f7e;margin:0 0 18px;font-size:13px}
.northern-theme .finance-source-details>summary{display:flex;align-items:center;gap:10px;flex-wrap:wrap;list-style:none;cursor:pointer;padding:10px 14px;min-height:44px}
.northern-theme .finance-source-details>summary::-webkit-details-marker{display:none}
.northern-theme .finance-source-details>summary>strong{font-weight:600}
.northern-theme .finance-source-details .source-expand{margin-left:auto;color:#005baa;font-weight:600}
.northern-theme .source-expand::after{content:'⌄';display:inline-block;margin-left:8px}
.northern-theme .finance-source-details[open] .source-expand::after{transform:rotate(180deg)}
.northern-theme .finance-source-details.is-warning{background:#fff4e5;border-color:#e8c58f;color:#8a4b00}
.northern-theme .finance-source-details.is-warning .source-dot{background:#b77317}
.northern-theme .finance-source-content{border-top:1px solid #c8e0ef;padding:12px 14px}
.northern-theme .finance-source-content p{margin:0 0 12px;line-height:1.65}
.northern-theme .finance-booking-summary{display:grid;grid-template-columns:1fr 1fr 2fr;gap:16px;padding:0 0 16px;margin-bottom:16px;border-bottom:1px solid #d7e5f0}
.northern-theme .finance-booking-summary>div{display:flex;flex-direction:column;gap:5px;min-width:0}
.northern-theme .finance-booking-summary span{font-size:13px;color:#526b80}
.northern-theme .finance-booking-summary strong{font-size:22px;line-height:1.35;font-weight:600}
.northern-theme .finance-booking-summary small{font-size:12px;color:#526b80;line-height:1.5}
.northern-theme .finance-explanation{margin-top:14px;font-size:13px;color:#526b80}
.northern-theme .finance-explanation>summary{cursor:pointer;padding:10px 0;min-height:44px;color:#005baa;font-weight:600}
.northern-theme .finance-explanation .note{margin:2px 0 10px}
@media(max-width:580px){
 .northern-theme .finance-next-grid{grid-template-columns:1fr}
 .northern-theme .finance-next{padding:12px 14px}
 .northern-theme .finance-booking-summary{grid-template-columns:1fr 1fr;gap:12px}
 .northern-theme .finance-booking-summary>div:last-child{grid-column:1/-1}
 .northern-theme .finance-source-details>summary{gap:6px 8px}
}

/* Entity selector belongs to the bank scope; CRM bookings remain cross-entity. */
.northern-theme #finance-bank-entity{font:inherit;color:#142e48;background:#fff;border:1px solid #97b6ce;border-radius:14px;padding:10px 14px;min-height:44px;max-width:100%;min-width:0}
