/* EVENT/IF R42.13 dedicated finance workspace */
:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#214132}*{box-sizing:border-box}body{margin:0;background:#f5f7f3;color:#214132;min-height:100vh}.finance-shell{max-width:1320px;margin:auto;padding:0 24px 32px}.finance-header{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:22px 0;border-bottom:1px solid #dce6dc}.finance-brand{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-weight:750}.finance-brand a{font-size:16px;letter-spacing:.08em;color:#254f3e;text-decoration:none}.finance-brand span{font-size:13px;color:#6a8475}.finance-header nav{display:flex;gap:14px;flex-wrap:wrap}.finance-header nav a,.finance-footer a{color:#35694e;text-decoration:none;font-size:13px;font-weight:700}.finance-hero{display:flex;gap:20px;justify-content:space-between;align-items:center;padding:27px 0 20px}.finance-kicker{text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.13em;color:#6a947f}.finance-hero h1{font:500 clamp(28px,4vw,42px) Georgia,serif;margin:6px 0 10px}.finance-hero p{color:#647d6d;font-size:14px;max-width:730px;line-height:1.7;margin:0}.finance-primary,.finance-secondary,.finance-danger{border-radius:10px;padding:12px 16px;cursor:pointer;font:650 13px system-ui}.finance-primary{border:1px solid #315c45;background:#315c45;color:#fff}.finance-secondary{background:#fff;color:#315c45;border:1px solid #b7cbbd}.finance-danger{background:#fffaf8;color:#a34d37;border:1px solid #e1beae}.finance-toolbar{display:grid;grid-template-columns:1fr minmax(210px,.85fr);gap:16px;align-items:stretch}.finance-modes{display:grid;grid-template-columns:1fr 1fr;gap:8px}.finance-modes button{border:1px solid #dbe5d9;background:#fff;border-radius:15px;text-align:left;padding:16px;cursor:pointer;color:#375843}.finance-modes button[aria-pressed=true]{border:2px solid #3d785b;background:#edf5ef}.finance-modes strong,.finance-modes small{display:block}.finance-modes small{font-size:11px;color:#708878;margin-top:5px}.finance-pick{background:#fff;border:1px solid #dbe5d9;border-radius:15px;padding:11px 16px;display:flex;flex-direction:column;justify-content:center;gap:6px}.finance-pick label{font-size:12px;font-weight:750;color:#526d5c}.finance-pick select,.finance-manage input,.finance-manage select,.finance-content input,.finance-content textarea{border:1px solid #cbd9cd;background:#fff;border-radius:8px;padding:10px;min-width:0;width:100%;font:inherit;color:#254635}.finance-manage{margin-top:14px;padding:18px 20px;background:#fff;border:1px solid #dce5dc;border-radius:16px;display:flex;align-items:end;justify-content:space-between;gap:14px;flex-wrap:wrap}.finance-manage .ef-field{flex:1;min-width:160px;max-width:330px}.finance-manage label,.finance-content .ef-field label{display:block;font-size:12px;font-weight:720;color:#587361;margin:0 0 6px}.finance-manage .finance-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.finance-manage .finance-actions select{max-width:225px}.finance-manage .ef-help{font-size:12px;color:#6e8374;max-width:100%;margin:0}.finance-viewtabs{display:flex;gap:8px;margin-top:20px;border-bottom:1px solid #d9e4db}.finance-viewtabs button{border:0;background:none;border-bottom:3px solid transparent;padding:12px 18px;cursor:pointer;font:700 13px system-ui;color:#64806d}.finance-viewtabs button[aria-current=page]{color:#295940;border-color:#3f805d}.finance-content{padding:14px 0 30px;min-height:300px}.finance-content .ops-head h2{font-family:Georgia,serif;font-weight:500;color:#254635}.finance-content .ops-tabs,.finance-content [data-smart-open]{display:none!important}.finance-content .ops-settings{background:#fff;border:1px solid #dfe7de;border-radius:14px;padding:15px}.finance-content .ops-table{min-width:800px}.finance-content .ops-scroller{max-width:100%;overflow:auto}.finance-content .ops-table input{min-width:95px}.finance-content .ops-table input[type=number]{min-width:95px}.finance-content .ops-table input[data-line=name]{min-width:160px}.finance-paypanel{max-width:850px;background:#fff;border:1px solid #dce5dc;border-radius:16px;padding:22px;display:grid;gap:14px}.finance-paypanel h2{font:500 26px Georgia,serif;margin:0}.finance-paypanel p{font-size:13px;color:#66816b;line-height:1.7;margin:0}.finance-paypanel textarea{min-height:130px;resize:vertical}.finance-footer{display:flex;justify-content:space-between;border-top:1px solid #dbe5dc;padding:22px 0;color:#748978;font-size:12px}#ef-notice:not(:empty){padding:12px 15px;margin:12px 0;background:#edf5ee;border:1px solid #c9e1cd;border-radius:10px;color:#2b6544;font:600 13px system-ui}#ef-notice[data-error=true]{background:#fff3ed;color:#8b3c24;border-color:#efc7b4}.finance-blank{padding:35px;text-align:center;background:#fff;border:1px solid #dce5dc;border-radius:15px;color:#5b7765}.finance-manage .ef-chip{padding:7px 10px;border-radius:7px;background:#eff5ef;color:#356149;font-size:12px;font-weight:700}.finance-manage .ef-linknote{max-width:460px;font-size:11px;color:#607968;line-height:1.6}.finance-shell .pro-btn{cursor:pointer}.finance-shell .pfd{max-width:none}
@media(max-width:760px){.finance-shell{padding:0 13px 26px}.finance-header{padding:16px 0}.finance-hero{align-items:stretch;flex-direction:column}.finance-toolbar{grid-template-columns:1fr}.finance-modes button{padding:11px}.finance-manage{align-items:stretch}.finance-manage .ef-field{max-width:none;width:100%}.finance-manage .finance-actions{width:100%;flex-wrap:wrap}.finance-manage .finance-actions select{max-width:none}.finance-viewtabs button{flex:1}.finance-content{padding-top:8px}.finance-paypanel{padding:16px}.finance-shell .ops-settings{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.finance-header,.finance-hero button,.finance-toolbar,.finance-manage,.finance-viewtabs,.finance-footer,#ef-notice,.finance-content .ops-actions{display:none!important}.finance-shell{max-width:none}.finance-content{padding:0}.finance-hero{padding:0}.finance-content .ops-scroller{overflow:visible}}

/* R43.4 — finance surfaces obey global personalization instead of fixed forest colors. */
.finance-brand a{display:inline-flex;align-items:center;gap:9px}
html[data-pofka-theme]:not([data-pofka-theme="forest"]) .finance-shell{color:var(--pofka-ink)}
html[data-pofka-theme]:not([data-pofka-theme="forest"]) .finance-brand a,
html[data-pofka-theme]:not([data-pofka-theme="forest"]) .finance-header nav a,
html[data-pofka-theme]:not([data-pofka-theme="forest"]) .finance-footer a{color:var(--pofka-accent)}
html[data-pofka-theme]:not([data-pofka-theme="forest"]) .finance-shell :is(.finance-hero h1,.finance-brand,.finance-paypanel h2,.finance-content .ops-head h2){color:var(--pofka-ink)}
html[data-pofka-theme]:not([data-pofka-theme="forest"]) .finance-shell :is(.finance-modes button,.finance-pick,.finance-manage,.finance-paypanel,.finance-blank){background:var(--pofka-paper);color:var(--pofka-ink);border-color:color-mix(in srgb,var(--pofka-accent),transparent 66%)}
html[data-pofka-theme]:not([data-pofka-theme="forest"]) .finance-shell :is(.finance-primary,.finance-secondary){background:var(--pofka-accent);border-color:var(--pofka-accent);color:var(--pofka-bg)}
html[data-pofka-theme="dark"] .finance-shell :is(.finance-hero p,.finance-paypanel p,.finance-manage .ef-help,.finance-paypanel label,.finance-pick label,.finance-footer,.finance-modes small){color:#c5d8cf}
html[data-pofka-theme="dark"] .finance-shell :is(.finance-content input,.finance-content textarea,.finance-manage input,.finance-manage select,.finance-pick select){background:#f7faf7;color:#193d2d}
html[data-pofka-theme="dark"] .finance-shell .finance-secondary{color:#122a22}
html[data-pofka-theme="ocean"] body.pj-branded-background,
html[data-pofka-theme="rose"] body.pj-branded-background{background-image:linear-gradient(#ffffffd9,#ffffffd9),var(--pj-custom-background)!important;background-size:cover!important;background-position:center!important}

/* R43.5: meet readable contrast in dark-mode finance labels and large dashboard headings. */
html[data-pofka-theme="dark"] .finance-shell .finance-manage label,
html[data-pofka-theme="dark"] .finance-shell .finance-content label,
html[data-pofka-theme="dark"] .finance-shell .finance-pick label {color:#e4f0e9!important}
html[data-pofka-theme="dark"] .finance-shell .pfd h3,
html[data-pofka-theme="dark"] .finance-shell .finance-content .pfd h3 {color:#e9f5ef!important}

/* N08: this control panel is paper-white in every theme. Its labels must use
   the foreground of that surface, independently of the surrounding dark page. */
.finance-shell .finance-content .ops-settings{background:#fff;color:#213f30}
html[data-pofka-theme] .finance-shell .finance-content .ops-settings label{color:#294b38!important}
.finance-shell{--finance-muted:#435f4e}
html[data-pofka-theme="dark"] .finance-shell{--finance-muted:#c5d8cf}
.finance-shell :is(.finance-kicker,.finance-brand>span,.finance-hero p,.finance-modes small,.finance-manage .ef-help,.finance-manage .ef-linknote,.finance-paypanel p,.finance-footer,.finance-viewtabs button,.pfd-eyebrow,.pfd-hint){color:var(--finance-muted)}
.finance-shell :is(.pfd-metric small,.pfd-donut small,.pfd-legend p,.pfd-empty,.pfd-note){color:#435f4e}
.finance-shell .finance-content :is(input,textarea)::placeholder{color:#52685a;opacity:1}
