:root{color-scheme:light;--bg: #f4f4f5;--rail: #fafafa;--surface: #ffffff;--surface-2: #f7f7f8;--surface-raised: #ffffff;--surface-hover: #f1f1f3;--surface-active: #e9e9ec;--input-bg: #ffffff;--overlay: rgba(10, 10, 12, .45);--text: #111113;--text-2: #3a3a40;--muted: #6b6b73;--subtle: #9b9ba3;--border: #e4e4e7;--border-subtle: #ececef;--border-strong: #d4d4d8;--input-border: #d4d4d8;--primary: #1463f3;--primary-hover: #0f55d6;--primary-active: #0c48b6;--primary-soft: rgba(20, 99, 243, .09);--primary-text: #ffffff;--link: #1463f3;--danger: #d92d20;--danger-hover: #b42318;--ok-bg: rgba(22, 163, 74, .1);--ok-fg: #15803d;--ok-dot: #16a34a;--warn-bg: rgba(217, 119, 6, .12);--warn-fg: #a15c07;--warn-dot: #d97706;--bad-bg: rgba(217, 45, 32, .09);--bad-fg: #c4271b;--bad-dot: #e5484d;--info-bg: rgba(20, 99, 243, .09);--info-fg: #1457d6;--info-dot: #3b82f6;--neutral-bg: rgba(113, 113, 122, .12);--neutral-fg: #52525b;--neutral-dot: #a1a1aa;--code-bg: #0c0c0d;--code-fg: #e4e4e7;--focus: #1463f3;--focus-ring: 0 0 0 3px rgba(20, 99, 243, .25);--shadow-lg: 0 16px 40px -12px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .04);--radius-sm: 7px;--radius: 10px;--radius-lg: 12px;--ctl-h: 38px;--ctl-px: .8rem;--cell-py: .75rem;--cell-px: 1rem;--kv-py: .95rem;--card-p: 1.25rem;--gap: 1rem;--page-px: 2rem;--page-py: 1.5rem;--rail-w: 240px;--footer-h: 34px;--topbar-h: 72px;--content-max: 1440px;--t-fast: .12s;--t: .18s;font-family:Inter,Segoe UI Variable,Segoe UI,system-ui,-apple-system,BlinkMacSystemFont,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;line-height:1.5;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}[data-theme=dark]{color-scheme:dark;--bg: #111111;--rail: #161616;--surface: #0b0b0b;--surface-2: #141414;--surface-raised: #1a1a1a;--surface-hover: #1c1c1c;--surface-active: #262626;--input-bg: #0b0b0b;--overlay: rgba(0, 0, 0, .62);--text: #f2f2f2;--text-2: #d0d0d0;--muted: #a3a3a3;--subtle: #6e6e6e;--border: #2c2c2c;--border-subtle: #232323;--border-strong: #3a3a3a;--input-border: #333333;--primary: #1a6cf5;--primary-hover: #3b82f6;--primary-active: #155bd1;--primary-soft: rgba(59, 130, 246, .14);--link: #5b93f7;--danger: #e5484d;--danger-hover: #f2555a;--ok-bg: rgba(48, 164, 108, .15);--ok-fg: #4cc38a;--ok-dot: #30a46c;--warn-bg: rgba(245, 166, 35, .14);--warn-fg: #f1b44c;--warn-dot: #f5a623;--bad-bg: rgba(229, 72, 77, .15);--bad-fg: #ff7b80;--bad-dot: #e5484d;--info-bg: rgba(59, 130, 246, .15);--info-fg: #7aa7ff;--info-dot: #3b82f6;--neutral-bg: rgba(255, 255, 255, .07);--neutral-fg: #bdbdbd;--neutral-dot: #7a7a7a;--code-bg: #050505;--code-fg: #e5e5e5;--focus: #3b82f6;--focus-ring: 0 0 0 3px rgba(59, 130, 246, .35);--shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06)}[data-density=compact]{--ctl-h: 32px;--ctl-px: .65rem;--cell-py: .45rem;--cell-px: .75rem;--kv-py: .6rem;--card-p: 1rem;--gap: .75rem;--page-py: 1.1rem;font-size:13px}[data-motion=reduced] *,[data-motion=reduced] *:before,[data-motion=reduced] *:after{transition:none!important;animation:none!important}*,*:before,*:after{box-sizing:border-box}html,body{margin:0;background:var(--bg);color:var(--text)}body{min-height:100vh}h1,h2,h3{color:var(--text);letter-spacing:-.01em}h1{font-size:1.55rem;font-weight:600;line-height:1.25;margin:0}h2{font-size:1.02rem;font-weight:600;margin:2rem 0 .85rem}h3{font-size:.95rem;font-weight:600;margin:0 0 .4rem}p{margin:.5rem 0}a{color:var(--link);text-decoration:none;font-weight:500}a:hover{text-decoration:underline;text-underline-offset:2px}code{font-family:ui-monospace,SF Mono,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85em;word-break:break-all;background:var(--surface-2);border:1px solid var(--border-subtle);padding:.08em .4em;border-radius:5px;color:var(--text-2)}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}::selection{background:var(--primary-soft)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.skip-link{position:absolute;left:-999px;top:.5rem;background:var(--surface-raised);color:var(--text);padding:.5rem 1rem;border-radius:var(--radius-sm);box-shadow:var(--shadow-lg);z-index:200}.skip-link:focus{left:.5rem}.muted{color:var(--muted)}.small{font-size:.86em}.text-bad{color:var(--bad-fg);font-weight:600}.amount-credit{color:var(--ok-fg);font-weight:600;font-variant-numeric:tabular-nums}.amount-debit{color:var(--bad-fg);font-weight:600;font-variant-numeric:tabular-nums}.icon{width:1.15em;height:1.15em;flex-shrink:0;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:-.2em}.mt-section{margin-top:2rem}.app{display:grid;grid-template-columns:var(--rail-w) minmax(0,1fr);min-height:100vh}.rail{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:var(--rail);border-right:1px solid var(--border-subtle);z-index:40}.rail-brand{display:flex;align-items:center;gap:.7rem;height:var(--topbar-h);padding:0 1.15rem;flex-shrink:0;color:var(--text);text-decoration:none;border-bottom:1px solid var(--border-subtle)}.rail-brand:hover{text-decoration:none}.brand-mark{width:34px;height:34px;border-radius:9px;background:var(--primary);color:#fff;display:grid;place-items:center;flex-shrink:0}.brand-mark svg{width:19px;height:19px}.rail-brand-text{display:flex;flex-direction:column;line-height:1.2;min-width:0}.rail-brand-text strong{font-size:1.05rem;font-weight:600}.rail-brand-text span{font-size:.76rem;color:var(--muted);white-space:nowrap}.rail-nav{flex:1;overflow-y:auto;padding:.9rem .75rem 1rem;scrollbar-width:thin}.rail-group+.rail-group{margin-top:1.1rem}.rail-group-label{margin:0 0 .4rem;padding:0 .75rem;font-size:.74rem;color:var(--subtle);white-space:nowrap}.rail-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}.rail-nav a{display:flex;align-items:center;gap:.75rem;height:40px;padding:0 .75rem;border-radius:var(--radius-sm);color:var(--muted);font-weight:500;text-decoration:none;white-space:nowrap;transition:background var(--t-fast),color var(--t-fast)}.rail-nav a .icon{width:20px;height:20px}.rail-nav a:hover{background:var(--surface-hover);color:var(--text);text-decoration:none}.rail-nav a.active{background:var(--surface-active);color:var(--text)}.rail-foot{display:flex;align-items:center;gap:.55rem;height:var(--footer-h);padding:0 1.15rem;border-top:1px solid var(--border-subtle);font-size:.78rem;color:var(--muted);flex-shrink:0}.dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;background:var(--neutral-dot)}.dot-ok{background:var(--ok-dot)}.dot-warn{background:var(--warn-dot)}.user-name{font-weight:600;font-size:.88rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}.user-role{font-size:.76rem;color:var(--muted)}.avatar{position:relative;width:36px;height:36px;border-radius:50%;background:var(--surface-active);color:var(--text);display:grid;place-items:center;font-size:.78rem;font-weight:600;letter-spacing:.02em;flex-shrink:0}.avatar-lg{width:56px;height:56px;font-size:1.1rem}.presence{position:absolute;right:-1px;bottom:-1px;width:11px;height:11px;border-radius:50%;background:var(--ok-dot);border:2px solid var(--bg)}.presence-warn{background:var(--warn-dot)}.main-col{min-width:0;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:30;height:var(--topbar-h);display:grid;grid-template-columns:minmax(max-content,1fr) minmax(220px,600px) minmax(max-content,1fr);align-items:center;gap:1rem;padding:0 1.25rem;background:var(--bg);border-bottom:1px solid var(--border-subtle)}.topbar-left,.topbar-right{display:flex;align-items:center;gap:.6rem;min-width:0}.topbar-right{justify-content:flex-end}.topbar-center{display:flex;justify-content:center;min-width:0}.topbar-divider{width:1px;height:28px;background:var(--border);margin:0 .15rem}.btn-new{height:40px;padding:0 1.05rem;font-size:.98rem;font-weight:550}.btn-new .icon{width:19px;height:19px}.user-chip{flex-shrink:0;display:flex;align-items:center;gap:.65rem;padding:.25rem .6rem .25rem .25rem;border-radius:var(--radius);color:var(--text);text-decoration:none;min-width:0}.user-chip:hover{background:var(--surface-hover);text-decoration:none}.user-meta{display:flex;flex-direction:column;line-height:1.25;min-width:0}.btn-logout .icon{width:17px;height:17px}.search-field{width:100%;display:flex;align-items:center;gap:.75rem;height:44px;padding:0 .6rem 0 .9rem;border-radius:var(--radius);border:1px solid var(--input-border);background:var(--input-bg);color:var(--muted);font:inherit;font-size:.96rem;cursor:text;transition:border-color var(--t-fast)}.search-field:hover{border-color:var(--border-strong)}.search-field:focus-visible{outline:none;border-color:var(--focus);box-shadow:var(--focus-ring)}.search-field .icon{width:21px;height:21px}.search-field span{flex:1;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}kbd,.kbd{font-family:inherit;font-size:.72rem;font-weight:600;color:var(--muted);background:var(--surface-2);border:1px solid var(--border);border-radius:5px;padding:.1rem .4rem;white-space:nowrap}.mock-role{display:inline-flex;align-items:center;gap:.5rem}.mock-role select{max-width:160px;height:38px;font-size:.85rem}main#conteudo{flex:1;width:100%;max-width:var(--content-max);margin:0 auto;padding:var(--page-py) var(--page-px) calc(var(--footer-h) + 2.5rem);min-width:0;animation:page-in var(--t) ease-out}main:focus{outline:none}@keyframes page-in{0%{opacity:0}}.rail-backdrop{display:none}.app-footer{position:fixed;left:var(--rail-w);right:0;bottom:0;z-index:25;height:var(--footer-h);display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0 1.25rem;background:var(--bg);border-top:1px solid var(--border-subtle);font-size:.78rem;color:var(--muted)}.app-footer strong{color:var(--text-2);font-weight:600}.app-footer-meta{display:inline-flex;align-items:center;gap:.45rem}.menu-anchor{position:relative;display:inline-flex}.menu{position:absolute;top:calc(100% + 6px);left:0;min-width:250px;padding:.35rem;background:var(--surface-raised);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);z-index:70;animation:menu-in var(--t-fast) ease-out}.menu-end{left:auto;right:0}.menu-item{display:flex;align-items:center;gap:.7rem;width:100%;padding:.55rem .65rem;border:0;border-radius:6px;background:transparent;color:var(--text-2);font:inherit;text-align:left;cursor:pointer}.menu-item .icon{width:18px;height:18px;color:var(--muted)}.menu-item:hover,.menu-item:focus{outline:none;background:var(--surface-hover);color:var(--text)}.menu-item-text{display:flex;flex-direction:column;line-height:1.3}.menu-item-text small{color:var(--muted);font-size:.78rem}@keyframes menu-in{0%{opacity:0;transform:translateY(-4px)}}.standalone-shell{min-height:100vh;display:grid;grid-template-rows:auto 1fr auto;background:var(--bg)}.standalone-header{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 2rem}.standalone-brand{display:flex;align-items:center;gap:.7rem}.standalone-brand strong{display:block;font-size:1.05rem}.standalone-brand span{font-size:.78rem;color:var(--muted)}.standalone-footer{text-align:center;padding:1.25rem;color:var(--subtle);font-size:.78rem}.standalone{width:min(540px,calc(100% - 2rem));margin:2rem auto;align-self:start;background:var(--surface);padding:2.25rem;border-radius:var(--radius-lg);border:1px solid var(--border)}.standalone-wide{width:min(700px,calc(100% - 2rem))}.standalone h1{font-size:1.4rem;margin-bottom:.5rem}.standalone .state{border:0;padding:0;background:transparent}.standalone-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;margin-bottom:1.25rem;background:var(--surface-active);color:var(--text-2)}.standalone-icon .icon{width:22px;height:22px}.standalone-icon.tone-warn{color:var(--warn-fg);background:var(--warn-bg)}.standalone-icon.tone-bad{color:var(--bad-fg);background:var(--bad-bg)}.steps{counter-reset:step;list-style:none;padding:0;margin:1rem 0 1.25rem;display:flex;flex-direction:column}.steps li{counter-increment:step;display:grid;grid-template-columns:28px 1fr;gap:.85rem;align-items:start;padding:.8rem 0;border-bottom:1px solid var(--border-subtle)}.steps li:before{content:counter(step);width:26px;height:26px;border-radius:50%;border:1px solid var(--border-strong);display:grid;place-items:center;font-size:.78rem;font-weight:600;color:var(--text-2)}.empty-page{max-width:520px;margin:4rem auto;text-align:center}.empty-page .standalone-icon{margin:0 auto 1.25rem}.empty-page .page-actions{justify-content:center;margin-top:1.25rem}.page-header{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem 1.5rem;flex-wrap:wrap;margin-bottom:1.5rem}.page-header p{margin:.35rem 0 0;max-width:76ch}.page-eyebrow{display:block;font-size:.85rem;color:var(--muted);margin-bottom:.25rem}.page-actions,.row-actions,.form-actions,.filters-actions,.section-actions{display:flex;gap:.5rem;flex-wrap:wrap;align-items:center}.section-actions{justify-content:space-between;margin:2rem 0 .85rem}.section-actions h2{margin:0}.form-actions{justify-content:flex-end;margin-top:1.25rem}.section-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin:.5rem 0 .85rem}.section-head h2{margin:0}.btn{font:inherit;font-weight:500;font-size:.93em;display:inline-flex;align-items:center;justify-content:center;gap:.45rem;height:var(--ctl-h);padding:0 .95rem;border-radius:var(--radius-sm);border:1px solid var(--border-strong);background:transparent;color:var(--text);cursor:pointer;white-space:nowrap;text-decoration:none;transition:background var(--t-fast),border-color var(--t-fast),color var(--t-fast)}.btn:hover:not(:disabled){background:var(--surface-hover);text-decoration:none}.btn:focus-visible{outline:none;box-shadow:var(--focus-ring);border-color:var(--focus)}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-primary{background:var(--primary);border-color:var(--primary);color:var(--primary-text)}.btn-primary:hover:not(:disabled){background:var(--primary-hover);border-color:var(--primary-hover)}.btn-primary:active:not(:disabled){background:var(--primary-active)}.btn-danger{background:var(--danger);border-color:var(--danger);color:#fff}.btn-danger:hover:not(:disabled){background:var(--danger-hover);border-color:var(--danger-hover)}.btn-ghost{background:transparent;border-color:transparent;color:var(--text-2)}.btn-sm{height:30px;padding:0 .65rem;font-size:.85em}.btn-block{width:100%}.btn-icon{font:inherit;display:inline-grid;place-items:center;width:40px;height:40px;padding:0;border-radius:var(--radius-sm);border:1px solid transparent;background:transparent;color:var(--text-2);cursor:pointer;font-size:1.2rem;line-height:1;transition:background var(--t-fast),color var(--t-fast)}.btn-icon:hover,.btn-icon[aria-expanded=true]{background:var(--surface-hover);color:var(--text)}.btn-icon .icon{width:20px;height:20px}.menu-toggle{display:none}.badge{display:inline-flex;align-items:center;gap:.4rem;height:24px;padding:0 .6rem;border-radius:999px;font-size:.78rem;font-weight:500;white-space:nowrap;margin-right:.25rem;line-height:1}.badge:before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}.badge-ok{background:var(--ok-bg);color:var(--ok-fg)}.badge-warn{background:var(--warn-bg);color:var(--warn-fg)}.badge-bad{background:var(--bad-bg);color:var(--bad-fg)}.badge-info{background:var(--info-bg);color:var(--info-fg)}.badge-neutral{background:var(--neutral-bg);color:var(--neutral-fg)}.tag{display:inline-flex;align-items:center;height:24px;padding:0 .55rem;border-radius:6px;border:1px solid var(--border);font-size:.8rem;font-weight:500;color:var(--text-2);margin:0 .25rem .25rem 0}.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:0 .25rem .85rem;margin-bottom:1.1rem;border-bottom:1px solid var(--border-subtle)}.list-count{color:var(--muted);font-size:.9rem}.list-count strong{color:var(--text);font-weight:600}.view-toggle{display:inline-flex;gap:2px;padding:3px;border:1px solid var(--border);border-radius:var(--radius-sm)}.view-toggle button{display:grid;place-items:center;width:32px;height:28px;border:0;border-radius:5px;background:transparent;color:var(--muted);cursor:pointer}.view-toggle button .icon{width:17px;height:17px}.view-toggle button:hover{color:var(--text)}.view-toggle button[aria-pressed=true]{background:var(--surface-active);color:var(--text)}.record-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1.25rem}.record-card{position:relative;display:flex;flex-direction:column;padding:var(--card-p) calc(var(--card-p) + .25rem) .5rem;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);min-width:0;transition:border-color var(--t-fast)}.record-card:hover{border-color:var(--border-strong)}.record-head{display:flex;align-items:center;gap:.9rem;padding:.5rem 0 1.15rem;min-width:0}.record-icon{width:46px;height:46px;border-radius:50%;background:var(--surface-active);color:var(--muted);display:grid;place-items:center;flex-shrink:0}.record-icon .icon{width:22px;height:22px}.record-title{display:flex;flex-direction:column;align-items:flex-start;gap:.4rem;min-width:0}.record-title-text{font-size:1.15rem;font-weight:500;color:var(--text);line-height:1.3;overflow-wrap:anywhere}.record-title-text a{color:var(--text);font-weight:500}.record-title-text a:hover{color:var(--link)}.record-rows{display:flex;flex-direction:column}.record-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:56px;padding:var(--kv-py) 0;border-top:1px solid var(--border-subtle)}.record-key{color:var(--text-2);font-size:.92em;flex-shrink:0;max-width:45%}.record-value{text-align:right;color:var(--text);font-size:1.02em;min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.record-value a{color:var(--link)}.record-value .badge{margin-right:0}.record-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:.5rem;padding:.85rem 0 .5rem;border-top:1px solid var(--border-subtle)}.record-actions:empty{display:none}.record-actions .row-actions{justify-content:flex-end}.record-actions .btn{height:32px;font-size:.86em}.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:var(--gap)}.cards-small{grid-template-columns:repeat(auto-fill,minmax(180px,1fr))}.card{position:relative;display:flex;flex-direction:column;gap:.3rem;padding:var(--card-p) calc(var(--card-p) + .25rem);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);color:var(--text);text-decoration:none;transition:border-color var(--t-fast)}a.card:hover{border-color:var(--border-strong);text-decoration:none}a.card:focus-visible{outline:none;box-shadow:var(--focus-ring);border-color:var(--focus)}.card-top{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.4rem}.card-icon{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--surface-active);color:var(--muted)}.card-icon .icon{width:17px;height:17px}.card-title{font-size:.92em;color:var(--text-2)}.card-value{font-size:2rem;font-weight:500;letter-spacing:-.02em;line-height:1.15;font-variant-numeric:tabular-nums;color:var(--text)}.card-hint{font-size:.82rem;color:var(--muted)}.card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:.85rem;padding-top:.85rem;border-top:1px solid var(--border-subtle);font-size:.82rem;color:var(--muted)}.card-foot .icon{width:15px;height:15px;transition:transform var(--t-fast)}a.card:hover .card-foot .icon{transform:translate(3px);color:var(--text)}.card-alert .card-icon{background:var(--bad-bg);color:var(--bad-fg)}.card-alert .card-value,.card-alert .card-foot span{color:var(--bad-fg)}.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem 1.25rem;border-bottom:1px solid var(--border-subtle)}.panel-head h2,.panel-head h3{margin:0;font-size:1rem;font-weight:600}.panel-head p{margin:.2rem 0 0}.panel-body{padding:1.25rem}.panel-row{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;min-height:64px;padding:.9rem 1.25rem;border-top:1px solid var(--border-subtle)}.panel-row:first-child{border-top:0}.panel-row-text{min-width:0}.panel-row-text strong{display:block;font-weight:500}.panel-row-text span{display:block;color:var(--muted);font-size:.88em}.panel-row-control{flex-shrink:0}.grid-2{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);gap:1.25rem;align-items:start}.stackbar{display:flex;height:8px;border-radius:999px;overflow:hidden;background:var(--surface-active);gap:2px}.stackbar span{display:block;height:100%;min-width:4px}.tone-ok{background:var(--ok-dot)}.tone-warn{background:var(--warn-dot)}.tone-bad{background:var(--bad-dot)}.tone-info{background:var(--info-dot)}.tone-neutral{background:var(--neutral-dot)}.legend{list-style:none;padding:0;margin:1.1rem 0 0;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));column-gap:2rem}.legend li{border-top:1px solid var(--border-subtle)}.legend a{display:flex;align-items:center;gap:.65rem;padding:.8rem .15rem;color:var(--text-2);font-weight:400}.legend a:hover{color:var(--text);text-decoration:none}.legend .swatch{width:9px;height:9px;border-radius:50%;flex-shrink:0}.legend .legend-label{flex:1;min-width:0}.legend .legend-value{font-variant-numeric:tabular-nums;color:var(--text)}.legend .legend-pct{font-variant-numeric:tabular-nums;color:var(--muted);font-size:.85em;min-width:3em;text-align:right}.total-line{display:flex;align-items:baseline;gap:.5rem;margin-bottom:1rem}.total-line strong{font-size:2rem;font-weight:500;letter-spacing:-.02em;font-variant-numeric:tabular-nums}.quick-links{list-style:none;margin:0;padding:0 1.25rem}.quick-links li+li{border-top:1px solid var(--border-subtle)}.quick-links a{display:flex;align-items:center;gap:.85rem;padding:.85rem 0;color:var(--text)}.quick-links a:hover{text-decoration:none}.quick-links a:hover strong{color:var(--link)}.quick-links .ql-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--surface-active);color:var(--text-2);flex-shrink:0}.quick-links .ql-text{display:flex;flex-direction:column;min-width:0}.quick-links .ql-text strong{font-weight:500}.quick-links .ql-text span{color:var(--muted);font-size:.82rem}.quick-links .chev{margin-left:auto;color:var(--subtle)}.all-clear{display:flex;align-items:center;gap:.75rem;padding:.9rem 1.1rem;border-radius:var(--radius);border:1px solid var(--border);background:var(--surface);margin-bottom:var(--gap);color:var(--text-2)}.all-clear .icon{color:var(--ok-fg);width:20px;height:20px}.filters{display:flex;flex-wrap:wrap;gap:.75rem 1rem;align-items:flex-end;padding:0 0 1.25rem;margin-bottom:1.25rem;border-bottom:1px solid var(--border-subtle)}.filters .field{margin-bottom:0;min-width:170px;flex:1 1 170px;max-width:280px}.filters-actions{margin-left:auto}.field{display:flex;flex-direction:column;gap:.4rem;margin-bottom:1rem;border:none;padding:0;min-width:0}.field>span,.field>label,.field>legend{font-weight:400;font-size:.86rem;color:var(--muted);padding:0}.field small,.field-hint{color:var(--muted);font-size:.8rem}input,select,textarea{font:inherit;font-size:.95em;min-height:var(--ctl-h);padding:.35rem var(--ctl-px);border:1px solid var(--input-border);border-radius:var(--radius-sm);background:var(--input-bg);color:var(--text);max-width:100%;transition:border-color var(--t-fast),box-shadow var(--t-fast)}textarea{min-height:90px;line-height:1.45;padding-top:.5rem;resize:vertical}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:2rem;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5M7 9l5-5 5 5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .65rem center;cursor:pointer}input[type=file]{padding:.3rem;min-height:auto}input[type=checkbox],input[type=radio]{min-height:auto;width:17px;height:17px;padding:0;accent-color:var(--primary);cursor:pointer}input::placeholder,textarea::placeholder{color:var(--subtle)}input:hover:not(:disabled),select:hover:not(:disabled),textarea:hover:not(:disabled){border-color:var(--border-strong)}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--focus);box-shadow:var(--focus-ring)}input:disabled,select:disabled,textarea:disabled{background:var(--surface-2);color:var(--muted);cursor:not-allowed}input[aria-invalid=true],textarea[aria-invalid=true],select[aria-invalid=true]{border-color:var(--danger)}.field-error,.form-error{color:var(--bad-fg);font-size:.84rem;margin:.15rem 0}.check{display:flex;gap:.5rem;align-items:center;font-weight:400;margin:.2rem 0;cursor:pointer;color:var(--text-2)}.inline-label{display:inline-flex;gap:.5rem;align-items:center;color:var(--muted);font-size:.88em}.connection-form{display:block}.choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:.85rem}.choice{position:relative;display:flex;flex-direction:column;gap:.6rem;padding:.75rem;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);cursor:pointer;transition:border-color var(--t-fast)}.choice:hover{border-color:var(--border-strong)}.choice:has(input:checked){border-color:var(--primary);box-shadow:0 0 0 1px var(--primary)}.choice:has(input:focus-visible){box-shadow:var(--focus-ring)}.choice input{position:absolute;opacity:0;pointer-events:none}.choice-label{display:flex;align-items:center;justify-content:space-between;gap:.5rem;font-weight:500}.choice-label .check-mark{width:18px;height:18px;border-radius:50%;border:1.5px solid var(--border-strong);display:grid;place-items:center;color:transparent}.choice:has(input:checked) .check-mark{background:var(--primary);border-color:var(--primary);color:#fff}.choice-label .check-mark .icon{width:12px;height:12px;stroke-width:3}.choice-desc{font-size:.82rem;color:var(--muted)}.theme-preview{height:84px;border-radius:6px;border:1px solid var(--border);display:grid;grid-template-columns:20% 1fr;overflow:hidden}.theme-preview .tp-side{border-right:1px solid;padding:8px 5px;display:flex;flex-direction:column;align-items:center;gap:5px}.theme-preview .tp-side i{display:block;width:10px;height:10px;border-radius:3px}.theme-preview .tp-main{padding:8px;display:flex;flex-direction:column;gap:6px}.theme-preview .tp-main i{display:block;height:8px;border-radius:3px;width:40%}.theme-preview .tp-card{flex:1;border-radius:4px;border:1px solid}.tp-light{background:#f4f4f5}.tp-light .tp-side{background:#fafafa;border-color:#e4e4e7}.tp-light .tp-side i{background:#d4d4d8}.tp-light .tp-main i{background:#1463f3}.tp-light .tp-card{background:#fff;border-color:#e4e4e7}.tp-dark{background:#111}.tp-dark .tp-side{background:#161616;border-color:#2c2c2c}.tp-dark .tp-side i{background:#3a3a3a}.tp-dark .tp-main i{background:#1a6cf5}.tp-dark .tp-card{background:#0b0b0b;border-color:#2c2c2c}.tp-system{grid-template-columns:1fr 1fr}.tp-system>div{display:grid;grid-template-columns:30% 1fr}.switch{position:relative;display:inline-flex;align-items:center;cursor:pointer}.switch input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.switch-track{width:40px;height:22px;border-radius:999px;background:var(--surface-active);border:1px solid var(--border-strong);position:relative;transition:background var(--t-fast)}.switch-track:after{content:"";position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;transition:transform var(--t-fast)}.switch input:checked+.switch-track{background:var(--primary);border-color:var(--primary)}.switch input:checked+.switch-track:after{transform:translate(18px)}.switch input:focus-visible+.switch-track{box-shadow:var(--focus-ring)}.segmented{display:inline-flex;flex-wrap:wrap;padding:3px;gap:2px;border:1px solid var(--border);border-radius:var(--radius-sm)}.segmented label{position:relative;display:inline-flex;align-items:center;gap:.4rem;height:30px;padding:0 .8rem;border-radius:5px;font-size:.88em;color:var(--muted);cursor:pointer;white-space:nowrap}.segmented input{position:absolute;opacity:0;pointer-events:none}.segmented label:hover{color:var(--text)}.segmented label:has(input:checked){background:var(--surface-active);color:var(--text)}.segmented label:has(input:focus-visible){box-shadow:var(--focus-ring)}.segmented .icon{width:15px;height:15px}.table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}table{width:100%;border-collapse:separate;border-spacing:0;font-size:.95em}th,td{text-align:left;padding:var(--cell-py) var(--cell-px);border-bottom:1px solid var(--border-subtle);vertical-align:middle}th{font-weight:400;font-size:.85rem;color:var(--muted);white-space:nowrap;background:var(--surface)}tbody tr:last-child td{border-bottom:0}td.num,th.num{text-align:right;font-variant-numeric:tabular-nums}tbody tr{transition:background var(--t-fast)}tbody tr:hover{background:var(--surface-hover)}td .btn{height:30px;padding:0 .65rem;font-size:.85em}td a[href^="/payments/"],td a[href^="/batches/"]{white-space:nowrap}ul.plain{list-style:none;margin:0;padding:0}.pagination{display:flex;justify-content:space-between;align-items:center;gap:.75rem;flex-wrap:wrap;margin-top:1.25rem;padding:0 .15rem}.pagination>span{font-size:.88em}.pagination-controls{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.pagination-controls select{min-height:34px;height:34px}.state{padding:2.75rem 1.5rem;background:var(--surface);border:1px dashed var(--border-strong);border-radius:var(--radius);text-align:center;color:var(--muted)}.state-empty:before{content:"";display:block;width:44px;height:44px;margin:0 auto .85rem;border-radius:50%;background:var(--surface-active) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E") center no-repeat}.state-loading{border-style:solid;border-color:var(--border);display:flex;align-items:center;justify-content:center;gap:.6rem}.state-error{border-style:solid;border-color:color-mix(in srgb,var(--bad-dot) 40%,var(--border));color:var(--bad-fg);background:var(--bad-bg)}.state-error button{margin-top:.85rem}.spinner{display:inline-block;width:1rem;height:1rem;border:2px solid var(--border-strong);border-top-color:var(--primary);border-radius:50%;animation:spin .7s linear infinite;flex-shrink:0}@keyframes spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion: reduce){.spinner,main#conteudo,.menu{animation:none}}.notice{display:flex;gap:.65rem;align-items:flex-start;padding:.85rem 1rem;border-radius:var(--radius);margin:.85rem 0;border:1px solid;font-size:.93em}.notice>div>:first-child{margin-top:0}.notice>div>:last-child{margin-bottom:0}.notice-info{background:var(--info-bg);color:var(--info-fg);border-color:color-mix(in srgb,var(--info-dot) 30%,transparent)}.notice-ok{background:var(--ok-bg);color:var(--ok-fg);border-color:color-mix(in srgb,var(--ok-dot) 30%,transparent)}.notice-warn{background:var(--warn-bg);color:var(--warn-fg);border-color:color-mix(in srgb,var(--warn-dot) 35%,transparent)}.notice-bad{background:var(--bad-bg);color:var(--bad-fg);border-color:color-mix(in srgb,var(--bad-dot) 35%,transparent)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:var(--overlay);display:flex;align-items:flex-start;justify-content:center;padding:8vh 1rem 2rem;z-index:100;overflow-y:auto;animation:fade-in var(--t) ease-out}.modal{background:var(--surface-raised);border:1px solid var(--border);border-radius:var(--radius-lg);width:min(640px,100%);box-shadow:var(--shadow-lg);animation:modal-in var(--t) ease-out}.modal:focus{outline:none}.modal-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.1rem 1.35rem;border-bottom:1px solid var(--border-subtle)}.modal-header h2{margin:0;font-size:1.08rem}.modal-body{padding:1.35rem}.modal-footer{display:flex;justify-content:flex-end;gap:.5rem;padding:1rem 1.35rem;border-top:1px solid var(--border-subtle)}@keyframes fade-in{0%{opacity:0}}@keyframes modal-in{0%{opacity:0;transform:translateY(8px) scale(.985)}}.palette{width:min(640px,100%);background:var(--surface-raised);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);overflow:hidden;animation:modal-in var(--t) ease-out}.palette-search{display:flex;align-items:center;gap:.75rem;padding:0 1rem;border-bottom:1px solid var(--border-subtle);color:var(--muted)}.palette-search .icon{width:22px;height:22px}.palette-search input{flex:1;border:0;background:transparent;box-shadow:none;height:56px;font-size:1.02rem;padding:0}.palette-search input:focus{box-shadow:none}.palette-list{list-style:none;margin:0;padding:.4rem;max-height:min(440px,60vh);overflow-y:auto}.palette-group{font-size:.78rem;color:var(--subtle);padding:.65rem .65rem .3rem}.palette-item{display:flex;align-items:center;gap:.75rem;padding:.6rem .65rem;border-radius:var(--radius-sm);cursor:pointer;color:var(--text-2)}.palette-item .icon{color:var(--muted);width:18px;height:18px}.palette-item[aria-selected=true]{background:var(--surface-active);color:var(--text)}.palette-item[aria-selected=true] .icon{color:var(--text)}.palette-item .hint{margin-left:auto;font-size:.8rem;color:var(--muted)}.palette-empty{padding:1.5rem;text-align:center;color:var(--muted)}.palette-foot{display:flex;gap:1rem;padding:.6rem 1rem;border-top:1px solid var(--border-subtle);font-size:.78rem;color:var(--muted)}.tabs{display:flex;gap:.25rem;border-bottom:1px solid var(--border-subtle);margin-top:1.5rem;overflow-x:auto;scrollbar-width:none}.tab{font:inherit;background:none;border:none;padding:.7rem .9rem;cursor:pointer;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;display:inline-flex;align-items:center;gap:.45rem;transition:color var(--t-fast),border-color var(--t-fast)}.tab:hover{color:var(--text)}.tab.active{color:var(--text);border-bottom-color:var(--primary)}.tabpanel{padding-top:.75rem}.tabpanel>.section-actions:first-child,.tabpanel>section>.section-actions:first-child{margin-top:1.25rem}.deflist{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));column-gap:2.5rem;background:var(--surface);padding:.35rem 1.5rem;border:1px solid var(--border);border-radius:var(--radius);margin:0}.deflist>div{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:56px;padding:var(--kv-py) 0;border-bottom:1px solid var(--border-subtle)}.deflist dt{color:var(--text-2);font-size:.92em;flex-shrink:0;max-width:45%}.deflist dd{margin:0;text-align:right;min-width:0;overflow-wrap:anywhere;color:var(--text);font-variant-numeric:tabular-nums}.timeline{list-style:none;padding:.25rem 0 .25rem 1.5rem;margin:0;position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius)}.timeline:before{content:"";position:absolute;left:1.6rem;top:1.4rem;bottom:1.4rem;width:1px;background:var(--border-strong)}.timeline li{position:relative;padding:.85rem 1.25rem .85rem 1.4rem;display:flex;gap:.85rem;flex-wrap:wrap;align-items:center;border-bottom:1px solid var(--border-subtle)}.timeline li:last-child{border-bottom:0}.timeline li:before{content:"";position:absolute;left:-.25rem;top:50%;margin-top:-5px;width:10px;height:10px;border-radius:50%;background:var(--surface);border:2px solid var(--muted)}.timeline li:last-child:before{background:var(--primary);border-color:var(--primary)}.timeline time{font-variant-numeric:tabular-nums;color:var(--muted);font-size:.9em}details.json summary{cursor:pointer;color:var(--link);font-size:.9em}details.json pre{background:var(--code-bg);color:var(--code-fg);border:1px solid var(--border);padding:.85rem 1rem;border-radius:var(--radius-sm);overflow-x:auto;max-width:520px;font-size:.8rem;line-height:1.55;text-align:left}.secret-row{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin:.6rem 0}.secret-label{font-weight:500;min-width:120px}.secret-value{background:var(--surface-2);padding:.45rem .6rem;border-radius:var(--radius-sm);flex:1;min-width:200px}.settings-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:2rem;align-items:start;max-width:1180px}.settings-nav{position:sticky;top:calc(var(--topbar-h) + 1.5rem);display:flex;flex-direction:column;gap:4px}.settings-nav button{font:inherit;display:flex;align-items:center;gap:.7rem;height:42px;padding:0 .8rem;border:0;border-radius:var(--radius-sm);background:transparent;color:var(--muted);cursor:pointer;text-align:left}.settings-nav button .icon{width:19px;height:19px}.settings-nav button:hover{background:var(--surface-hover);color:var(--text)}.settings-nav button[aria-selected=true]{background:var(--surface-active);color:var(--text)}.settings-section{display:flex;flex-direction:column;gap:1.25rem}.settings-section>header h2{margin:0;font-size:1.15rem}.settings-section>header p{margin:.25rem 0 0;color:var(--muted)}.settings-block{padding:1.25rem}.settings-block+.settings-block{border-top:1px solid var(--border-subtle)}.settings-block>p{margin:0 0 1rem;color:var(--muted);font-size:.9em}.profile-card{display:flex;align-items:center;gap:1rem;padding:1.35rem 1.25rem}.profile-card .who{min-width:0;display:flex;flex-direction:column;gap:.15rem}.profile-card .who strong{font-size:1.15rem;font-weight:500}.perm-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));column-gap:2rem}.perm-list li{display:flex;align-items:center;gap:.6rem;padding:.7rem 0;border-bottom:1px solid var(--border-subtle);color:var(--text-2)}.perm-list li.denied{color:var(--subtle)}.perm-list .icon{width:17px;height:17px}.perm-list li.allowed .icon{color:var(--ok-fg)}.shortcut-list{list-style:none;padding:0;margin:0}.shortcut-list li{display:flex;justify-content:space-between;align-items:center;gap:1rem;min-height:56px;padding:.6rem 1.25rem;border-top:1px solid var(--border-subtle)}.shortcut-list li:first-child{border-top:0}.shortcut-list .keys{display:flex;gap:.25rem}.save-hint{display:inline-flex;align-items:center;gap:.4rem;font-size:.85rem;color:var(--ok-fg)}.save-hint .icon{width:15px;height:15px}@media (max-width: 1180px){.mock-role .badge,.user-meta,.topbar-divider{display:none}}@media (max-width: 1100px){.grid-2{grid-template-columns:minmax(0,1fr)}.search-field kbd{display:none}}@media (max-width: 900px){:root{--page-px: 1rem;--page-py: 1.1rem;--topbar-h: 64px}.app{grid-template-columns:minmax(0,1fr)}.menu-toggle{display:inline-grid}.rail{position:fixed;top:0;bottom:0;left:0;width:min(280px,84vw);height:auto;transform:translate(-100%);transition:transform var(--t) ease;box-shadow:var(--shadow-lg);z-index:90}.rail.open{transform:translate(0)}.rail-backdrop{display:block;position:fixed;top:0;right:0;bottom:0;left:0;background:var(--overlay);z-index:80;border:0;animation:fade-in var(--t) ease-out}.topbar{padding:0 .75rem;gap:.5rem}.topbar{display:flex;gap:.4rem}.topbar-center{flex:0 0 auto;margin-left:auto}.btn-new{width:40px;padding:0}.btn-new-text,.search-field span,.search-field kbd,.mock-role .badge,.user-meta,.topbar-divider,.btn-logout-text,.app-footer-meta{display:none}.btn-logout{width:40px;padding:0}.search-field{width:42px;height:40px;padding:0;justify-content:center}.mock-role select{max-width:92px}.topbar-right>.btn-icon,.topbar-left .menu-anchor:last-child{display:none}.app-footer{left:0}.record-grid{grid-template-columns:minmax(0,1fr)}.settings-layout{grid-template-columns:minmax(0,1fr);gap:1rem}.settings-nav{position:static;flex-direction:row;overflow-x:auto;padding-bottom:.5rem;border-bottom:1px solid var(--border-subtle)}.settings-nav button{flex-shrink:0}.filters .field{max-width:none}.filters-actions{margin-left:0}.panel-row{flex-direction:column;align-items:flex-start;gap:.75rem}.deflist{grid-template-columns:minmax(0,1fr);padding:.25rem 1rem}table thead{display:none}table,tbody,tr,td{display:block;width:100%}tr{border-bottom:1px solid var(--border-subtle);padding:.5rem 0}tbody tr:last-child{border-bottom:0}td{border:none;padding:.3rem 1rem;display:flex;justify-content:space-between;gap:1rem;text-align:right}td:before{content:attr(data-label);color:var(--muted);text-align:left}.standalone{padding:1.5rem}.standalone-header{padding:1rem}}@media print{.rail,.topbar,.skip-link{display:none!important}.app{display:block}}.form-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,14rem),1fr));gap:0 1rem}.batch-item{padding:.75rem 1rem .25rem;margin:0 0 1rem}.batch-item>legend{font-weight:600;padding:0 .35rem}.batch-total{margin:1rem 0}.form-error ul{margin:.25rem 0 0;padding-left:1.2rem}
