:root{--parity-card-radius:16px;--parity-shadow:0 8px 28px rgba(16,24,40,.045);--parity-shadow-hover:0 14px 34px rgba(16,24,40,.09)}
body{font-size:16px;line-height:1.45}.app-shell{grid-template-columns:210px minmax(0,1fr)}.sidebar{padding:12px 8px;background:linear-gradient(180deg,#0b1019,#121824);border-right:1px solid #202a38;overflow:visible}.brand{padding:5px 7px 16px;gap:9px}.brand-mark{width:28px;height:32px;flex-basis:28px;clip-path:polygon(50% 0,90% 14%,86% 72%,50% 100%,14% 72%,10% 14%);font-size:12px}.brand-copy b{font-size:14px}.brand-copy small{font-size:9px;color:#758196}.sidebar-nav{gap:1px}.nav-group{gap:2px;margin:0 0 10px}.nav-primary{margin-bottom:9px}.nav-group-label{padding:7px 8px 4px;font-size:10px;color:#59667b;letter-spacing:.08em}.nav-btn{position:relative;min-height:40px;padding:8px 9px;border-radius:9px;font-size:13px}.nav-btn:hover{transform:translateX(1px)}.nav-btn.active{background:linear-gradient(90deg,rgba(226,31,68,.18),rgba(226,31,68,.04));border-left:0;box-shadow:inset 2px 0 #ef304d}.nav-icon{width:20px;color:#7c889b}.nav-btn.active .nav-icon{color:#e33a52}.nav-label{font-size:12px}.nav-more{margin-top:2px;border-top:1px solid #1e2735;padding-top:7px}.nav-more>summary{position:relative;display:flex;align-items:center;gap:9px;min-height:40px;padding:8px 9px;border-radius:9px;color:#8d98aa;cursor:pointer;list-style:none}.nav-more>summary::-webkit-details-marker{display:none}.nav-more>summary:hover{background:#151d2a;color:#fff}.nav-more .nav-chevron{margin-left:auto;transition:transform .18s}.nav-more[open] .nav-chevron{transform:rotate(90deg)}.nav-more-body{display:grid;gap:2px;padding:4px 0 0 7px}.collapse-btn{min-height:42px;margin-top:auto;border-radius:9px;color:#69768a}.app-shell.collapsed{grid-template-columns:68px minmax(0,1fr)}.app-shell.collapsed .sidebar{padding-inline:7px}.app-shell.collapsed .brand-copy,.app-shell.collapsed .nav-label,.app-shell.collapsed .nav-group-label,.app-shell.collapsed .nav-chevron{display:none}.app-shell.collapsed .brand,.app-shell.collapsed .nav-btn,.app-shell.collapsed .nav-more>summary{justify-content:center;padding-inline:7px}.app-shell.collapsed .nav-more-body{display:none}.app-shell.collapsed .nav-btn,.app-shell.collapsed .nav-more>summary{position:relative;overflow:visible}.app-shell.collapsed [data-tip]:hover:after{content:attr(data-tip);position:absolute;left:52px;top:50%;transform:translateY(-50%);padding:7px 9px;border:1px solid #263248;border-radius:8px;background:#111927;color:#fff;box-shadow:0 14px 34px rgba(0,0,0,.35);font-size:11px;font-weight:700;white-space:nowrap;z-index:300}.app-shell.collapsed .collapse-btn{text-align:center;padding:0}
/* Canonical interaction system: restrained motion, modern date controls and stable popovers. */
.btn,.icon-btn,.top-control,.profile,.nav-btn,.tabs button,.settings-tabs button,.dash-flow button,.dash-auto-actions button,.dash-list-row,.quick-add-menu button,.notification-stat,.invoice-overview-actions button,.invoice-modes button{transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .18s ease,transform .16s ease,filter .16s ease}.btn:not(:disabled):active,.icon-btn:not(:disabled):active,.top-control:not(:disabled):active,.tabs button:not(:disabled):active,.settings-tabs button:not(:disabled):active,.dash-auto-actions button:not(:disabled):active{transform:translateY(1px) scale(.99)}input[type="date"],input[type="month"]{border-radius:10px!important;cursor:pointer;transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease;color-scheme:light dark}input[type="date"]:focus,input[type="month"]:focus{outline:0;border-color:color-mix(in srgb,var(--accent) 55%,var(--line))!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}input[type="date"]::-webkit-calendar-picker-indicator,input[type="month"]::-webkit-calendar-picker-indicator{cursor:pointer;opacity:.72}.modal-bg,.drawer-bg{animation:srcrmFadeIn .14s ease-out}.modal,.mobile-drawer,.profile-menu,.notification-popover,.quick-add-menu,.search-results{animation:srcrmPopIn .16s cubic-bezier(.2,.8,.2,1);transform-origin:top right}@keyframes srcrmFadeIn{from{opacity:0}to{opacity:1}}@keyframes srcrmPopIn{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.btn,.icon-btn,.top-control,.profile,.nav-btn,.tabs button,.settings-tabs button,.dash-flow button,.dash-auto-actions button,.dash-list-row,.quick-add-menu button,.notification-stat,.invoice-overview-actions button,.invoice-modes button,.modal-bg,.drawer-bg,.modal,.mobile-drawer,.profile-menu,.notification-popover,.quick-add-menu,.search-results{animation:none!important;transition:none!important}}
.topbar{height:58px;padding:0 14px;gap:8px;background:color-mix(in srgb,var(--surface) 96%,transparent);box-shadow:0 1px 0 var(--line),0 8px 24px rgba(15,23,42,.025)}.global-search{width:min(480px,40vw)}.global-search input{height:38px;border-radius:9px;background:var(--surface2);font-size:13px}.icon-btn,.top-control,.profile{min-height:36px;border-radius:9px}.icon-btn{width:36px}.lang-control{white-space:nowrap}.top-relative{position:relative}.profile{min-width:140px}.profile .avatar{width:29px;height:29px}.profile b{font-size:12px}.profile small{font-size:9px}.push-control{font-weight:750;background:var(--surface);white-space:nowrap}.bell{font-size:15px}.badge{right:-4px;top:-5px}.profile-menu{position:absolute;right:0;top:43px;z-index:230;width:190px;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 18px 46px rgba(16,24,40,.18)}.profile-menu-head{padding:8px 9px;color:var(--muted);font-size:11px;border-bottom:1px solid var(--line)}.profile-menu button{width:100%;min-height:37px;margin-top:4px;border:0;border-radius:8px;background:transparent;text-align:left;padding:0 9px;cursor:pointer}.profile-menu button:hover{background:var(--surface2)}
.notification-popover{position:absolute;right:0;top:43px;z-index:240;width:min(470px,calc(100vw - 24px));max-height:min(680px,calc(100vh - 74px));overflow:auto;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:0 24px 64px rgba(16,24,40,.22)}.notification-pop-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:8px 12px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--surface) 96%,transparent);backdrop-filter:blur(12px);font-weight:850}.notification-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:10px}.notification-stat{min-height:62px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface2);text-align:left;cursor:pointer}.notification-stat b,.notification-stat small{display:block}.notification-stat b{font-size:18px}.notification-stat small{margin-top:2px;color:var(--muted);font-size:9px}.notification-section{border-top:1px solid var(--line)}.notification-section h3{margin:0;padding:10px 12px 6px;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.notification-list{max-height:250px;overflow:auto}.notification-row{padding:9px 12px}.notification-row b{font-size:11px}.notification-row small,.notification-row time{font-size:9px}
.page{padding:18px 20px 34px;max-width:1500px}.auth-card{width:min(400px,100%);padding:27px}.pass-wrap{position:relative}.pass-wrap input{width:100%;padding-right:44px}.pass-eye{position:absolute;right:5px;top:50%;transform:translateY(-50%);width:34px;height:34px;border:0!important;border-radius:8px!important;background:transparent!important;color:var(--muted);font-size:16px;cursor:pointer}.pass-eye:hover{background:var(--surface)!important;color:var(--text)}
.fab-stack{right:22px;bottom:22px}.fab-chat{width:49px;height:49px;font-size:18px}.fab-add{width:54px;height:54px;background:linear-gradient(145deg,#e42b4a,#bd1231);box-shadow:0 12px 30px rgba(196,18,51,.25)}.quick-add-menu{right:22px;bottom:139px;width:242px}.quick-add-menu button{flex-direction:row;justify-content:flex-start;font-size:12px}.quick-add-menu button span{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--surface2);color:var(--text)}
/* Dashboard production parity */
.dashboard{gap:9px}.dashboard-head{min-height:86px;align-items:center}.dashboard-head h1{font-size:30px;letter-spacing:-.035em}.dashboard-head p{font-size:12px}.dashboard-health{margin-left:auto;display:flex;align-items:center;gap:9px;min-width:220px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,var(--surface),var(--surface2));box-shadow:var(--parity-shadow)}.dashboard-health>span{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#edf9f4;color:var(--green);font-size:19px}.dashboard-health.down>span{background:#fff0f2;color:var(--accent)}.dashboard-health b,.dashboard-health strong,.dashboard-health small{display:block}.dashboard-health b{font-size:10px}.dashboard-health strong{font-size:17px}.dashboard-health small{font-size:9px;color:var(--muted)}.dashboard-search{height:46px;display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:7px;padding:0 11px;border:1px solid var(--line);border-radius:13px;background:var(--surface);box-shadow:var(--parity-shadow)}.dashboard-search input{border:0;outline:0;background:transparent;color:var(--text);font-size:12px}.dashboard-search kbd{padding:3px 6px;border:1px solid var(--line);border-radius:6px;color:var(--muted);background:var(--surface2);font-size:8px}.dash-auto,.dash-list,.dash-messenger,.dash-analytics,.dash-chart-card,.dash-attention{border:1px solid var(--line);border-radius:var(--parity-card-radius);background:var(--surface);box-shadow:var(--parity-shadow)}.dash-auto{padding:12px}.dash-auto>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.dash-auto h2{margin:2px 0 0;font-size:17px}.dash-auto-actions{display:flex;gap:7px}.dash-auto-actions button{min-height:38px;padding:0 11px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:11px;font-weight:800;cursor:pointer}.dash-auto-actions .primary{background:linear-gradient(145deg,#ef3452,#c91736);border-color:#d92341;color:#fff}.dash-flow{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}.dash-flow button{position:relative;min-height:66px;padding:8px 9px;border:1px solid var(--line);border-radius:11px;background:linear-gradient(145deg,var(--surface),var(--surface2));text-align:left;cursor:pointer}.dash-flow button:hover,.dash-kpis article:hover,.dash-chart-card:hover{transform:translateY(-1px);box-shadow:var(--parity-shadow-hover)}.dash-flow small,.dash-flow b{display:block}.dash-flow small{font-size:10px;color:var(--muted)}.dash-flow b{font-size:21px;margin-top:3px}.dash-flow strong{position:absolute;right:8px;bottom:8px;font-size:9px}.dash-dot{position:absolute;right:9px;top:9px;width:7px;height:7px;border-radius:50%;background:#cbd2dc}.dash-dot.hot{background:var(--accent);box-shadow:0 0 0 4px color-mix(in srgb,var(--accent) 12%,transparent)}.dash-dot.ok{background:var(--green)}.dash-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.dash-kpis article{position:relative;min-height:82px;padding:11px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(145deg,var(--surface),var(--surface2));overflow:hidden;transition:.16s}.dash-kpis article:after{content:'';position:absolute;right:-23px;bottom:-31px;width:68px;height:68px;border-radius:50%;background:rgba(66,99,235,.06)}.dash-kpis article:nth-child(2):after{background:rgba(121,80,242,.08)}.dash-kpis article:nth-child(4):after{background:rgba(13,155,107,.08)}.dash-kpis small,.dash-kpis b{display:block}.dash-kpis small{font-size:10px;color:var(--muted)}.dash-kpis b{font-size:23px;margin-top:8px}.dash-kpis span{position:absolute;right:9px;top:9px;color:var(--muted);font-size:8px;font-weight:850}.dash-ops{display:grid;grid-template-columns:1fr 1fr .72fr;gap:7px}.dash-list{overflow:hidden}.dash-list>header{display:flex;align-items:center;justify-content:space-between;min-height:40px;padding:8px 10px;border-bottom:1px solid var(--line);font-size:11px;font-weight:850}.dash-list>header button{border:0;background:transparent;color:#315fce;font-size:9px;font-weight:800;cursor:pointer}.dash-list-row{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;min-height:43px;padding:7px 10px;border:0;border-bottom:1px solid var(--line);background:transparent;text-align:left;cursor:pointer}.dash-list-row:last-child{border-bottom:0}.dash-list-row b,.dash-list-row small{display:block}.dash-list-row b{font-size:10px}.dash-list-row small{font-size:8px;color:var(--muted)}.dash-list-row strong{font-size:10px}.dash-messenger{padding:13px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(155deg,#141b2b,#202a42);color:#fff}.dash-messenger small{font-size:8px;color:#8f9bb2}.dash-messenger h3{margin:5px 0;font-size:15px}.dash-messenger p{margin:0;color:#aab4c5;font-size:9px}.dash-messenger button{margin-top:14px;min-height:38px;border:1px solid rgba(255,255,255,.13);border-radius:9px;background:rgba(255,255,255,.1);color:#fff;font-size:10px;font-weight:800;cursor:pointer}.dash-attention{padding:10px}.dash-attention>header{display:flex;align-items:baseline;gap:8px;margin-bottom:7px}.dash-attention h3{margin:0;font-size:12px}.dash-attention p{margin:0;color:var(--muted);font-size:9px}.dash-attention-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.dash-attention-grid button{min-height:51px;padding:7px;border:1px solid var(--line);border-radius:9px;background:var(--surface2);text-align:left;cursor:pointer}.dash-attention-grid b,.dash-attention-grid small{display:block}.dash-attention-grid b{font-size:17px}.dash-attention-grid small{font-size:8px;color:var(--muted)}.dash-analytics{padding:12px}.dash-analytics>header{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:9px}.dash-analytics h2{margin:2px 0;font-size:16px}.dash-analytics p,.dash-analytics>header small{margin:0;color:var(--muted);font-size:8px}.dash-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dash-chart-card{padding:10px;background:linear-gradient(160deg,var(--surface),var(--surface2));min-width:0}.dash-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;min-height:32px}.dash-chart-head b{font-size:10px}.dash-chart-head strong{font-size:14px}.dash-bars,.dash-driver-bars{height:175px;display:flex;align-items:flex-end;gap:8px;padding:21px 4px 4px;perspective:650px}.dash-bar-col{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px}.dash-bar{position:relative;width:min(28px,70%);height:var(--h);min-height:7px;border-radius:4px 4px 2px 2px;background:linear-gradient(90deg,#3153d8,#5573ef);box-shadow:7px 8px 17px rgba(49,83,216,.18);transform:rotateY(-5deg)}.dash-bar:before{content:'';position:absolute;left:4px;right:-7px;top:-7px;height:8px;background:#7890f4;transform:skewX(-42deg);transform-origin:bottom;border-radius:3px 3px 0 0}.dash-bar:after{content:'';position:absolute;right:-7px;top:-4px;width:8px;height:calc(100% + 4px);background:#263fae;transform:skewY(-45deg);transform-origin:left top}.dash-bar-col small,.dash-driver-bars small{font-size:7px;color:var(--muted)}.dash-plan{height:177px;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;align-items:end;padding-top:10px}.dash-plan-item{text-align:center}.dash-plan-item>b{display:block;font-size:8px;margin-bottom:5px}.dash-plan-stick{height:115px;display:flex;align-items:flex-end;justify-content:center}.dash-plan-stick i{position:relative;display:block;width:32px;height:var(--h);border-radius:4px 4px 2px 2px;background:linear-gradient(90deg,#3153d8,#5573ef);box-shadow:6px 7px 15px rgba(49,83,216,.16)}.dash-plan-item.forecast i{background:linear-gradient(90deg,#6741d9,#9775fa)}.dash-plan-item.expenses i{background:linear-gradient(90deg,#d9485f,#fa7b8e)}.dash-plan-item.profit i{background:linear-gradient(90deg,#0b8f62,#2ecf98)}.dash-plan-item small{display:block;margin-top:6px;color:var(--muted);font-size:7px}.dash-driver-bars>div{height:100%;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px}.dash-driver-bars i{display:block;width:min(23px,70%);height:var(--h);min-height:7px;border-radius:7px 7px 2px 2px;background:linear-gradient(90deg,#0b8f62,#2ecf98);box-shadow:5px 7px 15px rgba(11,143,98,.15)}
/* Settings final internal navigation */
.settings-shell{display:grid;grid-template-columns:185px minmax(0,1fr);gap:10px}.settings-tabs{padding:6px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.settings-tabs button{display:flex;align-items:center;gap:8px;width:100%;min-height:42px;padding:0 10px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--muted);text-align:left;cursor:pointer;font-size:11px}.settings-tabs button.active{border-color:color-mix(in srgb,var(--accent) 45%,var(--line));background:var(--accentSoft);color:var(--text);font-weight:800}.settings-content{min-width:0}.settings-panel{box-shadow:var(--parity-shadow)}
@media(max-width:980px){.dash-chart-grid{grid-template-columns:1fr 1fr}.dash-ops{grid-template-columns:1fr 1fr}.dash-messenger{grid-column:1/-1}.dash-kpis{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.app-shell,.app-shell.collapsed{display:block}.sidebar{display:none}.topbar{height:58px}.push-control{display:none}.global-search{width:min(430px,48vw)}.notification-popover{position:fixed;left:10px;right:10px;top:64px;width:auto}.page{padding:13px 11px 84px}.dashboard-head{align-items:flex-start}.dashboard-health{min-width:170px}.settings-shell{grid-template-columns:1fr}.settings-tabs{display:flex;overflow:auto}.settings-tabs button{flex:0 0 auto;width:auto;padding:0 12px}.dash-flow{display:flex;overflow:auto}.dash-flow button{flex:0 0 115px}.dash-ops{grid-template-columns:1fr}.dash-messenger{grid-column:auto}.dash-chart-grid{grid-template-columns:1fr}}
@media(max-width:600px){body{font-size:16px}.topbar .lang-control{padding:0 7px}.global-search{width:min(250px,55vw)}.dashboard-head{display:block}.dashboard-health{margin:9px 0 0;width:100%}.dashboard-search kbd{display:none}.dash-auto>header{display:block}.dash-auto-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:8px}.dash-kpis{grid-template-columns:1fr 1fr}.dash-kpis b{font-size:19px}.dash-attention-grid{grid-template-columns:1fr 1fr}.dash-bars,.dash-driver-bars{height:160px}.dash-plan{height:160px}.profile{display:none}}