:root{font-family:Segoe UI,system-ui,sans-serif;color:#1a1a1a;background:#edfcff}*{box-sizing:border-box}body{margin:0}html.refresh-busy,html.refresh-busy body{cursor:wait}html.refresh-busy body:after{content:"";position:fixed;top:0;right:0;bottom:0;left:0;z-index:2147483646;background:#e6e6e6;cursor:wait;pointer-events:auto}html.refresh-busy body:before{content:"please wait... processing";position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2147483647;padding:.85rem 1.4rem;background:#fff;color:#1a1a1a;border:1px solid #94a3b8;box-shadow:0 4px 16px #0000001f;font-size:1rem;white-space:nowrap;cursor:wait;pointer-events:none}.lock-shell{min-height:100vh;height:100vh;display:flex;flex-direction:column;overflow:hidden}.lock-shell .app{flex:1;min-height:0;height:auto}.centrale-status-bar{flex:0 0 auto;display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:.5rem 1rem;min-height:2.35rem;padding:.35rem .85rem;font-size:.8rem;color:#444;background:#ffffffa6;border-bottom:1px solid #e3e3e6;box-sizing:border-box}.centrale-status-left{display:flex;align-items:center;gap:.5rem;min-width:0;flex:0 1 auto}.workspace-switcher{position:relative}.workspace-switcher-trigger{display:inline-flex;align-items:center;gap:.35rem;font:inherit;font-size:.8rem;padding:.2rem .45rem;border:1px solid #c5c5c8;background:#edfcff;color:#1a1a1a;cursor:pointer;min-width:5.5rem;border-radius:4px}.actions-menu .workspace-switcher-trigger{min-width:11rem}.workspace-switcher-chevron{line-height:1;opacity:.75}.workspace-switcher-label{font-weight:600}.workspace-switcher-menu{position:absolute;top:calc(100% + 2px);left:0;z-index:40;margin:0;padding:.2rem 0;list-style:none;min-width:100%;background:#edfcff;border:1px solid #c5c5c8;border-radius:4px;box-shadow:0 4px 12px #00000014;overflow:hidden}.actions-menu .workspace-switcher-menu{min-width:11rem}.workspace-switcher-menu button{display:block;width:100%;text-align:left;font:inherit;font-size:.8rem;padding:.35rem .65rem;border:0;background:transparent;cursor:pointer}.workspace-switcher-menu button:hover,.workspace-switcher-menu button.is-selected,.workspace-switcher-menu a:hover{background:#c1f4ff}.workspace-switcher-menu button:disabled{opacity:.55;cursor:default}.workspace-switcher-link{display:block;width:100%;text-align:left;font:inherit;font-size:.8rem;padding:.35rem .65rem;color:inherit;text-decoration:none}.workspace-switcher-busy{color:#666;font-size:.75rem}.central-wins-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:2000;display:flex;align-items:center;justify-content:center;padding:1rem;background:#0f172a73}.central-wins-dialog{width:min(92vw,28rem);padding:1.25rem 1.35rem;background:#fff;border:1px solid #cbd5e1;box-shadow:0 16px 36px #0f172a33}.central-wins-dialog p{margin:0 0 .75rem;line-height:1.45;color:#0f172a}.central-wins-path{font-size:.8rem;color:#475569}.central-wins-ok{font:inherit;cursor:pointer;padding:.4rem 1.1rem;border:1px solid #334155;background:#0f172a;color:#fff}.sync-notify-row{display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-end;gap:.35rem;min-height:1.65rem;min-width:4.5rem;flex:1 1 auto;overflow:hidden}.sync-notify-btn{font:inherit;cursor:default;padding:.3rem .75rem;border:1px solid #f472b6;border-radius:999px;background:#fbcfe8;color:#831843;box-shadow:none}.app{display:grid;grid-template-columns:minmax(280px,14vw) 1fr;height:100vh;overflow:hidden}.app.terms-app{grid-template-columns:10% 1fr}.app.terms-app .sidebar{padding:.5rem}.sidebar{border-right:1px solid #e3e3e6;background:#fff;padding:1rem;overflow-y:auto;display:flex;flex-direction:column;gap:.35rem}.sidebar-stack,.fetch-form,.winbar,.refresh-status,.refresh-status-line{display:flex;flex-direction:column;gap:.35rem;margin:0}.fetch-form{font-size:.75rem}.fetch-form--person-scope{background:#fbcfe8;padding:.55rem .65rem .65rem;border-radius:8px;border:1px solid #f9a8d4}.sidebar-field{display:flex;flex-direction:column;gap:.15rem;color:#475569;font-size:.75rem;font-weight:400}.sidebar-field-legend{display:block;min-height:1.2em;line-height:1.2;font-size:.75rem;font-weight:400;color:#475569}.fetch-form input[type=text],.fetch-form input[type=date]{width:100%;height:2.35rem;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:4px;padding:0 .4rem;font:inherit;font-weight:400;color:#0f172a;background:#fff}.sidebar-knob{width:100%;height:2.35rem;box-sizing:border-box;margin:0;padding:0 .75rem;border:1px solid #cbd5e1;border-radius:6px;font-family:inherit;font-size:.8rem;font-weight:700;line-height:1.2;color:#0f172a;background:#c1f4ff;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;text-align:center;cursor:pointer}.sidebar-knob:hover:not(:disabled),a.sidebar-knob:hover{background:#eef2ff;border-color:#2563eb}.sidebar-knob:disabled{cursor:progress;opacity:.7}.fetch-form label.checkbox{flex-direction:row;align-items:center;gap:.4rem}.account-list{margin-bottom:1rem;font-size:.75rem}.account-list-heading{margin-bottom:.35rem;color:#475569;font-weight:600}.account-bank-group{margin-bottom:.5rem}.account-bank-heading{margin-bottom:.2rem;color:#64748b;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em}.account-item-inactive{opacity:.55;cursor:not-allowed}.account-item{display:flex;flex-direction:row;align-items:flex-start;gap:.4rem;margin-bottom:.25rem;cursor:pointer}.account-label{display:flex;flex-direction:column;line-height:1.3;overflow-wrap:anywhere}.account-balance{margin-top:.1rem;color:#334155;font-size:.72rem}.consent-banner{margin-bottom:1rem;padding:.5rem;border:1px solid #fbbf24;border-radius:6px;background:#fffbeb;font-size:.75rem}.consent-banner a{word-break:break-all}.refresh{margin-bottom:0}.refresh-status{font-size:.75rem;color:#475569;line-height:1.35;word-break:break-word}.refresh-person-newyear{display:flex;align-items:center;gap:.4rem;min-height:2.35rem;font-size:.75rem;font-weight:400;color:#334155;cursor:pointer}.refresh-status-note{color:#64748b}.win-hint{font-size:.75rem;color:#64748b;line-height:1.5}.win-hint kbd{background:#f1f5f9;border:1px solid #cbd5e1;border-radius:4px;padding:0 .3rem;font-size:.7rem;margin:0 .1rem;font-family:inherit}.content{padding:1.5rem 2rem;overflow:auto;min-height:0;min-width:0}table{border-collapse:collapse;width:100%;font-size:.75rem;background:#fbfdef}th,td{border:1px solid #e3e3e6;padding:.35rem .5rem;text-align:left}th{background:#ffecbc}.s-scroll{max-height:calc(100vh - 3rem);overflow:auto}.terms-content{display:flex;flex-direction:column;padding:.5rem .75rem;overflow:hidden;min-height:0}.terms-scroll{flex:1 1 auto;min-height:0;overflow:auto}.terms-panels{display:flex;flex-direction:column;min-height:calc(100vh - 1.5rem);width:max-content;min-width:100%;gap:.35rem}.terms-panel{display:flex;flex-direction:column;min-height:0}.terms-panel-general{flex:8 1 auto;min-height:calc((100vh - 1.5rem)*.8)}.terms-panel-personal{flex:2 1 auto;min-height:calc((100vh - 1.5rem)/5)}.terms-panel-label{flex:0 0 auto;margin:0 0 .2rem;font-size:.7rem;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.04em}.s-table-terms{width:max-content;min-width:100%;table-layout:fixed}.s-table-terms th,.s-table-terms td{vertical-align:top;white-space:nowrap}.s-table-terms th{font-size:.65rem;line-height:1.2}.s-table-terms td{height:100%}.app-heading{margin:0;font-size:clamp(.72rem,2.1vw,1.1rem);font-weight:700;color:#0f172a;white-space:nowrap;line-height:1.1}.totals-table{width:100%}.matrix-table{width:max-content;min-width:100%}.totals-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.totals-table .cat{white-space:normal;overflow-wrap:anywhere;font-size:.7rem}.totals-table tr.banksaldo-row td{font-weight:700}.p-panel{min-width:min-content}.p-heading{margin-bottom:1rem}.p-table{table-layout:auto;width:max-content;min-width:100%}.p-table col.col-amount,.p-table col.col-type{min-width:50px;width:5vw}.p-table col.col-name,.p-table col.col-iban{min-width:100px;width:10vw}.p-table col.col-date{min-width:50px;width:5vw}.p-table col.col-category{min-width:20px;width:2vw}.p-table th,.p-table td{white-space:nowrap}.p-table th.desc,.p-table td.desc{white-space:nowrap;width:max-content}.p-table td:not(.desc){overflow:hidden;text-overflow:ellipsis}.p-table td.desc .editable{display:inline;white-space:nowrap}td.clickable{cursor:pointer}td.clickable:hover{background:#eef2ff}.totals-table tr.active td{background:#2563eb;color:#fff}.terms{display:flex;flex-direction:column;gap:2px}.term-row{display:flex;align-items:center;gap:2px;width:100%}.term-input{box-sizing:border-box;border:1px solid #e3e3e6;border-radius:4px;padding:2px 5px;font:inherit;font-size:.8rem;width:max-content;min-width:100%;max-width:none;field-sizing:content}.term-row .term-input{min-width:0;flex:1;width:auto}.term-delete{flex:0 0 auto;width:1.4rem;height:1.4rem;padding:0;border:1px solid #e3e3e6;border-radius:4px;background:#fff;color:#64748b;cursor:pointer;line-height:1;font-size:.95rem}.term-delete:hover{color:#b91c1c;border-color:#fca5a5}.term-input.add{border-style:dashed;color:#475569}.num.neg{color:#ec2323}tr.modified td:not(.amount){color:#2563eb}.p-table td.category-modified,.p-table td.category-modified .editable{color:#0f172a;font-weight:700}.editable{display:block;min-height:1em;cursor:text;border-radius:3px}.editable:hover{background:#eef2ff}.cell-edit{width:100%;font:inherit;font-size:.8rem;box-sizing:border-box;border:1px solid #2563eb;border-radius:4px;padding:2px 4px}textarea.cell-edit{min-height:4em;resize:vertical}.error{color:#b91c1c}.editable.assign-term{cursor:pointer}.term-source{cursor:context-menu}.term-context-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000}.term-context-menu{position:fixed;z-index:1001;min-width:12rem;max-width:min(20rem,90vw);max-height:min(70vh,28rem);display:flex;flex-direction:column;padding:.35rem;border-radius:8px;background:#fff;border:1px solid #cbd5e1;box-shadow:0 12px 28px #0f172a2e}.term-context-title{width:100%;box-sizing:border-box;margin:0 0 .3rem;padding:.4rem .5rem;border:1px solid #94a3b8;border-radius:5px;font:inherit;font-weight:600;color:#0f172a;background:#f8fafc}.term-context-table-wrap{overflow:auto;max-height:min(55vh,22rem);margin-bottom:.2rem}.term-context-table{width:100%;border-collapse:collapse;font-size:.82rem}.term-context-table th,.term-context-table td{padding:.2rem .35rem;text-align:left;vertical-align:middle}.term-context-cat-head{font-weight:600;color:#64748b;font-size:.72rem;text-transform:uppercase;letter-spacing:.03em}.term-context-gp-head{width:1.6rem;text-align:center!important;font-weight:700;color:#334155}.term-context-cat{color:#0f172a;white-space:nowrap}.term-context-gp{width:1.6rem;text-align:center!important}.term-context-gp input[type=checkbox]{cursor:pointer;width:.95rem;height:.95rem}.term-context-gp input[type=checkbox]:disabled{cursor:default;opacity:.5}.term-context-items{overflow-y:auto;display:flex;flex-direction:column;gap:.05rem}.term-context-item{width:100%;text-align:left;padding:.28rem .5rem;border:1px solid transparent;border-radius:4px;background:transparent;cursor:pointer;font:inherit;font-size:.82rem;line-height:1.25;color:#0f172a}.term-context-item:hover:not(:disabled){background:#eef2ff}.term-context-item:disabled{opacity:.5;cursor:default}.term-context-cancel{margin-top:.2rem;border-top:1px solid #e2e8f0;border-radius:0 0 4px 4px;color:#64748b;font-style:italic}.term-assign-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1000;display:flex;align-items:flex-start;justify-content:center;padding:1.5vh 1rem 1rem;overflow-y:auto;background:#0f172a73}.term-assign-dialog{width:min(96vw,56rem);max-height:none;overflow:visible;padding:1.25rem;margin-bottom:1rem;border-radius:10px;background:#fff;border:1px solid #cbd5e1;box-shadow:0 20px 40px #0f172a2e}.term-assign-dialog h2{margin:0 0 .5rem;font-size:1.1rem}.term-assign-hint,.term-assign-target{margin:0 0 .75rem;color:#64748b;font-size:.8rem;line-height:1.4}.term-assign-field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.85rem;font-size:.85rem;font-weight:600;color:#334155}.term-assign-field input[type=text],.term-assign-field textarea{font:inherit;font-weight:400;padding:.45rem .55rem;border:1px solid #cbd5e1;border-radius:6px;width:100%;box-sizing:border-box}.term-assign-field textarea{resize:vertical;min-height:2.75rem;line-height:1.4;white-space:pre-wrap;word-break:break-word}.term-assign-field.checkbox{flex-direction:row;align-items:center;font-weight:500}.term-assign-label{margin-bottom:.35rem;font-size:.85rem;font-weight:600;color:#334155}.term-assign-category-list{display:flex;flex-direction:column;gap:.05rem;margin-bottom:.65rem;padding:.2rem;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc}.term-assign-category{width:100%;text-align:left;padding:.2rem .5rem;border:1px solid transparent;border-radius:4px;background:transparent;cursor:pointer;font:inherit;font-size:.82rem;line-height:1.25;color:#0f172a}.term-assign-category:hover{background:#eef2ff}.term-assign-category.selected{background:#dbeafe;border-color:#2563eb;font-weight:600}.term-assign-actions{display:flex;gap:.5rem;margin-top:.5rem}.term-assign-actions .refresh-button{width:auto;flex:1}.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:1.5rem;background:radial-gradient(ellipse at 20% 0%,rgba(56,189,248,.18),transparent 50%),radial-gradient(ellipse at 80% 100%,rgba(14,116,144,.12),transparent 45%),#edfcff}.login-card{width:min(22rem,100%);display:flex;flex-direction:column;gap:.75rem;padding:1.5rem 1.35rem;background:#ffffffe6;border:1px solid #c5d4dc}.login-title{margin:0;font-size:1.45rem;font-weight:650;letter-spacing:-.02em}.login-muted{margin:0;color:#64748b;font-size:.9rem}.login-label{display:flex;flex-direction:column;gap:.3rem;font-size:.82rem;color:#334155}.login-input{font:inherit;font-size:.95rem;padding:.45rem .55rem;border:1px solid #94a3b8;background:#fff}.login-error{margin:0;color:#b91c1c;font-size:.85rem}.login-submit{margin-top:.35rem;font:inherit;font-weight:600;padding:.55rem .75rem;border:1px solid #0e7490;background:#0e7490;color:#fff;cursor:pointer}.login-submit:disabled{opacity:.7;cursor:wait}.auth-user-label{color:#475569;font-size:.8rem}.logout-btn{font:inherit;font-size:.8rem;padding:.2rem .5rem;border:1px solid #c5c5c8;background:#fff;color:#1a1a1a;cursor:pointer;border-radius:4px}
