@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.sr-only{clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.static{position:static}.grid{display:grid}.hidden{display:none}.rounded{border-radius:.25rem}.border{border-style:var(--tw-border-style);border-width:1px}}:root{--color-brand-primary:#1e2f46;--color-brand-secondary:#d52f39;--color-background:#f5f7fa;--color-surface:#fff;--color-surface-subtle:#eef2f6;--color-text-primary:#182230;--color-text-secondary:#596579;--color-text-inverse:#fff;--color-border:#dce2e9;--color-focus:#3976b8;--color-overlay:#0f172a73;--color-success:#217a4b;--color-warning:#a85d00;--color-danger:#b4232c;--color-information:#2468a2;--font-sans:Inter, "Segoe UI", Arial, sans-serif;--space-xs:.25rem;--space-sm:.5rem;--space-md:1rem;--space-lg:1.25rem;--space-xl:1.5rem;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--shadow-card:0 1px 2px #0f172a0a;--sidebar-expanded:13rem;--sidebar-collapsed:4rem;--topbar-height:3.5rem}*{box-sizing:border-box}html{background:var(--color-background)}body{background:var(--color-background);color:var(--color-text-primary);font-family:var(--font-sans);margin:0;font-size:.875rem;line-height:1.45}button,input{font:inherit}button{cursor:pointer}:focus-visible{outline:3px solid var(--color-focus);outline-offset:2px}.platform-shell{min-height:100vh}.platform-main{margin-left:var(--sidebar-expanded);transition:margin-left .16s}.platform-main[data-sidebar-collapsed=true]{margin-left:var(--sidebar-collapsed)}.page-content{max-width:120rem;margin:0 auto;padding:1.5rem 1.75rem 2rem}.page-content-wide{max-width:none;margin:0;padding:.875rem 1rem 2rem}.sidebar{background:var(--color-brand-primary);color:var(--color-text-inverse);height:100vh;width:var(--sidebar-expanded);z-index:30;flex-direction:column;transition:width .16s,transform .16s;display:flex;position:fixed;top:0;left:0}.sidebar[data-collapsed=true]{width:var(--sidebar-collapsed)}.sidebar-brand{height:var(--topbar-height);border-bottom:1px solid #ffffff1a;align-items:center;padding:0 .875rem;text-decoration:none;display:flex;overflow:hidden}.sidebar-logo-full{width:10.75rem;line-height:0;display:block}.sidebar-logo-full img{object-fit:contain;object-position:left center;width:100%;height:auto;max-height:2.5rem}.sidebar-logo-mark{width:2rem;height:2rem;display:none;position:relative;overflow:hidden}.sidebar-logo-mark img{object-fit:contain;width:6.25rem;max-width:none;height:2rem;position:absolute;top:0;left:0}.sidebar[data-collapsed=true] .sidebar-logo-full,.sidebar[data-collapsed=true] .nav-label{display:none}.sidebar[data-collapsed=true] .sidebar-logo-mark{display:block}.sidebar-nav{flex:1;padding:.75rem .625rem;overflow-y:auto}.nav-list{gap:.125rem;margin:0;padding:0;list-style:none;display:grid}.nav-item{min-width:0;position:relative}.nav-parent-row{align-items:center;display:flex;position:relative}.nav-parent-row .nav-link{flex:1;min-width:0}.nav-expand{border-radius:var(--radius-sm);color:#ffffffa6;background:0 0;border:0;justify-content:center;align-items:center;width:1.5rem;height:1.75rem;padding:0;display:inline-flex;position:absolute;right:.375rem}.nav-expand:hover{color:var(--color-text-inverse);background:#ffffff14}.nav-expand svg{width:.75rem;height:.75rem;transition:transform .14s}.nav-expand[aria-expanded=true] svg{transform:rotate(90deg)}.nav-item-parent .nav-link{padding-right:2.25rem}.nav-submenu{opacity:0;gap:.0625rem;max-height:0;margin:.125rem 0 .375rem;padding:0;list-style:none;transition:max-height .18s,opacity .14s;display:grid;overflow:hidden}.nav-submenu[data-open=true]{opacity:1;max-height:24rem}.nav-sublink{color:#ffffffa6;text-overflow:ellipsis;white-space:nowrap;border-left:1px solid #ffffff2e;margin-left:1.125rem;padding:.375rem .5rem .375rem 1.125rem;font-size:.71875rem;text-decoration:none;display:block;overflow:hidden}.nav-sublink:hover{color:var(--color-text-inverse)}.nav-sublink[aria-current=page]{border-left-color:var(--color-brand-secondary);border-radius:0 var(--radius-sm) var(--radius-sm) 0;box-shadow:inset 2px 0 0 var(--color-brand-secondary);color:var(--color-text-inverse);background:#ffffff1a;font-weight:700}.nav-link{border-radius:var(--radius-md);color:#ffffffbf;align-items:center;gap:.625rem;min-height:2.375rem;padding:.5rem .625rem;font-size:.8125rem;text-decoration:none;transition:background .12s,color .12s;display:flex}.nav-link svg{flex:none;width:1rem;height:1rem}.nav-link:hover{color:var(--color-text-inverse);background:#ffffff14}.nav-link[aria-current=page]{color:var(--color-text-inverse);background:#ffffff24}.sidebar-footer{border-top:1px solid #ffffff1a;padding:.625rem}.sidebar-admin{border-top:1px solid #ffffff1a;padding:.5rem}.sidebar-toggle{border-radius:var(--radius-md);color:inherit;background:0 0;border:0;align-items:center;gap:.625rem;width:100%;min-height:2.375rem;padding:.5rem .625rem;font-size:.8125rem;display:flex}.sidebar-toggle:hover{background:#ffffff14}.topbar{background:var(--color-surface);border-bottom:1px solid var(--color-border);height:var(--topbar-height);z-index:20;align-items:center;gap:.75rem;padding:0 1.25rem;display:flex;position:sticky;top:0}.mobile-menu-button{display:none}.breadcrumb{color:var(--color-text-primary);min-width:8rem;font-size:.75rem;font-weight:600}.topbar-search{flex:1;max-width:24rem;position:relative}.topbar-search svg{color:var(--color-text-secondary);width:.875rem;height:.875rem;position:absolute;top:50%;left:.625rem;transform:translateY(-50%)}.topbar-search input{background:var(--color-background);border:1px solid var(--color-border);border-radius:var(--radius-sm);width:100%;min-height:2rem;padding:.375rem .75rem .375rem 2rem;font-size:.75rem}.topbar-actions{align-items:center;gap:var(--space-sm);margin-left:auto;display:flex}.icon-button,.assistant-button,.profile-button{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-primary);justify-content:center;align-items:center;gap:.375rem;min-height:2rem;padding:0 .625rem;font-size:.75rem;display:inline-flex}.user-menu{position:relative}.user-menu-popover{border:1px solid var(--color-border);z-index:30;background:#fff;border-radius:.45rem;min-width:13rem;padding:.45rem;position:absolute;top:calc(100% + .4rem);right:0;box-shadow:0 .75rem 2rem #1e2f4629}.user-menu-popover>div{border-bottom:1px solid var(--color-border);flex-direction:column;padding:.45rem;display:flex}.user-menu-popover strong{font-size:.7rem}.user-menu-popover span{color:var(--color-text-secondary);margin-top:.15rem;font-size:.56rem}.user-menu-popover button{color:var(--color-brand-secondary);background:0 0;border:0;border-radius:.3rem;align-items:center;gap:.4rem;width:100%;min-height:2.1rem;padding:.45rem;font-size:.68rem;display:flex}.user-menu-popover button:hover{background:var(--color-surface-subtle)}.auth-state-page{background:#edf1f6;justify-content:center;align-items:center;min-height:100svh;padding:1rem;display:flex}.auth-state-page section{border:1px solid var(--color-border);text-align:center;background:#fff;border-radius:.65rem;max-width:28rem;padding:2rem}.auth-state-page section>svg{color:var(--color-brand-secondary);width:2rem;height:2rem}.auth-state-page h1{color:var(--color-brand-primary)}.auth-state-page p{color:var(--color-text-secondary);font-size:.75rem;line-height:1.6}.auth-state-page section>div{justify-content:center;gap:.5rem;display:flex}.auth-state-page a,.auth-state-page button{background:var(--color-brand-primary);color:#fff;border:0;border-radius:.35rem;padding:.65rem .8rem;font-size:.7rem;display:inline-flex}.sr-only{clip:rect(0, 0, 0, 0);clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.icon-button{min-width:2rem;padding:0}.icon-button svg,.assistant-button svg{width:.9375rem;height:.9375rem}.profile-avatar{background:var(--color-surface-subtle);border-radius:50%;justify-content:center;align-items:center;width:1.375rem;height:1.375rem;display:inline-flex}.ai-drawer-backdrop{z-index:49;background:#0f172a3d;border:0;padding:0;position:fixed;inset:0}.ai-drawer{background:var(--color-surface);border-left:1px solid var(--color-border);z-index:50;flex-direction:column;width:min(30rem,100vw - 2rem);height:100vh;animation:.18s ease-out ai-drawer-enter;display:flex;position:fixed;top:0;right:0;box-shadow:-18px 0 48px #0f172a24}.ai-drawer-header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;min-height:4.25rem;padding:.75rem 1rem;display:flex}.ai-drawer-brand{align-items:center;gap:.75rem;display:flex}.ai-drawer-brand>span{background:var(--color-brand-primary);border-radius:var(--radius-md);color:#fff;justify-content:center;align-items:center;width:2.25rem;height:2.25rem;display:inline-flex}.ai-drawer-brand svg{width:1.1rem;height:1.1rem}.ai-drawer-brand p{color:var(--color-brand-secondary);letter-spacing:.08em;text-transform:uppercase;margin:0;font-size:.625rem;font-weight:800}.ai-drawer-brand h2{margin:.05rem 0 0;font-size:1rem}.ai-drawer-header>button{border-radius:var(--radius-sm);color:var(--color-text-secondary);background:0 0;border:1px solid #0000;justify-content:center;align-items:center;width:2rem;height:2rem;padding:0;display:inline-flex}.ai-drawer-header>button:hover{background:var(--color-surface-subtle);border-color:var(--color-border);color:var(--color-text-primary)}.ai-drawer-header>button svg{width:1rem;height:1rem}.ai-drawer-context{background:var(--color-surface-subtle);border:1px solid var(--color-border);border-radius:var(--radius-md);grid-template-columns:auto 1fr auto;align-items:center;gap:.625rem;margin:1rem 1rem 0;padding:.7rem .75rem;display:grid}.ai-drawer-context>svg{color:var(--color-brand-primary);width:1rem;height:1rem}.ai-drawer-context div{flex-direction:column;display:flex}.ai-drawer-context span{color:var(--color-text-secondary);font-size:.625rem}.ai-drawer-context strong{font-size:.75rem}.ai-drawer-context small{color:var(--color-information);background:#2468a21a;border-radius:999px;padding:.2rem .4rem;font-size:.5625rem;font-weight:700}.ai-drawer-history{align-items:center;gap:.5rem;padding:.625rem 1rem 0;display:flex}.ai-drawer-history select{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-primary);flex:1;min-width:0;padding:.45rem .5rem;font-size:.6875rem}.ai-drawer-history button{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-brand-primary);align-items:center;gap:.3rem;padding:.45rem .55rem;font-size:.6875rem;font-weight:700;display:inline-flex}.ai-drawer-history button:hover{background:var(--color-surface-subtle);border-color:var(--color-brand-primary)}.ai-drawer-history button:disabled,.ai-drawer-history select:disabled{cursor:not-allowed;opacity:.55}.ai-drawer-history svg{width:.8rem;height:.8rem}.ai-drawer-memory{border-bottom:1px solid var(--color-border);padding:.5rem 1rem .625rem}.ai-memory-toggle{color:var(--color-brand-primary);background:0 0;border:0;align-items:center;gap:.35rem;width:100%;padding:.2rem 0;font-size:.6875rem;font-weight:700;display:flex}.ai-memory-toggle svg{width:.85rem;height:.85rem}.ai-memory-toggle span{background:var(--color-surface-subtle);color:var(--color-text-secondary);border-radius:999px;margin-left:auto;padding:.15rem .35rem;font-size:.5625rem}.ai-memory-panel{background:var(--color-surface-subtle);border:1px solid var(--color-border);border-radius:var(--radius-md);max-height:15rem;margin-top:.45rem;padding:.6rem;overflow-y:auto}.ai-memory-panel>p{color:var(--color-text-secondary);margin:0 0 .5rem;font-size:.625rem}.ai-memory-panel form{gap:.4rem;display:grid}.ai-memory-panel select,.ai-memory-panel input{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-primary);font:inherit;padding:.4rem .45rem;font-size:.6875rem}.ai-memory-panel form>div{gap:.35rem;display:flex}.ai-memory-panel input{flex:1;min-width:0}.ai-memory-panel form button{background:var(--color-brand-primary);border-radius:var(--radius-sm);color:#fff;border:0;justify-content:center;align-items:center;width:2rem;display:inline-flex}.ai-memory-panel button:disabled{cursor:not-allowed;opacity:.45}.ai-memory-panel form svg,.ai-memory-panel li svg{width:.75rem;height:.75rem}.ai-memory-panel ul{gap:.3rem;margin:.55rem 0 0;padding:0;list-style:none;display:grid}.ai-memory-panel li{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);align-items:center;gap:.4rem;padding:.35rem .4rem;font-size:.625rem;display:flex}.ai-memory-panel li span{overflow-wrap:anywhere;flex:1}.ai-memory-panel li button{color:var(--color-danger);background:0 0;border:0;align-items:center;padding:.2rem;display:inline-flex}.ai-memory-panel>small{color:var(--color-text-secondary);margin-top:.45rem;font-size:.6rem;display:block}.ai-memory-panel>small[role=alert]{color:var(--color-danger)}.ai-drawer-conversation{flex-direction:column;flex:1;gap:.875rem;padding:1.25rem 1rem;display:flex;overflow-y:auto}.ai-message{gap:.5rem;max-width:92%;font-size:.75rem;line-height:1.55;display:flex}.ai-message>span{background:var(--color-surface-subtle);color:var(--color-brand-primary);border-radius:50%;flex:none;justify-content:center;align-items:center;width:1.75rem;height:1.75rem;display:inline-flex}.ai-message>span svg{width:.875rem;height:.875rem}.ai-message div{background:var(--color-surface-subtle);border:1px solid var(--color-border);border-radius:0 var(--radius-lg) var(--radius-lg) var(--radius-lg);padding:.75rem}.ai-message strong{margin-bottom:.25rem;font-size:.75rem;display:block}.ai-message p{margin:0}.ai-message-assistant p{white-space:pre-wrap}.ai-message-assistant.is-error div{color:var(--color-danger);background:#d82d3712;border-color:#d82d3747}.ai-message-loading>span svg{animation:.9s linear infinite ai-spin}.ai-message-user{background:var(--color-brand-primary);border-radius:var(--radius-lg) 0 var(--radius-lg) var(--radius-lg);color:#fff;align-self:flex-end;padding:.65rem .75rem}.ai-drawer-suggestions{border-top:1px solid var(--color-border);flex-wrap:wrap;gap:.4rem;padding:.8rem 1rem;display:flex}.ai-drawer-suggestions>span{color:var(--color-text-secondary);text-transform:uppercase;flex-basis:100%;margin-bottom:.1rem;font-size:.625rem;font-weight:700}.ai-drawer-suggestions button{background:var(--color-surface);border:1px solid var(--color-border);color:var(--color-text-primary);text-align:left;border-radius:999px;padding:.4rem .6rem;font-size:.625rem}.ai-drawer-suggestions button:hover{background:var(--color-surface-subtle);border-color:var(--color-brand-primary)}.ai-drawer-suggestions button:disabled{cursor:not-allowed;opacity:.55}.ai-drawer-composer{border-top:1px solid var(--color-border);padding:.875rem 1rem 1rem}.ai-drawer-composer>div{border:1px solid var(--color-border);border-radius:var(--radius-md);align-items:flex-end;gap:.5rem;padding:.5rem;display:flex}.ai-drawer-composer textarea{color:var(--color-text-primary);font:inherit;resize:none;border:0;outline:0;flex:1;min-height:2.75rem;font-size:.75rem}.ai-drawer-composer button{background:var(--color-brand-primary);border-radius:var(--radius-sm);color:#fff;border:0;flex:none;justify-content:center;align-items:center;width:2rem;height:2rem;padding:0;display:inline-flex}.ai-drawer-composer button:disabled{cursor:not-allowed;opacity:.4}.ai-drawer-composer button svg{width:.875rem;height:.875rem}.ai-drawer-composer>small{color:var(--color-text-secondary);text-align:center;margin-top:.4rem;font-size:.5625rem;display:block}@keyframes ai-drawer-enter{0%{opacity:0;transform:translate(1.5rem)}to{opacity:1;transform:translate(0)}}@keyframes ai-spin{to{transform:rotate(360deg)}}.page-header{margin-bottom:1.5rem}.page-eyebrow{color:var(--color-brand-secondary);letter-spacing:.1em;text-transform:uppercase;margin:0 0 .375rem;font-size:.625rem;font-weight:700}.page-title{letter-spacing:-.035em;margin:0;font-size:clamp(1.5rem,2.5vw,1.875rem);line-height:1.2}.page-description{color:var(--color-text-secondary);max-width:48rem;margin:.375rem 0 0;font-size:.8125rem;line-height:1.5}.state-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);min-height:16rem;padding:var(--space-xl);text-align:center;flex-direction:column;justify-content:center;align-items:center;display:flex}.state-icon{background:var(--color-surface-subtle);border-radius:var(--radius-md);color:var(--color-brand-primary);justify-content:center;align-items:center;width:2.5rem;height:2.5rem;display:inline-flex}.state-card h2{margin:.875rem 0 .375rem;font-size:1rem}.state-card p{color:var(--color-text-secondary);max-width:31rem;margin:0;font-size:.8125rem;line-height:1.5}.state-link{background:var(--color-brand-primary);border-radius:var(--radius-md);color:var(--color-text-inverse);margin-top:var(--space-lg);padding:.75rem 1rem;text-decoration:none}.loading-line{background:var(--color-surface-subtle);border-radius:var(--radius-sm);height:1rem;margin-top:var(--space-md);width:70%;max-width:22rem;animation:1.5s ease-in-out infinite pulse}.mobile-overlay{display:none}.finance-dashboard{gap:.875rem;display:grid}.finance-header{justify-content:space-between;align-items:flex-end;gap:1rem;margin-bottom:.375rem;display:flex}.finance-actions{flex-wrap:wrap;gap:.5rem;display:flex}.period-picker{position:relative}.period-menu{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);z-index:15;min-width:10rem;padding:.25rem;display:grid;position:absolute;top:calc(100% + .375rem);right:0;box-shadow:0 8px 24px #0f172a1f}.period-menu button{border-radius:var(--radius-sm);color:var(--color-text-primary);text-align:left;background:0 0;border:0;justify-content:space-between;align-items:center;padding:.5rem .625rem;font-size:.75rem;display:flex}.period-menu button:hover,.period-menu button[aria-current=true]{background:var(--color-surface-subtle)}.period-menu svg{color:var(--color-success);width:.75rem;height:.75rem}.finance-button{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-primary);align-items:center;gap:.375rem;min-height:2rem;padding:0 .625rem;font-size:.75rem;font-weight:600;display:inline-flex}.finance-button svg{width:.875rem;height:.875rem}.finance-button-primary{background:var(--color-brand-primary);border-color:var(--color-brand-primary);color:var(--color-text-inverse)}.finance-statusbar{color:var(--color-text-secondary);align-items:center;gap:1rem;font-size:.6875rem;display:flex}.finance-statusbar>span{align-items:center;gap:.375rem;display:inline-flex}.finance-status-spacer{flex:1}.status-dot{background:var(--color-success);border-radius:50%;width:.375rem;height:.375rem}.finance-card,.finance-summary{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-card)}.finance-summary{grid-template-columns:auto 1fr auto;align-items:center;gap:.875rem;padding:1rem;display:grid}.finance-summary-icon{background:var(--color-surface-subtle);border-radius:var(--radius-md);color:var(--color-brand-primary);justify-content:center;align-self:start;align-items:center;width:2rem;height:2rem;display:inline-flex}.finance-summary-icon svg{width:1rem;height:1rem}.finance-summary p{color:var(--color-text-secondary);max-width:70rem;margin:.375rem 0 0;font-size:.75rem;line-height:1.55}.finance-card-heading{justify-content:space-between;align-items:flex-start;gap:.75rem;display:flex}.finance-card-heading h2{margin:.125rem 0 0;font-size:.875rem}.finance-kicker{color:var(--color-text-secondary);letter-spacing:.065em;text-transform:uppercase;font-size:.625rem;font-weight:700;display:block}.finance-badge{background:var(--color-surface-subtle);color:var(--color-success);white-space:nowrap;border-radius:999px;padding:.25rem .5rem;font-size:.625rem;font-weight:700}.finance-text-button{color:var(--color-brand-primary);white-space:nowrap;background:0 0;border:0;align-items:center;gap:.125rem;padding:0;font-size:.6875rem;font-weight:700;display:inline-flex}.finance-text-button svg{width:.75rem;height:.75rem}.finance-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.875rem;display:grid}.finance-kpi{min-width:0;padding:.875rem}.finance-card-button{color:var(--color-text-primary);text-align:left;width:100%;transition:border-color .12s,box-shadow .12s,transform .12s}.finance-card-button:hover{border-color:var(--color-brand-primary);transform:translateY(-1px);box-shadow:0 3px 10px #0f172a14}.finance-kpi>strong{letter-spacing:-.035em;margin-top:.375rem;font-size:1.375rem;display:block}.finance-kpi-meta{color:var(--color-text-secondary);align-items:center;gap:.5rem;margin-top:.375rem;font-size:.6875rem;display:flex}.kpi-chevron{width:.75rem;height:.75rem;margin-left:auto}.trend-positive,.trend-negative{white-space:nowrap;align-items:center;gap:.125rem;font-size:.6875rem;font-weight:700;display:inline-flex}.trend-positive{color:var(--color-success)}.trend-negative{color:var(--color-danger)}.trend-positive svg,.trend-negative svg{width:.75rem;height:.75rem}.finance-main-grid{grid-template-columns:minmax(0,1.75fr) minmax(17rem,.75fr);gap:.875rem;display:grid}.finance-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"sales margin customers""suppliers cashflow cashflow""warehouse cashflow cashflow";gap:.875rem;display:grid}.finance-sales-card{grid-area:sales}.finance-margin-card{grid-area:margin}.finance-customers-card{grid-area:customers}.finance-suppliers-card{grid-area:suppliers}.finance-warehouse-card{grid-area:warehouse}.finance-cashflow-card{grid-area:cashflow;min-width:0;padding:1rem}.finance-overview-grid-revised{grid-template-rows:auto 10.5rem 10.5rem;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-areas:"sales customers suppliers warehouse""stabilization flow flow flow""consolidation flow flow flow"}.finance-overview-grid-revised>.finance-domain-card{min-height:0}.finance-stabilization-card{grid-area:stabilization}.finance-consolidation-card{grid-area:consolidation}.finance-flow-chart-card{background:linear-gradient(145deg, var(--color-surface) 0%, var(--color-surface-subtle) 140%);flex-direction:column;grid-area:flow;min-height:0;padding:1rem 1.25rem;display:flex;overflow:hidden}.finance-line-chart{flex-direction:column;flex:1;min-height:0;margin-top:.25rem;display:flex}.finance-chartjs{min-height:0;display:block;position:relative}.finance-chartjs canvas{width:100%!important;height:100%!important}.finance-line-plot{flex:1;min-height:0;position:relative}.finance-line-chart svg{width:100%;height:100%;min-height:0;position:absolute;inset:0;overflow:visible}.finance-line-legend{justify-content:flex-end;align-items:center;gap:.875rem;font-size:.625rem;display:flex}.finance-line-legend span{color:var(--color-text-secondary);align-items:center;gap:.3rem;display:inline-flex}.finance-line-legend span:before{content:"";border-radius:999px;width:.45rem;height:.45rem}.finance-line-legend .is-actual:before,.finance-line-tooltip i.is-actual{background:var(--color-brand-primary)}.finance-line-legend .is-forecast:before,.finance-line-tooltip i.is-forecast{background:var(--color-brand-secondary)}.finance-line-grid{stroke:var(--color-border);stroke-dasharray:2 2;stroke-width:.5px;vector-effect:non-scaling-stroke}.finance-line-path{fill:none;stroke:var(--color-brand-primary);stroke-linecap:round;stroke-linejoin:round;stroke-width:1.75px;vector-effect:non-scaling-stroke}.finance-line-forecast{stroke:var(--color-brand-secondary);stroke-dasharray:5 3}.finance-line-point{stroke:var(--color-surface);stroke-width:1.5px;vector-effect:non-scaling-stroke}.finance-line-point-actual{fill:var(--color-brand-primary)}.finance-line-point-forecast{fill:var(--color-brand-secondary)}.finance-line-hitbox{fill:#0000;pointer-events:all}.finance-line-tooltip{background:var(--color-brand-primary);border-radius:var(--radius-sm);color:#fff;pointer-events:none;white-space:nowrap;z-index:3;border:1px solid #ffffff24;gap:.25rem;padding:.5rem .625rem;font-size:.625rem;display:grid;position:absolute;top:.25rem;transform:translate(-50%);box-shadow:0 8px 22px #0f172a33}.finance-line-tooltip strong{margin-bottom:.125rem;font-size:.6875rem}.finance-line-tooltip span{grid-template-columns:auto 1fr auto;align-items:center;gap:.3rem;display:grid}.finance-line-tooltip i{border-radius:999px;width:.4rem;height:.4rem}.finance-line-tooltip b{margin-left:.5rem;font-weight:700}.finance-line-labels{color:var(--color-text-secondary);justify-content:space-between;padding:.375rem 2% 0;font-size:.625rem;display:flex}.finance-line-empty{color:var(--color-text-secondary);flex:1;justify-content:center;align-items:center;min-height:18rem;display:flex}.finance-card-note{color:var(--color-text-secondary);margin:auto 0 0;font-size:.6875rem;line-height:1.5}.finance-filter-select{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-primary);align-items:center;gap:.375rem;min-height:2rem;padding:0 .625rem;display:inline-flex}.finance-filter-select svg{color:var(--color-text-secondary);width:.875rem;height:.875rem}.finance-filter-select select{color:inherit;cursor:pointer;font:inherit;background:0 0;border:0;outline:0;min-width:12rem;font-size:.75rem}.finance-domain-card{background:var(--color-surface);border:1px solid var(--color-border);color:var(--color-text-primary);text-align:left;flex-direction:column;width:100%;min-height:12.5rem;padding:1rem;transition:border-color .12s,box-shadow .12s,transform .12s;display:flex}.finance-domain-card:hover{border-color:var(--color-brand-primary);transform:translateY(-1px);box-shadow:0 3px 10px #0f172a14}.finance-domain-heading{justify-content:space-between;align-items:flex-start;gap:.75rem;display:flex}.finance-domain-heading h2{margin:.125rem 0 0;font-size:.9375rem}.finance-ratio-control{flex-direction:column;flex:none;align-items:flex-end;gap:.35rem;display:flex}.finance-ratio-control .finance-ratio-value{white-space:nowrap;flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:.3rem;display:inline-flex;flex-direction:row!important}.finance-ratio-control .finance-ratio-value strong{letter-spacing:-.045em;font-size:1.625rem;line-height:1;display:inline;color:inherit!important}.finance-ratio-control .finance-ratio-value svg{stroke-width:2.75px;flex:none;width:1.25rem;height:1.25rem;position:static;color:inherit!important;stroke:currentColor!important}.finance-ratio-control .finance-ratio-value[data-trend=up]{color:var(--color-danger)!important}.finance-ratio-control .finance-ratio-value[data-trend=down],.finance-ratio-control .finance-ratio-value[data-trend=positive]{color:var(--color-success)!important}.finance-ratio-control .finance-ratio-value[data-trend=negative]{color:var(--color-danger)!important}.finance-ratio-control .finance-ratio-value[data-trend=neutral]{color:var(--color-text-secondary)!important}.finance-ratio-control button{background:var(--color-brand-secondary);border:1px solid var(--color-brand-secondary);border-radius:var(--radius-sm);color:#fff;cursor:pointer;align-items:center;gap:.3rem;min-height:2rem;padding:0 .7rem;font-size:.6875rem;font-weight:700;transition:background-color .12s,border-color .12s,box-shadow .12s,transform .12s;display:inline-flex;box-shadow:0 2px 6px #d52f392e}.finance-ratio-control button:hover{background:#bd252f;border-color:#bd252f;transform:translateY(-1px);box-shadow:0 3px 9px #d52f3940}.finance-ratio-control button[aria-pressed=true]{background:#a91f28;border-color:#a91f28}.finance-ratio-control button:focus-visible{outline:2px solid var(--color-brand-secondary);outline-offset:2px}.finance-ratio-control button svg{width:.8rem;height:.8rem}.finance-chart-reset{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-secondary);cursor:pointer;align-items:center;gap:.3rem;min-height:2rem;padding:0 .65rem;font-size:.6875rem;font-weight:700;display:inline-flex}.finance-chart-reset:hover{border-color:var(--color-brand-secondary);color:var(--color-brand-secondary)}.finance-chart-reset:focus-visible{outline:2px solid var(--color-brand-secondary);outline-offset:2px}.finance-chart-reset svg{width:.8rem;height:.8rem}.finance-primary-metric{flex-direction:column;margin-top:1rem;display:flex}.finance-primary-metric span,.finance-comparison>span{color:var(--color-text-secondary);font-size:.6875rem}.finance-primary-metric strong{letter-spacing:-.035em;margin-top:.125rem;font-size:1.375rem}.finance-comparison{align-items:baseline;gap:.375rem;margin-top:.625rem;display:flex}.finance-comparison strong{font-size:.75rem}.finance-comparison small{color:var(--color-text-secondary);margin-left:auto;font-size:.625rem}.finance-metric-list{border-top:1px solid var(--color-border);gap:.5rem;margin-top:auto;padding-top:.75rem;display:grid}.finance-metric-list>div{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.finance-metric-list span{color:var(--color-text-secondary);font-size:.6875rem}.finance-metric-list strong{font-size:.75rem}.mini-trend{align-items:end;gap:.25rem;height:2rem;margin-top:auto;display:flex}.mini-trend span{background:var(--color-brand-primary);opacity:.85;border-radius:1px 1px 0 0;flex:1;min-height:.125rem}.margin-track{background:var(--color-surface-subtle);border-radius:999px;height:.375rem;margin-top:auto;overflow:hidden}.margin-track span{background:var(--color-brand-primary);height:100%;display:block}.cashflow-thresholds{border-top:1px solid var(--color-border);grid-template-columns:1fr 1fr;gap:.75rem;padding-top:.75rem;display:grid}.cashflow-thresholds>div{background:var(--color-surface-subtle);border-radius:var(--radius-sm);justify-content:space-between;align-items:center;gap:.75rem;padding:.625rem .75rem;display:flex}.cashflow-thresholds span{color:var(--color-text-secondary);font-size:.6875rem}.cashflow-thresholds strong{white-space:nowrap;font-size:.75rem}.finance-chart-card,.finance-cash-card,.finance-obligations,.finance-alerts{padding:1rem}.finance-legend{color:var(--color-text-secondary);gap:.75rem;font-size:.625rem;display:flex}.finance-legend span{align-items:center;gap:.25rem;display:inline-flex}.finance-legend span:before{content:"";border-radius:1px;width:.375rem;height:.375rem}.legend-income:before{background:var(--color-brand-primary)}.legend-expense:before{background:var(--color-brand-secondary)}.bar-chart{border-bottom:1px solid var(--color-border);justify-content:space-around;align-items:end;gap:clamp(.75rem,3vw,2.5rem);height:11rem;margin-top:.75rem;padding:0 1rem;display:flex}.bar-group{color:var(--color-text-secondary);background:0 0;border:0;flex-direction:column;flex:1;justify-content:end;align-items:center;gap:.375rem;max-width:4rem;height:100%;padding:0;font-size:.625rem;display:flex}.bar-group:hover .bar-income,.bar-group:focus-visible .bar-income{filter:brightness(1.3)}.bar-group:hover .bar-expense,.bar-group:focus-visible .bar-expense{opacity:1}.bars{align-items:end;gap:.1875rem;width:100%;height:calc(100% - 1.25rem);display:flex}.bars span{border-radius:.125rem .125rem 0 0;flex:1;min-height:.25rem;display:block}.bar-income{background:var(--color-brand-primary)}.bar-expense{background:var(--color-brand-secondary);opacity:.82}.finance-chart-footer{align-items:center;gap:.5rem;padding-top:.75rem;font-size:.6875rem;display:flex}.finance-chart-footer>span:first-child{color:var(--color-text-secondary)}.finance-chart-footer strong{font-size:.875rem}.cashflow-summary-grid{border-top:1px solid var(--color-border);grid-template-columns:repeat(4,minmax(0,1fr));margin-top:.75rem;display:grid}.cashflow-summary-grid>div{border-right:1px solid var(--color-border);flex-direction:column;gap:.125rem;padding:.75rem;display:flex}.cashflow-summary-grid>div:first-child{padding-left:0}.cashflow-summary-grid>div:last-child{border-right:0;padding-right:0}.cashflow-summary-grid span{color:var(--color-text-secondary);font-size:.625rem}.cashflow-summary-grid strong{font-size:.8125rem}.cashflow-summary-grid small{align-self:flex-start}.cash-total{border-bottom:1px solid var(--color-border);flex-direction:column;padding:1.25rem 0 1rem;display:flex}.cash-total span,.cash-total small,.cash-stats span{color:var(--color-text-secondary);font-size:.6875rem}.cash-total strong{letter-spacing:-.04em;margin:.125rem 0;font-size:1.75rem}.cash-meter,.obligation-track{background:var(--color-surface-subtle);border-radius:999px;height:.3125rem;overflow:hidden}.cash-meter{margin:1rem 0}.cash-meter span{background:var(--color-brand-primary);height:100%;display:block}.cash-stats{grid-template-columns:1fr 1fr;gap:.75rem;display:grid}.cash-stats div{flex-direction:column;gap:.125rem;display:flex}.cash-stats strong{font-size:.8125rem}.finance-link-row{border:0;border-top:1px solid var(--color-border);color:var(--color-brand-primary);background:0 0;justify-content:space-between;align-items:center;width:100%;margin-top:1rem;padding:.75rem 0 0;font-size:.6875rem;font-weight:700;display:flex}.finance-link-row span{align-items:center;gap:.375rem;display:inline-flex}.finance-link-row svg{width:.8125rem;height:.8125rem}.finance-bottom-grid{grid-template-columns:minmax(0,1.5fr) minmax(18rem,1fr);gap:.875rem;display:grid}.obligation-list{gap:.875rem;margin-top:1rem;display:grid}.obligation>div:first-child{justify-content:space-between;margin-bottom:.375rem;font-size:.6875rem;display:flex}.obligation>div:first-child span{color:var(--color-text-secondary)}.obligation-track span{height:100%;display:block}.obligation-track .income{background:var(--color-brand-primary)}.obligation-track .expense{background:var(--color-brand-secondary)}.alert-count{background:var(--color-surface-subtle);color:var(--color-danger);border-radius:50%;justify-content:center;align-items:center;width:1.375rem;height:1.375rem;font-size:.625rem;font-weight:700;display:inline-flex}.alert-item{border-bottom:1px solid var(--color-border);grid-template-columns:auto 1fr auto;align-items:center;gap:.625rem;padding:.75rem 0;display:grid}.alert-item>svg{color:var(--color-text-secondary);width:.75rem;height:.75rem}.alert-icon{background:var(--color-surface-subtle);border-radius:var(--radius-sm);color:var(--color-danger);justify-content:center;align-items:center;width:1.75rem;height:1.75rem;display:inline-flex}.alert-icon svg{width:.875rem;height:.875rem}.alert-item>button:not(.resolve-alert){color:var(--color-text-primary);text-align:left;background:0 0;border:0;flex-direction:column;padding:0;display:flex}.alert-item strong{font-size:.75rem}.alert-item>button span{color:var(--color-text-secondary);margin-top:.125rem;font-size:.6875rem}.resolve-alert{border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-secondary);background:0 0;justify-content:center;align-items:center;width:1.625rem;height:1.625rem;padding:0;display:inline-flex}.resolve-alert:hover{background:var(--color-surface-subtle);color:var(--color-success)}.resolve-alert svg{width:.75rem;height:.75rem}.alerts-empty{color:var(--color-success);flex-direction:column;justify-content:center;align-items:center;gap:.375rem;min-height:6rem;font-size:.75rem;display:flex}.alerts-empty svg{width:1.25rem;height:1.25rem}.spin{animation:.7s linear infinite spin}.finance-modal-backdrop{background:var(--color-overlay);z-index:60;justify-content:center;align-items:center;padding:1rem;display:flex;position:fixed;inset:0}.finance-modal{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);width:100%;max-width:30rem;overflow:hidden;box-shadow:0 20px 50px #0f172a33}.finance-modal header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:flex-start;padding:1rem;display:flex}.finance-modal h2{margin:.125rem 0 0;font-size:1rem}.finance-modal header p{color:var(--color-text-secondary);margin:.25rem 0 0;font-size:.6875rem}.finance-modal header>button{border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-secondary);background:0 0;justify-content:center;align-items:center;width:1.75rem;height:1.75rem;padding:0;display:inline-flex}.finance-modal header>button svg{width:.875rem;height:.875rem}.finance-modal-rows{padding:.25rem 1rem;display:grid}.finance-modal-rows>div{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 0;display:flex}.finance-modal-rows>div:last-child{border-bottom:0}.finance-modal-rows span{color:var(--color-text-secondary);font-size:.75rem}.finance-modal-rows strong{text-align:right;font-size:.75rem}.finance-modal footer{border-top:1px solid var(--color-border);justify-content:flex-end;padding:.75rem 1rem;display:flex}.finance-back-link{text-decoration:none}.finance-section-page{gap:1rem;display:grid}.finance-section-placeholder{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:20rem;padding:2rem;display:flex}.finance-section-placeholder h2{margin:.5rem 0 .375rem;font-size:1rem}.finance-section-placeholder p{color:var(--color-text-secondary);max-width:31rem;margin:0;font-size:.75rem;line-height:1.55}.finance-section-placeholder .finance-summary-icon{margin-bottom:.75rem}.customers-page{min-width:0}.customers-page .finance-button:disabled{cursor:not-allowed;opacity:.52}.customers-preview-notice{border-radius:var(--radius-md);color:#664d03;background:#fff9e8;border:1px solid #edd79a;align-items:flex-start;gap:.75rem;padding:.75rem .875rem;display:flex}.customers-preview-notice>svg{flex:none;width:1rem;height:1rem;margin-top:.125rem}.customers-preview-notice>div{gap:.125rem;display:grid}.customers-preview-notice strong{font-size:.75rem}.customers-preview-notice span{font-size:.6875rem;line-height:1.5}.customers-statusbar{min-height:1.25rem}.customers-preview-dot{background:#d49b13}.customers-kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.875rem;display:grid}.customers-kpi{min-width:0;padding:.875rem 1rem}.customers-kpi>span{color:var(--color-text-secondary);font-size:.6875rem;display:block}.customers-kpi>strong{font-variant-numeric:tabular-nums;letter-spacing:-.035em;text-overflow:ellipsis;white-space:nowrap;margin-top:.375rem;font-size:clamp(1.05rem,2vw,1.375rem);display:block;overflow:hidden}.customers-kpi>small{color:var(--color-text-secondary);margin-top:.375rem;font-size:.625rem;display:block}.customers-kpi-accent{border-top:3px solid var(--color-success);padding-top:calc(.875rem - 2px)}.customers-table-card{min-width:0;overflow:hidden}.customers-toolbar{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:.75rem;padding:.75rem;display:flex}.customers-search{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);flex:1;align-items:center;gap:.5rem;max-width:26rem;min-height:2.25rem;padding:0 .625rem;display:flex}.customers-search:focus-within{border-color:var(--color-brand-primary);box-shadow:0 0 0 2px #1e2f4617}.customers-search svg{color:var(--color-text-secondary);flex:none;width:.875rem;height:.875rem}.customers-search input{color:var(--color-text-primary);font:inherit;background:0 0;border:0;outline:0;width:100%;min-width:0;font-size:.75rem}.customers-search input::placeholder{color:var(--color-text-secondary)}.customers-group-filter{align-items:center;gap:.5rem;display:flex}.customers-group-filter>span{color:var(--color-text-secondary);font-size:.6875rem;font-weight:600}.customers-group-filter select{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-primary);font:inherit;min-width:8rem;min-height:2.25rem;padding:0 .5rem;font-size:.75rem}.customers-table-scroll{scrollbar-color:var(--color-border-strong) var(--color-surface-subtle);min-height:20rem;max-height:calc(100vh - 25rem);overflow:auto}.customers-table{border-collapse:separate;border-spacing:0;width:100%;min-width:114rem;font-size:.6875rem}.customers-table th,.customers-table td{border-bottom:1px solid var(--color-border);white-space:nowrap;height:2.5rem;padding:0 .625rem}.customers-table thead th{background:var(--color-brand-primary);color:#fff;z-index:3;padding:0;position:sticky;top:0}.customers-table thead th:first-child{z-index:5;left:0}.customers-table thead th:nth-child(2){z-index:5;left:5.5rem}.customers-table thead button{color:inherit;font:inherit;letter-spacing:.02em;text-transform:uppercase;background:0 0;border:0;justify-content:flex-end;align-items:center;gap:.375rem;width:100%;height:100%;padding:0 .625rem;font-size:.625rem;font-weight:700;display:flex}.customers-table thead th:first-child button,.customers-table thead th:nth-child(2) button{justify-content:flex-start}.customers-table thead button:hover,.customers-table thead button:focus-visible{background:#ffffff17;outline:none}.customers-table thead button svg{opacity:.8;flex:none;width:.6875rem;height:.6875rem}.customers-table th:first-child,.customers-table td:first-child{width:5.5rem;min-width:5.5rem}.customers-table th:nth-child(2),.customers-table td:nth-child(2){text-align:left;min-width:15rem}.customers-table tbody td{background:var(--color-surface);font-variant-numeric:tabular-nums;text-align:right}.customers-table tbody td:first-child{color:var(--color-text-secondary);text-align:left;z-index:2;position:sticky;left:0}.customers-table tbody td:nth-child(2){text-overflow:ellipsis;z-index:2;max-width:15rem;font-weight:650;position:sticky;left:5.5rem;overflow:hidden}.customers-table tbody tr:hover td{background:var(--color-surface-subtle)}.customers-table tfoot td{background:var(--color-surface-subtle);border-top:2px solid var(--color-border-strong);font-variant-numeric:tabular-nums;text-align:right;z-index:3;font-weight:750;position:sticky;bottom:0}.customers-table tfoot td:first-child{text-align:left;min-width:20.5rem;left:0}.customers-table .customers-empty{color:var(--color-text-secondary);text-align:center;height:12rem}.customers-pagination{border-top:1px solid var(--color-border);color:var(--color-text-secondary);justify-content:space-between;align-items:center;min-height:3rem;padding:.5rem .75rem;font-size:.6875rem;display:flex}.customers-pagination>div{align-items:center;gap:.5rem;display:flex}.customers-pagination button{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-primary);justify-content:center;align-items:center;width:1.75rem;height:1.75rem;padding:0;display:inline-flex}.customers-pagination button:disabled{cursor:not-allowed;opacity:.4}.customers-pagination button svg{width:.75rem;height:.75rem}.customers-page-header{margin-bottom:.125rem}.customers-connection-banner{border-radius:var(--radius-md);color:#664d03;background:#fff9e8;border:1px solid #edd79a;grid-template-columns:auto 1fr auto;align-items:center;gap:.75rem;padding:.75rem .875rem;display:grid}.customers-connection-banner.is-connected{color:#175c39;background:#f0f9f4;border-color:#b9dfc9}.customers-connection-icon{background:#ffffff9e;border-radius:50%;justify-content:center;align-items:center;width:2rem;height:2rem;display:inline-flex}.customers-connection-icon svg{width:.95rem;height:.95rem}.customers-connection-banner>div{gap:.1rem;display:grid}.customers-connection-banner strong{font-size:.75rem}.customers-connection-banner span,.customers-connection-banner small{font-size:.6875rem}.customers-connection-banner>small{background:#ffffff94;border-radius:999px;padding:.3rem .55rem;font-weight:700}.customers-kpi-danger{border-top:3px solid var(--color-danger);padding-top:calc(.875rem - 2px)}.customers-kpi-success{border-top:3px solid var(--color-success);padding-top:calc(.875rem - 2px)}.customers-workspace{min-width:0;overflow:hidden}.customers-workspace-heading{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;padding:.875rem 1rem;display:flex}.customers-section-kicker{color:var(--color-brand-secondary);letter-spacing:.1em;margin-bottom:.15rem;font-size:.5625rem;font-weight:800;display:block}.customers-workspace-heading h2{margin:0;font-size:1rem}.customers-view-tabs{background:var(--color-surface-subtle);border-radius:var(--radius-md);gap:.1875rem;padding:.1875rem;display:inline-flex}.customers-view-tabs button{border-radius:var(--radius-sm);color:var(--color-text-secondary);background:0 0;border:0;align-items:center;gap:.35rem;min-height:2rem;padding:0 .75rem;font-size:.6875rem;font-weight:700;display:inline-flex}.customers-view-tabs button svg{width:.8rem;height:.8rem}.customers-view-tabs button[aria-selected=true]{background:var(--color-surface);box-shadow:var(--shadow-card);color:var(--color-brand-primary)}.customers-workspace .customers-table-scroll{min-height:21rem;max-height:calc(100vh - 28rem)}.customers-workspace .customers-table{min-width:76rem}.customers-workspace .customers-companies-table{min-width:88rem}.customers-workspace .customers-table thead th:first-child,.customers-workspace .customers-table thead th:nth-child(2),.customers-workspace .customers-table tbody td:first-child,.customers-workspace .customers-table tbody td:nth-child(2){position:static;left:auto}.customers-workspace .customers-table thead th:first-child,.customers-workspace .customers-table thead th:nth-child(2){z-index:3}.customers-workspace .customers-table th:first-child,.customers-workspace .customers-table td:first-child{width:auto;min-width:14rem}.customers-workspace .customers-companies-table th:first-child,.customers-workspace .customers-companies-table td:first-child{width:5.5rem;min-width:5.5rem}.customers-workspace .customers-table th:nth-child(2),.customers-workspace .customers-table td:nth-child(2){width:auto;min-width:7rem}.customers-workspace .customers-companies-table th:nth-child(2),.customers-workspace .customers-companies-table td:nth-child(2){min-width:17rem}.customers-workspace .customers-table thead th:first-child button,.customers-workspace .customers-companies-table thead th:nth-child(2) button{justify-content:flex-start}.customers-workspace .customers-table tbody td:first-child,.customers-workspace .customers-companies-table tbody td:nth-child(2){text-align:left}.customers-clickable-row{cursor:pointer}.customers-clickable-row td>button{color:inherit;text-align:left;background:0 0;border:0;align-items:center;gap:.55rem;width:100%;min-width:0;padding:0;display:flex}.customers-clickable-row td>button>svg{background:var(--color-surface-subtle);border-radius:var(--radius-sm);color:var(--color-brand-primary);flex:none;width:1.75rem;height:1.75rem;padding:.42rem}.customers-clickable-row td>button>span{min-width:0;display:grid}.customers-clickable-row td>button strong{text-overflow:ellipsis;white-space:nowrap;font-size:.71875rem;overflow:hidden}.customers-clickable-row td>button small{color:var(--color-text-secondary);font-size:.5625rem;font-weight:500}.customers-workspace .customers-table td.is-danger{color:var(--color-danger);font-weight:750}.customers-workspace .customers-table td.is-success{color:var(--color-success);font-weight:700}.customers-workspace .customers-empty{text-align:center;height:15rem;position:static}.customers-empty>span{background:var(--color-surface-subtle);color:var(--color-brand-primary);border-radius:50%;justify-content:center;align-items:center;width:2.5rem;height:2.5rem;margin:0 auto .65rem;display:flex}.customers-empty>span svg{width:1rem;height:1rem}.customers-empty strong,.customers-empty small{display:block}.customers-empty strong{color:var(--color-text-primary);font-size:.75rem}.customers-empty small{color:var(--color-text-secondary);margin-top:.25rem;font-size:.65rem}.customers-detail-backdrop{z-index:44;background:#0f172a38;border:0;padding:0;position:fixed;inset:0}.customers-detail-panel{background:var(--color-surface);border-left:1px solid var(--color-border);z-index:45;flex-direction:column;width:min(34rem,100vw - 2rem);height:100vh;animation:.18s ease-out ai-drawer-enter;display:flex;position:fixed;top:0;right:0;box-shadow:-18px 0 48px #0f172a29}.customers-detail-panel>header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:flex-start;padding:1rem;display:flex}.customers-detail-identity{align-items:flex-start;gap:.75rem;min-width:0;display:flex}.customers-detail-identity>span{background:var(--color-brand-primary);border-radius:var(--radius-md);color:#fff;flex:none;justify-content:center;align-items:center;width:2.5rem;height:2.5rem;display:inline-flex}.customers-detail-identity>span svg{width:1rem;height:1rem}.customers-detail-identity small{color:var(--color-brand-secondary);letter-spacing:.08em;font-size:.5625rem;font-weight:800}.customers-detail-identity h2{margin:.1rem 0;font-size:1rem}.customers-detail-identity p{color:var(--color-text-secondary);margin:0;font-size:.65rem}.customers-detail-panel>header>button{border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-secondary);background:0 0;flex:none;justify-content:center;align-items:center;width:2rem;height:2rem;padding:0;display:inline-flex}.customers-detail-panel>header>button svg{width:.85rem;height:.85rem}.customers-detail-content{gap:1rem;padding:1rem;display:grid;overflow-y:auto}.customers-detail-content section{border:1px solid var(--color-border);border-radius:var(--radius-md);overflow:hidden}.customers-detail-content h3{background:var(--color-surface-subtle);border-bottom:1px solid var(--color-border);margin:0;padding:.7rem .75rem;font-size:.75rem}.customers-detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.customers-detail-metrics>div{border-bottom:1px solid var(--color-border);border-right:1px solid var(--color-border);gap:.2rem;padding:.75rem;display:grid}.customers-detail-metrics>div:nth-child(2n){border-right:0}.customers-detail-metrics span,.customers-detail-companies small{color:var(--color-text-secondary);font-size:.625rem}.customers-detail-metrics strong{font-variant-numeric:tabular-nums;font-size:.8125rem}.customers-detail-companies{display:grid}.customers-detail-companies>div{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:1rem;padding:.7rem .75rem;display:flex}.customers-detail-companies>div:last-child{border-bottom:0}.customers-detail-companies>div>span{display:grid}.customers-detail-companies>div>span:last-child{text-align:right}.customers-detail-companies strong{font-size:.6875rem}.customers-reference-page,.customers-reference-detail{gap:1rem;min-width:0;display:grid}.customers-reference-header{justify-content:space-between;align-items:center;gap:1rem;display:flex}.customers-reference-header h1{letter-spacing:-.035em;align-items:center;gap:.5rem;margin:0;font-size:1.5rem;display:flex}.customers-reference-header h1 svg{width:1.35rem;height:1.35rem}.customers-reference-header p{color:var(--color-text-secondary);margin:.25rem 0 0;font-size:.75rem}.customers-reference-banner{border-radius:var(--radius-md);color:#664d03;background:#fff9e8;border:1px solid #edd79a;padding:.65rem .75rem;font-size:.6875rem}.customers-reference-controls{align-items:center;gap:.75rem;display:flex}.customers-reference-tabs{background:var(--color-surface-subtle);border-radius:var(--radius-md);flex:none;gap:.1875rem;padding:.1875rem;display:inline-flex}.customers-reference-tabs button{border-radius:var(--radius-sm);color:var(--color-text-secondary);background:0 0;border:0;align-items:center;gap:.35rem;min-height:2.25rem;padding:0 .75rem;font-size:.75rem;font-weight:700;display:inline-flex}.customers-reference-tabs button svg{width:.85rem;height:.85rem}.customers-reference-tabs button[aria-selected=true]{background:var(--color-surface);box-shadow:var(--shadow-card);color:var(--color-brand-primary)}.customers-reference-search{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);flex:1;align-items:center;gap:.5rem;min-width:13rem;min-height:2.5rem;padding:0 .65rem;display:flex}.customers-reference-search:focus-within{border-color:var(--color-brand-primary);box-shadow:0 0 0 2px #1e2f4617}.customers-reference-search svg{color:var(--color-text-secondary);width:.9rem;height:.9rem}.customers-reference-search input{background:0 0;border:0;outline:0;flex:1;min-width:0;font-size:.75rem}.customers-reference-controls>select,.customers-detail-filters select,.customers-invoice-filter select{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-primary);font:inherit;min-height:2.5rem;padding:0 .6rem;font-size:.75rem}.customers-reference-table-card{min-width:0;overflow:hidden}.customers-reference-table-scroll{overflow:auto}.customers-reference-table{border-collapse:collapse;width:100%;min-width:72rem;font-size:.71875rem}.customers-reference-table th,.customers-reference-table td{border-bottom:1px solid var(--color-border);text-align:right;white-space:nowrap;height:2.75rem;padding:0 .75rem}.customers-reference-table th{background:var(--color-surface-subtle);color:var(--color-text-secondary);font-size:.625rem;font-weight:700}.customers-reference-table th[data-align=left],.customers-reference-table th[data-align=left] button,.customers-reference-table td:first-child{text-align:left}.customers-reference-table th button{color:inherit;font:inherit;font-weight:inherit;background:0 0;border:0;justify-content:flex-end;align-items:center;gap:.3rem;padding:0;display:inline-flex}.customers-reference-table th button svg{width:.7rem;height:.7rem}.customers-reference-table th button svg.is-muted{opacity:.35}.customers-reference-table tbody tr:not(.customers-reference-total):hover{background:var(--color-surface-subtle)}.customers-reference-table td a{color:var(--color-text-primary);font-weight:700;text-decoration:none}.customers-reference-table td a:hover{color:var(--color-information);text-decoration:underline}.customers-reference-table td:first-child a{align-items:center;gap:.4rem;display:flex}.customers-reference-total{background:var(--color-surface-subtle);border-bottom:2px solid var(--color-border-strong);font-weight:800}.customers-reference-table .is-danger,.customers-detail-table .is-danger{color:var(--color-danger);font-weight:750}.customers-reference-table .is-warning{color:var(--color-warning)}.customers-reference-table .is-success{color:var(--color-success)}.customers-rating{border-radius:var(--radius-sm);border:1px solid;justify-content:center;align-items:center;min-width:1.65rem;height:1.4rem;padding:0 .35rem;font-family:Consolas,Courier New,monospace;font-size:.6875rem;font-weight:800;display:inline-flex}.rating-a{color:#17663d;background:#e8f7ee;border-color:#a9d8bc}.rating-b{color:#17627b;background:#edf7fb;border-color:#afd7e5}.rating-c{color:#805d00;background:#fff7df;border-color:#ead18a}.rating-d{color:#9a4a13;background:#fff0e6;border-color:#e7b893}.rating-e{color:#9f2732;background:#fcebed;border-color:#e7b1b7}.customers-status,.customers-invoice-status,.customers-branch{border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:.16rem .35rem;font-size:.5625rem;font-weight:700;display:inline-flex}.status-problematic,.status-overdue{color:#9f2732;background:#fcebed;border-color:#e7b1b7}.status-on-watch,.status-partially-paid{color:#805d00;background:#fff7df;border-color:#ead18a}.status-open{color:#17627b;background:#edf7fb;border-color:#afd7e5}.status-paid,.status-normal{color:#17663d;background:#e8f7ee;border-color:#a9d8bc}.status-watch{color:#805d00;background:#fff7df;border-color:#ead18a}.status-critical{color:#9f2732;background:#fcebed;border-color:#e7b1b7}.customers-branch{background:var(--color-surface-subtle);color:var(--color-text-secondary)}.customers-source-strip{border-radius:var(--radius-md);color:#17627b;background:#edf7fb;border:1px solid #afd7e5;justify-content:space-between;align-items:center;padding:.65rem .75rem;font-size:.6875rem;display:flex}.customers-source-strip.source-reference{color:#805d00;background:#fff7df;border-color:#ead18a}.customers-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;display:grid}.customers-summary-grid article{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);gap:.35rem;padding:.85rem;display:grid}.customers-summary-grid span{color:var(--color-text-secondary);font-size:.625rem}.customers-summary-grid strong{font-variant-numeric:tabular-nums;font-size:1rem}.customers-summary-grid .is-danger{color:var(--color-danger)}.customers-summary-grid .is-warning{color:var(--color-warning)}.customers-summary-grid .is-success{color:var(--color-success)}.customers-reference-table td a{flex-direction:column;align-items:flex-start;gap:.05rem}.customers-reference-table td a small{color:var(--color-text-secondary);font-size:.5625rem;font-weight:500}.customers-detail-header{justify-content:space-between;align-items:flex-end;gap:1rem;display:flex}.customers-detail-header h1{margin:.35rem 0 0;font-size:1.5rem}.customers-detail-header p{color:var(--color-text-secondary);margin:.25rem 0 0;font-size:.75rem}.customers-detail-back{color:var(--color-text-secondary);align-items:center;gap:.3rem;font-size:.6875rem;font-weight:700;text-decoration:none;display:inline-flex}.customers-detail-back:hover{color:var(--color-brand-primary)}.customers-detail-back svg{width:.8rem;height:.8rem}.customers-detail-badges{align-items:center;gap:.4rem;display:flex}.customers-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.customers-overview-panel{min-width:0;padding:1rem}.customers-overview-panel h2,.customers-detail-section-title h2{margin:0 0 .85rem;font-size:.9rem}.customers-turnover-bars{gap:.75rem;display:grid}.customers-turnover-bars>div{grid-template-columns:7.5rem minmax(4rem,1fr) auto;align-items:center;gap:.65rem;display:grid}.customers-turnover-bars span{color:var(--color-text-secondary);font-size:.625rem}.customers-turnover-bars>div>div{background:var(--color-surface-subtle);border-radius:999px;height:.45rem;overflow:hidden}.customers-turnover-bars i{background:var(--color-brand-primary);border-radius:inherit;height:100%;display:block}.customers-turnover-bars strong{font-variant-numeric:tabular-nums;font-size:.6875rem}.customers-detail-list{margin:0;display:grid}.customers-detail-list div{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;padding:.5rem 0;display:flex}.customers-detail-list div:last-child{border-bottom:0}.customers-detail-list dt{color:var(--color-text-secondary);font-size:.625rem}.customers-detail-list dd{margin:0;font-size:.6875rem;font-weight:700}.customers-detail-section-title{justify-content:space-between;align-items:center;padding:.85rem .85rem 0;display:flex}.customers-detail-section-title h2{margin-bottom:0}.customers-detail-section-title span{background:var(--color-surface-subtle);border-radius:999px;padding:.25rem .5rem;font-size:.625rem;font-weight:700}.customers-detail-source{color:var(--color-text-secondary);text-align:right;margin:0;font-size:.625rem}.customers-header-actions{flex-wrap:wrap;gap:.5rem;display:flex}.customers-header-actions .finance-button svg{width:.8rem;height:.8rem}.customers-disabled-action{cursor:not-allowed;opacity:.72}.customers-missing{border-radius:var(--radius-sm);color:#805d00;white-space:nowrap;background:#fff7df;border:1px dashed #d8b958;padding:.2rem .35rem;font-size:.5625rem;font-style:normal;font-weight:700;line-height:1.1;display:inline-flex}.customers-missing.is-compact{padding:.14rem .25rem;font-size:.5rem}.customers-manus-controls>select:disabled{color:var(--color-text-secondary);cursor:not-allowed;background:#f8fafc}.customers-manus-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem;display:grid}.customers-manus-kpis article{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-card);gap:.3rem;min-height:6.6rem;padding:1rem;display:grid}.customers-manus-kpis span,.customers-manus-kpis small{color:var(--color-text-secondary);font-size:.625rem}.customers-manus-kpis strong{font-variant-numeric:tabular-nums;font-size:1.1rem}.customers-manus-kpis strong.is-danger{color:var(--color-danger)}.customers-aging-card{padding:1rem}.customers-aging-card h2{margin:0 0 .8rem;font-size:.8rem}.customers-aging-placeholder-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:.65rem;display:grid}.customers-aging-placeholder-grid article{background:var(--color-surface-subtle);border:1px solid var(--color-border);border-radius:var(--radius-sm);gap:.3rem;min-height:4.8rem;padding:.7rem;display:grid}.customers-aging-placeholder-grid article>span,.customers-aging-placeholder-grid small{color:var(--color-text-secondary);font-size:.5625rem}.customers-manus-table{min-width:94rem}.customers-manus-table td .customers-missing{text-overflow:ellipsis;max-width:7.5rem;overflow:hidden}.customers-manus-detail-kpis article{gap:.3rem;min-height:6.7rem;padding:.85rem;display:grid}.customers-manus-detail-kpis article>span,.customers-manus-detail-kpis small{color:var(--color-text-secondary);font-size:.5625rem}.customers-manus-detail-kpis strong{font-variant-numeric:tabular-nums;font-size:.95rem}.customers-manus-detail-kpis strong.is-danger{color:var(--color-danger)}.customers-manus-detail-kpis strong.is-information{color:var(--color-information)}.customers-detail-actions button .customers-missing{background:0 0;border:0;padding:0}.customers-missing-workspace{gap:.5rem;display:grid}.customers-missing-tabs{flex-wrap:wrap;align-items:center;gap:.2rem;display:flex}.customers-missing-tabs span{background:var(--color-surface-subtle);border-radius:var(--radius-sm);color:var(--color-text-secondary);padding:.55rem .7rem;font-size:.6875rem;font-weight:700}.customers-missing-tabs span.is-active{background:var(--color-brand-primary);color:#fff}.customers-missing-tabs em{opacity:.7;font-size:.5rem;font-style:normal}.customers-missing-table{overflow:hidden}.customers-missing-table-head{background:var(--color-surface-subtle);grid-template-columns:repeat(8,minmax(6rem,1fr));min-width:60rem;display:grid;overflow:hidden}.customers-missing-table-head span{color:var(--color-text-secondary);padding:.7rem;font-size:.5625rem;font-weight:700}.customers-missing-empty{color:var(--color-text-secondary);text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:9rem;padding:1rem;display:flex}.customers-missing-empty svg{width:1.4rem;height:1.4rem;margin-bottom:.5rem}.customers-missing-empty strong{color:var(--color-text-primary);font-size:.75rem}.customers-missing-empty p,.customers-placeholder-copy,.customers-ai-placeholder p{margin:.3rem 0 0;font-size:.625rem}.customers-ai-placeholder{align-items:flex-start;gap:.75rem;padding:1rem;display:flex}.customers-ai-placeholder>svg{color:var(--color-brand-primary);width:1.2rem;height:1.2rem}.customers-ai-placeholder strong{margin-bottom:.35rem;font-size:.8rem;display:block}.customers-manus-page .customers-reference-header h1,.customers-reference-detail .customers-detail-heading h1{font-size:1.65rem}.customers-manus-page .customers-reference-header p,.customers-reference-detail .customers-detail-heading p{font-size:.82rem}.customers-manus-page .customers-source-strip{font-size:.75rem}.customers-manus-page .customers-reference-tabs button,.customers-manus-page .customers-reference-search input,.customers-manus-page .customers-reference-controls>select{font-size:.82rem}.customers-manus-kpis span,.customers-manus-kpis small{font-size:.72rem}.customers-manus-kpis strong{font-size:1.22rem}.customers-aging-card h2{font-size:.9rem}.customers-aging-placeholder-grid article>span,.customers-aging-placeholder-grid small{font-size:.66rem}.customers-missing{font-size:.64rem}.customers-missing.is-compact{font-size:.58rem}.customers-manus-table{font-size:.79rem}.customers-manus-table th{font-size:.69rem}.customers-manus-table th,.customers-manus-table td{height:3.05rem}.customers-manus-table td:first-child,.customers-manus-table th:first-child,.customers-manus-table th:first-child button{text-align:left}.customers-manus-table td:first-child a{text-align:left;justify-content:flex-start;align-items:flex-start}.customers-manus-table td:first-child a small{font-size:.65rem}.customers-reference-detail .customers-reference-table{font-size:.79rem}.customers-reference-detail .customers-reference-table th{font-size:.69rem}.customers-manus-detail-kpis article>span,.customers-manus-detail-kpis small{font-size:.66rem}.customers-manus-detail-kpis strong{font-size:1.05rem}.customers-missing-tabs span{font-size:.76rem}.customers-missing-table-head span{font-size:.66rem}.customers-missing-empty strong{font-size:.84rem}.customers-missing-empty p,.customers-placeholder-copy,.customers-ai-placeholder p{font-size:.7rem}.customers-detail-topline{justify-content:space-between;align-items:center;gap:1rem;display:flex}.customers-detail-topline>a{color:var(--color-text-secondary);align-items:center;gap:.35rem;font-size:.75rem;font-weight:700;text-decoration:none;display:inline-flex}.customers-detail-topline>a:hover{color:var(--color-brand-primary)}.customers-detail-topline>a svg{width:.85rem;height:.85rem}.customers-detail-actions{flex-wrap:wrap;justify-content:flex-end;gap:.4rem;display:flex}.customers-detail-actions button{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-sm);color:var(--color-text-primary);align-items:center;gap:.3rem;min-height:2rem;padding:0 .55rem;font-size:.625rem;font-weight:700;display:inline-flex}.customers-detail-actions button.is-danger{color:var(--color-danger);border-color:#b4232c59}.customers-detail-actions button:disabled{cursor:not-allowed;opacity:.62}.customers-detail-actions svg{width:.75rem;height:.75rem}.customers-detail-heading{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);justify-content:space-between;align-items:center;gap:1rem;padding:.9rem 1rem;display:flex}.customers-detail-title{align-items:center;gap:.75rem;min-width:0;display:flex}.customers-detail-title>span{background:var(--color-brand-primary);border-radius:var(--radius-md);color:#fff;flex:none;justify-content:center;align-items:center;width:2.5rem;height:2.5rem;display:inline-flex}.customers-detail-title>span svg{width:1rem;height:1rem}.customers-detail-title small{color:var(--color-brand-secondary);letter-spacing:.08em;font-size:.5625rem;font-weight:800}.customers-detail-title h1{margin:.05rem 0;font-size:1.125rem}.customers-detail-title p{color:var(--color-text-secondary);margin:0;font-size:.65rem}.customers-detail-filters{gap:.4rem;display:flex}.customers-group-link{color:var(--color-information);align-items:center;gap:.35rem;font-size:.6875rem;font-weight:700;text-decoration:none;display:inline-flex}.customers-group-link svg{width:.8rem;height:.8rem}.customers-detail-kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:.75rem;display:grid}.customers-detail-kpi{min-width:0;padding:.8rem}.customers-detail-kpi>span{color:var(--color-text-secondary);font-size:.625rem;display:block}.customers-detail-kpi>strong{font-variant-numeric:tabular-nums;letter-spacing:-.025em;text-overflow:ellipsis;white-space:nowrap;margin-top:.35rem;font-size:clamp(.875rem,1.5vw,1.125rem);display:block;overflow:hidden}.customers-detail-kpi>strong.is-danger{color:var(--color-danger)}.customers-detail-kpi>strong.is-success{color:var(--color-success)}.customers-detail-kpi>strong.is-information{color:var(--color-information)}.customers-detail-kpi>small{color:var(--color-text-secondary);margin-top:.3rem;font-size:.5625rem;line-height:1.35;display:block}.customers-detail-section{min-width:0;overflow:hidden}.customers-detail-section>header{border-bottom:1px solid var(--color-border);align-items:center;min-height:2.75rem;padding:0 .9rem;display:flex}.customers-detail-section>header h2{align-items:center;gap:.35rem;margin:0;font-size:.75rem;display:flex}.customers-detail-section>header h2 svg{width:.8rem;height:.8rem}.customers-aging-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:.65rem;padding:.8rem;display:grid}.customers-aging-grid>div{background:var(--color-surface-subtle);border:1px solid var(--color-border);border-radius:var(--radius-md);gap:.15rem;padding:.65rem;display:grid}.customers-aging-grid span,.customers-aging-grid small{color:var(--color-text-secondary);font-size:.5625rem}.customers-aging-grid strong{font-variant-numeric:tabular-nums;font-size:.75rem}.customers-detail-table-scroll{max-height:30rem;overflow:auto}.customers-detail-table{border-collapse:collapse;width:100%;min-width:58rem;font-size:.6875rem}.customers-detail-table th,.customers-detail-table td{border-bottom:1px solid var(--color-border);text-align:right;white-space:nowrap;height:2.6rem;padding:0 .7rem}.customers-detail-table th{background:var(--color-surface-subtle);color:var(--color-text-secondary);z-index:2;font-size:.59375rem;position:sticky;top:0}.customers-detail-table th:first-child,.customers-detail-table td:first-child,.customers-detail-table th:nth-child(2),.customers-detail-table td:nth-child(2){text-align:left}.customers-detail-table tbody tr:hover{background:var(--color-surface-subtle)}.customers-detail-table td:first-child{font-weight:700}.customers-detail-table td button{color:var(--color-text-primary);font:inherit;background:0 0;border:0;padding:0;font-weight:700}.customers-detail-table td a{color:var(--color-information);font-weight:700;text-decoration:none}.customers-detail-empty{color:var(--color-text-secondary);text-align:center!important;height:6rem!important}.customers-detail-hint{color:var(--color-text-secondary);margin:0;padding:.55rem .75rem;font-size:.5625rem}.customers-ai-summary{align-items:center;gap:.75rem;padding:.85rem;display:flex}.customers-ai-summary>span{border-radius:var(--radius-md);color:var(--color-information);background:#2468a21a;justify-content:center;align-items:center;width:2.5rem;height:2.5rem;display:inline-flex}.customers-ai-summary svg{width:1rem;height:1rem}.customers-ai-summary small{color:var(--color-information);letter-spacing:.08em;font-size:.5625rem;font-weight:800}.customers-ai-summary h2{margin:.05rem 0;font-size:.75rem}.customers-ai-summary p{color:var(--color-text-secondary);margin:0;font-size:.625rem}.customers-activity-tabs{border-bottom:1px solid var(--color-border);align-items:center;gap:.25rem;padding:.55rem .7rem 0;display:flex;overflow-x:auto}.customers-activity-tabs button{color:var(--color-text-secondary);background:0 0;border:0;border-bottom:2px solid #0000;flex:none;min-height:2rem;padding:0 .6rem;font-size:.65rem;font-weight:700}.customers-activity-tabs button[aria-selected=true]{border-bottom-color:var(--color-brand-primary);color:var(--color-brand-primary)}.customers-activity-empty{color:var(--color-text-secondary);flex-direction:column;justify-content:center;align-items:center;gap:.4rem;min-height:8rem;font-size:.6875rem;display:flex}.customers-activity-empty svg{width:1rem;height:1rem}.customers-customer-tabs{padding-top:0}.customers-invoice-filter{color:var(--color-text-secondary);justify-content:space-between;align-items:center;padding:.55rem .75rem;font-size:.625rem;display:flex}.customers-invoice-filter select{min-height:2rem}.cashflow-page{gap:.625rem;min-width:0;display:grid}.cashflow-page-header{margin-bottom:0}.cashflow-sheet-card{min-width:0;overflow:hidden}.cashflow-sheet-toolbar{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:1rem;padding:.75rem 1.25rem;display:flex}.cashflow-sheet-toolbar h2{align-items:center;gap:.375rem;margin:.125rem 0;font-size:1.0625rem;display:flex}.cashflow-sheet-toolbar h2 svg{color:var(--color-brand-secondary);width:1rem;height:1rem}.cashflow-sheet-toolbar p{color:var(--color-text-secondary);margin:.125rem 0 0;font-size:.75rem}.cashflow-view-tabs{background:var(--color-surface-subtle);border-radius:var(--radius-md);flex:none;gap:.1875rem;padding:.1875rem;display:inline-flex}.cashflow-view-tabs button{border-radius:var(--radius-sm);color:var(--color-text-secondary);background:0 0;border:0;min-height:2.125rem;padding:0 .875rem;font-size:.75rem;font-weight:700}.cashflow-view-tabs button[aria-selected=true]{background:var(--color-surface);box-shadow:var(--shadow-card);color:var(--color-brand-primary)}.cashflow-sheet-scroll{scrollbar-color:var(--color-border-strong) var(--color-surface-subtle);min-height:31rem;max-height:calc(100vh - 17.5rem);overflow:auto}.cashflow-sheet-table{border-collapse:separate;border-spacing:0;width:100%;min-width:max-content;font-size:.75rem}.cashflow-sheet-table th,.cashflow-sheet-table td{border-bottom:1px solid var(--color-border);border-right:1px solid var(--color-border);height:2.625rem;padding:0}.cashflow-sheet-table thead th{background:var(--color-brand-primary);color:#fff;letter-spacing:.025em;text-align:center;text-transform:capitalize;white-space:nowrap;z-index:4;padding:0 .75rem;font-size:.6875rem;font-weight:700;position:sticky;top:0}.cashflow-sheet-table thead tr:nth-child(2) th{background:var(--color-surface-subtle);color:var(--color-text-primary);top:2.625rem}.cashflow-sheet-table thead th.is-current{box-shadow:inset 0 -3px var(--color-brand-secondary)}.cashflow-sheet-table .cashflow-sheet-label-heading{text-align:left;z-index:6;min-width:23rem;left:0}.cashflow-sheet-table tbody th{background:var(--color-surface);text-align:left;z-index:2;min-width:23rem;max-width:27rem;padding:0 .875rem;position:sticky;left:0}.cashflow-sheet-table tbody th span{text-overflow:ellipsis;vertical-align:middle;white-space:nowrap;max-width:23rem;display:inline-block;overflow:hidden}.cashflow-sheet-table tbody th small{color:var(--color-text-secondary);float:right;margin-left:.5rem;font-size:.5625rem;font-weight:500}.cashflow-sheet-table td{background:var(--color-surface);text-align:right;min-width:8.25rem}.cashflow-sheet-table td button{color:var(--color-text-primary);cursor:pointer;font:inherit;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap;background:0 0;border:0;width:100%;height:100%;padding:0 .625rem}.cashflow-sheet-table td button:hover,.cashflow-sheet-table td button:focus-visible{background:var(--color-surface-subtle);color:var(--color-brand-primary);outline:1px solid var(--color-brand-secondary);outline-offset:-1px}.cashflow-sheet-table td button.is-negative{color:var(--color-brand-secondary)}.cashflow-sheet-table .cashflow-sheet-row-total th,.cashflow-sheet-table .cashflow-sheet-row-total td{background:var(--color-surface-subtle);font-weight:800}.cashflow-sheet-table .cashflow-sheet-row-total th{box-shadow:inset 3px 0 var(--color-brand-secondary)}.cashflow-sheet-spacer th,.cashflow-sheet-spacer td{border-bottom:0;height:.875rem;background:var(--color-background)!important}.cashflow-sheet-mode-actual{box-shadow:inset 0 -2px var(--color-success)}.cashflow-sheet-mode-forecast{box-shadow:inset 0 -2px var(--color-brand-secondary)}.cashflow-sheet-mode-budget{box-shadow:inset 0 -2px var(--color-brand-primary)}.cashflow-source-modal{max-width:34rem}.cashflow-formula{overflow-wrap:anywhere;max-width:65%;font-family:Consolas,Courier New,monospace}.cashflow-empty-state{color:var(--color-text-secondary);text-align:center;place-content:center;min-height:14rem;padding:2rem;display:grid}.cashflow-empty-state strong{color:var(--color-text-primary)}.cashflow-empty-state p{font-size:.75rem}@keyframes pulse{50%{opacity:.5}}@keyframes spin{to{transform:rotate(360deg)}}.finance-button svg.is-spinning{animation:.8s linear infinite spin}@media (prefers-reduced-motion:reduce){*,:before,:after{transition-duration:.01ms!important;animation-duration:.01ms!important}}@media (max-width:1023px){.sidebar{width:var(--sidebar-collapsed)}.sidebar .sidebar-logo-full,.sidebar .nav-label{display:none}.sidebar .sidebar-logo-mark{display:block}.platform-main,.platform-main[data-sidebar-collapsed=true]{margin-left:var(--sidebar-collapsed)}.sidebar-toggle,.assistant-button span,.profile-name,.sidebar[data-collapsed=true] .nav-expand,.sidebar:not([data-mobile-open=true]) .nav-expand,.sidebar[data-collapsed=true] .nav-submenu,.sidebar:not([data-mobile-open=true]) .nav-submenu{display:none}.sidebar[data-collapsed=true] .nav-item-parent:hover .nav-submenu{background:var(--color-brand-primary);border-radius:var(--radius-md);opacity:1;border:1px solid #ffffff1f;min-width:12rem;max-height:24rem;margin:0;padding:.375rem;display:grid;position:absolute;top:0;left:calc(100% + .375rem);box-shadow:0 8px 24px #0f172a2e}.sidebar[data-collapsed=true] .nav-item-parent:hover .nav-sublink{border-left:0;margin:0;padding:.5rem .625rem}.finance-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-main-grid,.finance-bottom-grid{grid-template-columns:1fr}.finance-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"sales margin""customers suppliers""warehouse warehouse""cashflow cashflow"}.finance-overview-grid-revised{grid-template-rows:auto auto 10.5rem 10.5rem;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"sales customers""suppliers warehouse""stabilization flow""consolidation flow"}.cashflow-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.customers-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customers-detail-kpi-grid,.customers-aging-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.customers-manus-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.customers-aging-placeholder-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (max-width:767px){.sidebar{width:min(19rem,86vw);transform:translate(-100%);box-shadow:0 16px 40px #0f172a47}.sidebar[data-mobile-open=true]{transform:translate(0)}.sidebar[data-mobile-open=true] .sidebar-logo-full{display:block}.sidebar[data-mobile-open=true] .sidebar-logo-mark{display:none}.sidebar[data-mobile-open=true] .nav-label{display:inline}.platform-main,.platform-main[data-sidebar-collapsed=true]{margin-left:0}.mobile-overlay{background:var(--color-overlay);z-index:25;border:0;display:block;position:fixed;inset:0}.mobile-menu-button{display:inline-flex}.topbar{gap:var(--space-sm);padding:0 var(--space-md)}.breadcrumb{display:none}.topbar-search{max-width:none}.topbar-search input::placeholder{color:#0000}.assistant-button{min-width:2rem;padding:0;display:inline-flex}.assistant-button span{display:none}.ai-drawer{border-left:0;width:100vw}.page-content{padding:var(--space-lg) var(--space-md)}.finance-header{flex-direction:column;align-items:flex-start}.finance-actions{width:100%}.finance-actions .finance-button{flex:1}.finance-statusbar>span:last-child{display:none}.finance-summary{grid-template-columns:auto 1fr;align-items:flex-start}.finance-summary>.finance-text-button{grid-column:2}.finance-kpi-grid{grid-template-columns:1fr}.finance-overview-grid{grid-template-columns:1fr;grid-template-areas:"sales""margin""customers""suppliers""warehouse""cashflow"}.finance-overview-grid-revised{grid-template-rows:auto;grid-template-areas:"sales""customers""suppliers""warehouse""stabilization""consolidation""flow"}.finance-flow-chart-card{min-height:22rem}.finance-filter-select{flex:1}.finance-filter-select select{width:100%;min-width:0}.finance-domain-card{min-height:11.5rem}.bar-chart{gap:.5rem;padding:0 .25rem}.cashflow-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cashflow-summary-grid>div{border-bottom:1px solid var(--color-border)}.cashflow-summary-grid>div:nth-child(2){border-right:0}.cashflow-summary-grid>div:nth-last-child(-n+2){border-bottom:0}.cashflow-thresholds{grid-template-columns:1fr}.cashflow-sheet-toolbar{flex-direction:column;align-items:stretch}.cashflow-view-tabs{grid-template-columns:repeat(4,minmax(0,1fr));display:grid}.cashflow-view-tabs button{padding:0 .25rem}.cashflow-sheet-scroll{min-height:24rem;max-height:none}.cashflow-sheet-table .cashflow-sheet-label-heading,.cashflow-sheet-table tbody th{min-width:13rem}.cashflow-sheet-table tbody th span{max-width:10rem}.customers-kpi-grid{grid-template-columns:1fr}.customers-toolbar{flex-direction:column;align-items:stretch}.customers-search{max-width:none}.customers-group-filter{justify-content:space-between}.customers-group-filter select{flex:1}.customers-connection-banner{grid-template-columns:auto 1fr}.customers-connection-banner>small{display:none}.customers-workspace-heading{flex-direction:column;align-items:stretch;gap:.75rem}.customers-view-tabs{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.customers-view-tabs button{justify-content:center}.customers-table-scroll{min-height:24rem;max-height:none}.customers-pagination{flex-direction:column;align-items:flex-start;gap:.5rem}.customers-detail-panel{border-left:0;width:100vw}.customers-detail-metrics{grid-template-columns:1fr}.customers-detail-metrics>div{border-right:0}.customers-reference-header,.customers-detail-topline,.customers-detail-heading{flex-direction:column;align-items:stretch}.customers-reference-header .finance-button{align-self:flex-start}.customers-reference-controls{flex-direction:column;align-items:stretch}.customers-reference-tabs{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.customers-reference-tabs button{justify-content:center}.customers-reference-controls>select{width:100%}.customers-detail-actions{justify-content:flex-start}.customers-detail-filters{grid-template-columns:1fr;width:100%;display:grid}.customers-detail-filters select{width:100%}.customers-detail-kpi-grid,.customers-aging-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customers-group-link{align-self:flex-start}.customers-summary-grid,.customers-detail-grid,.customers-manus-kpis{grid-template-columns:1fr}.customers-aging-placeholder-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.customers-detail-header{flex-direction:column;align-items:flex-start}.customers-source-strip{flex-direction:column;align-items:flex-start;gap:.25rem}.customers-turnover-bars>div{grid-template-columns:6.5rem minmax(3rem,1fr) auto}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}
