/* ASN System V4.8.3 — RUBI / GRAFITE — apresentação profissional
   CSS apenas. Sem métricas artificiais; sem alterar banco ou processamento. */
:root,html.asn-brand-v482{
 --asn-red:#d3263d;--asn-red-light:#ef4051;--asn-red-deep:#a7152a;
 --asn-green:#33c495;--asn-graphite:#0d131b;
 --asn-nav-bg:#0b1119!important;--asn-nav-bg2:#111922!important;
 --asn-nav-line:#29333f!important;--asn-nav-text:#c5cedb!important;
 --asn-nav-muted:#8997a8!important;--asn-nav-active:#b41e34!important;
 --asn-nav-accent:#ed4b5c!important;
 --accent:#d3263d!important;--accent-hover:#b51e34!important;
 --accent-soft:rgba(211,38,61,.12)!important;
 --radius:12px!important;
}
html.asn-brand-v482[data-theme="dark"]{
 color-scheme:dark;
 --bg-main:#0c1118!important;--bg-secondary:#151c25!important;
 --bg-tertiary:#1b2530!important;--bg-elevated:#202b37!important;
 --border:#2f3b48!important;--border-soft:#283441!important;
 --text-main:#f2f5f9!important;--text-support:#b0bdcc!important;
 --text-muted:#899bac!important;--shadow:0 12px 36px rgba(0,0,0,.18)!important;
 --accent:#e44255!important;--accent-hover:#fa5769!important;
 --cf-bg:#0c1118!important;--cf-panel:#151c25!important;--cf-border:#2f3b48!important;
 --cf-text:#f2f5f9!important;--cf-muted:#b0bdcc!important;
}
html.asn-brand-v482[data-theme="light"],html.asn-brand-v482:not([data-theme]){
 color-scheme:light;
 --bg-main:#f4f6f8!important;--bg-secondary:#fff!important;
 --bg-tertiary:#f0f3f6!important;--bg-elevated:#fff!important;
 --border:#dce2e8!important;--border-soft:#e6eaf0!important;
 --text-main:#18202b!important;--text-support:#536174!important;
 --text-muted:#677789!important;--shadow:0 12px 30px rgba(19,31,45,.04)!important;
 --accent:#c32138!important;--accent-hover:#a5152a!important;
 --cf-bg:#f4f6f8!important;--cf-panel:#fff!important;
 --cf-border:#dce2e8!important;--cf-text:#18202b!important;--cf-muted:#536174!important;
}
html.asn-brand-v482[data-theme="dark"] body,
html.asn-brand-v482[data-theme="dark"] .main-content{
 background:radial-gradient(ellipse 630px 340px at 99% 0,rgba(170,27,50,.065),transparent 70%),#0c1118!important;
 color:var(--text-main)!important;
}
html.asn-brand-v482[data-theme="light"] body,
html.asn-brand-v482[data-theme="light"] .main-content{
 background:#f4f6f8!important;color:var(--text-main)!important;
}
/* True navigation component is dynamically injected; previous blue bar is entirely superseded. */
html.asn-brand-v482 .asn-sidebar.sidebar{
 background:linear-gradient(178deg,#121923 0%,#0c1119 100%)!important;
 border-right:1px solid #303945!important;
 box-shadow:6px 0 25px rgba(0,0,0,.12)!important;
}
html.asn-brand-v482 .asn-nav-brand{height:84px;border-bottom:1px solid #283440!important;padding:0 15px!important;gap:8px!important;}
html.asn-brand-v482 .asn-nav-mark{
 font-size:0!important;color:transparent!important;
 background:transparent url('asn-logo-icon-v483.png') center/contain no-repeat!important;
 box-shadow:none!important;width:45px!important;height:46px!important;border-radius:12px!important;
 flex:0 0 45px;
}
html.asn-brand-v482 .asn-nav-brand-text strong{
 font-family:Inter,'Segoe UI',system-ui,sans-serif!important;
 font-weight:900!important;font-size:16px!important;letter-spacing:-.035em!important;color:#fff!important;
}
html.asn-brand-v482 .asn-nav-brand-text .asn-word-system{font-weight:550!important;color:#ff5262!important}
html.asn-brand-v482 .asn-nav-brand-text small{color:#8693a4!important;letter-spacing:.11em!important;font-size:9px!important}
html.asn-brand-v482 .asn-nav-group{color:#7e8e9f!important;}
html.asn-brand-v482 .asn-sidebar .asn-nav-link:hover{
 background:#242c38!important;color:#fff!important;transform:none!important;
}
html.asn-brand-v482 .asn-sidebar .asn-nav-link.active{
 background:linear-gradient(96deg,#8f182b 0%,#c62a3d 100%)!important;
 box-shadow:inset 3px 0 0 #ff8290,0 4px 13px rgba(133,13,31,.13)!important;
 border-radius:9px!important;color:#fff!important;
}
html.asn-brand-v482 .asn-nav-company{
 background:#171f2a!important;border:1px solid #313c49!important;border-radius:12px!important;
}
html.asn-brand-v482 .asn-nav-company strong{color:#eaf0f6!important}
html.asn-brand-v482 .asn-nav-company small,html.asn-brand-v482 .asn-nav-company .asn-nav-plan{color:#aab8c8!important}
html.asn-brand-v482 .asn-nav-company-select{background:#111924!important;color:#edf2f9!important;border-color:#40505d!important}
html.asn-brand-v482 .asn-nav-chip{background:#39202b!important;color:#ff9fab!important}
html.asn-brand-v482 .asn-nav-footer{background:#0c121a!important;border-top-color:#2b333e!important}
html.asn-brand-v482 .asn-nav-cloud{background:rgba(49,183,139,.08)!important;color:#7ce0bd!important}
html.asn-brand-v482 .asn-nav-mobile{background:#151d27!important;border-color:#444d5d!important}
/* Legacy V3 dashboard styles include navy backgrounds and blue defaults. */
html.asn-brand-v482[data-theme="dark"] .dashboard-v34 :is(.v34-kpi,.v34-panel,.v34-filterbar){
 background:#151c25!important;border-color:#313b48!important;
}
html.asn-brand-v482[data-theme="light"] .dashboard-v34 :is(.v34-kpi,.v34-panel,.v34-filterbar){
 background:#fff!important;border-color:#d9e0e7!important;
}
html.asn-brand-v482 :is(.v34-btn:not(.v34-btn-primary),.v34-header-actions .v34-btn:not(.v34-btn-primary)){
 background:#1e2834!important;border:1px solid #394452!important;color:#e7ecf4!important;
}
html.asn-brand-v482[data-theme="light"] .v34-btn:not(.v34-btn-primary){
 background:#f4f6f8!important;border-color:#d9e0e7!important;color:#25313e!important;
}
/* Executive overview: quiet hierarchy and compact professional cards */
html.asn-brand-v482 .main-content.dashboard-v34-shell{padding:30px 34px!important;}
html.asn-brand-v482 .v34-topbar h1{letter-spacing:-.04em!important;font-weight:850!important;}
html.asn-brand-v482 .v34-eyebrow{color:#e47d8b!important;letter-spacing:.08em!important}
html.asn-brand-v482 .v34-btn-primary,
html.asn-brand-v482 .asn-month-apply-v460,
html.asn-brand-v482 :is(.btn-submit,.btn-add,.v34-btn-primary,.cf-btn-primary,.primary:not(.danger),button.btn-primary,.btn-primary){
 background:linear-gradient(115deg,#bb1d34,#df3045)!important;
 border:1px solid #d44455!important;color:#fff!important;
 box-shadow:0 4px 14px rgba(183,26,49,.14)!important;
 border-radius:10px!important;
}
html.asn-brand-v482 .v34-btn-primary:hover,
html.asn-brand-v482 :is(button.btn-primary,.btn-submit,.btn-add,.cf-btn-primary):hover:not(:disabled){
 background:linear-gradient(115deg,#c7263c,#e43b50)!important;filter:none!important;
}
html.asn-brand-v482 :is(.v34-filterbar,.v34-kpi,.v34-panel,.panel,.card,.dash-card,.form-container,.table-container,.chart-card){
 border-radius:14px!important;
}
html.asn-brand-v482[data-theme="dark"] .main-content :is(.v34-filterbar,.v34-kpi,.v34-panel,.panel,.card,.dash-card,.form-container,.table-container,.chart-card){
 background:#151c25!important;border-color:#303b48!important;
 box-shadow:0 4px 22px rgba(0,0,0,.11)!important;
}
html.asn-brand-v482[data-theme="light"] .main-content :is(.v34-filterbar,.v34-kpi,.v34-panel,.panel,.card,.dash-card,.form-container,.table-container,.chart-card){
 background:#fff!important;border-color:#dce2e8!important;
 box-shadow:0 8px 24px rgba(15,28,44,.035)!important;
}
html.asn-brand-v482 .v34-kpi{overflow:hidden!important;position:relative!important;}
html.asn-brand-v482 .v34-kpi::before{background:linear-gradient(90deg,rgba(227,52,74,.44),transparent 90%)!important;}
html.asn-brand-v482 .v34-kpi-icon{background:rgba(207,41,60,.16)!important;color:#fc6a7a!important;box-shadow:none!important;}
html.asn-brand-v482 :is(.v34-kpi-label,.v34-top-products th){letter-spacing:.065em!important;}
html.asn-brand-v482 :is(.v34-kpi-value,.card-value){letter-spacing:-.04em!important;}
html.asn-brand-v482 .v34-filterbar{padding:18px!important;}
html.asn-brand-v482 :is(.filter-input,.form-control,.asn-nav-company-select){border-radius:9px!important;}
html.asn-brand-v482[data-theme="dark"] :is(.filter-input,.form-control,select,input:not([type="checkbox"]):not([type="radio"]),textarea){
 background-color:#111923!important;border-color:#374451!important;color:#f4f7fa!important;
}
html.asn-brand-v482 :is(button,a,input,textarea,select,summary):focus-visible{
 outline:2px solid #f28490!important;outline-offset:2px!important;
}
html.asn-brand-v482 :is(input,select,textarea):focus{border-color:#d4475a!important;box-shadow:0 0 0 3px rgba(218,51,71,.1)!important;}
html.asn-brand-v482 .asn-dashboard-tools-v458 button{border-radius:9px!important;min-height:37px!important;}
html.asn-brand-v482 .asn-dashboard-tools-v458 button[aria-pressed="true"]{
 background:rgba(211,38,61,.14)!important;border:1px solid #a92c3d!important;color:#ff9ba7!important;
}
html.asn-brand-v482[data-theme="light"] .asn-dashboard-tools-v458 button[aria-pressed="true"]{color:#a7172b!important}
html.asn-brand-v482 :is(.v34-platform-pills label.active,.v34-platform-pills input:checked+span){
 background:rgba(205,43,63,.13)!important;color:#f06c7d!important;border-color:rgba(205,43,63,.42)!important;
}
html.asn-brand-v482 :is(.highlight,.v34-accent,.v34-link){color:#f16e7d!important}
html.asn-brand-v482[data-theme="dark"] :is(th,.cf-table th){background:#1d2733!important;color:#c6cfdd!important;border-color:#334050!important}
html.asn-brand-v482[data-theme="light"] :is(th,.cf-table th){background:#f1f3f6!important;color:#566476!important;border-color:#dce2e8!important}
/* Financeiro: subdued surfaces, active action in ruby, positive cash remains green */
html.asn-brand-v482 .fin-intro{background:linear-gradient(90deg,#1a222d,#25212b)!important;border-left:3px solid #da3347!important;border-color:#3b3d4b!important;}
html.asn-brand-v482 .fin-unified-tabs button{border-radius:9px!important;}
html.asn-brand-v482 .fin-unified-tabs button.active,
html.asn-brand-v482 #asn-fin-modern :is(.cf-tabs button.active,.cf-btn-primary){
 background:linear-gradient(110deg,#bc2137,#d9364a)!important;color:white!important;border-color:#ce3a4d!important;
}
html.asn-brand-v482 #asn-fin-modern{
 --cf-bg:var(--bg-main);--cf-panel:var(--bg-secondary);--cf-border:var(--border);
 --cf-text:var(--text-main);--cf-muted:var(--text-support);
 --cf-blue:#da3c52;--cf-green:#39c499;--cf-red:#f66b7c;
}
html.asn-brand-v482[data-theme="dark"] #asn-fin-modern :is(.cf-panel,.cf-kpi,.nf-panel){background:#161e28!important;border-color:#34404c!important;}
html.asn-brand-v482 #asn-fin-modern .cf-amount-in{color:#3bd09d!important}
html.asn-brand-v482 #asn-fin-modern .cf-amount-out{color:#fb7185!important}
/* Standalone login/onboarding: remove blue legacy inputs and avoid gaudy shadows. */
html.asn-brand-v482.asn-auth-page,html.asn-brand-v482.asn-superadmin-page{--primary:#c5263c!important;--line:#35414c!important;--border:#35414c!important}
html.asn-brand-v482.asn-auth-page body,html.asn-brand-v482.asn-superadmin-page body{
 background:radial-gradient(circle at 80% 10%,#261924,#111721 48%,#0a0f16 100%)!important;
}
html.asn-brand-v482.asn-auth-page :is(.wrap,.shell){background:#161e29!important;border-color:#35414c!important;}
html.asn-brand-v482.asn-auth-page :is(.brand,.hero){background:linear-gradient(135deg,#1d2531,#121b26 75%)!important}
html.asn-brand-v482.asn-auth-page .mark{font-size:0!important;background:transparent url('asn-logo-icon-v483.png') center/contain no-repeat!important;width:58px!important;height:58px!important;box-shadow:none!important;}
html.asn-brand-v482.asn-auth-page :is(.brand .by,.link){color:#ff8492!important}
html.asn-brand-v482.asn-auth-page :is(input,select,textarea){background:#101821!important;color:#f4f6fa!important;border-color:#40505e!important;}
html.asn-brand-v482.asn-auth-page input:focus{border-color:#e95869!important;box-shadow:0 0 0 3px rgba(224,52,76,.12)!important}
html.asn-brand-v482.asn-auth-page :is(button.primary,.btn-primary,.primary){background:linear-gradient(105deg,#b81e36,#de3047)!important;border-color:#d34253!important;color:#fff!important}
@media(max-width:900px){html.asn-brand-v482 .main-content.dashboard-v34-shell{padding:70px 16px 22px!important}}
@media(prefers-reduced-motion:reduce){html.asn-brand-v482 *,html.asn-brand-v482 *::before,html.asn-brand-v482 *::after{transition:none!important;animation-duration:.01ms!important}}

html.asn-brand-v482[data-theme="dark"] .main-content :is(#asn-brand-priority-v483,.v34-kpi,.v34-panel,.v34-filterbar,.v34-side-card,.v34-health-card,.card,.panel,.dashboard-section,.form-container,.table-container,.action-section){
 background:#151c25!important;background-color:#151c25!important;border-color:#303c49!important;
 box-shadow:0 7px 26px rgba(0,0,0,.10)!important;color:#ebf0f7!important;
}
html.asn-brand-v482[data-theme="dark"] .main-content :is(#asn-brand-priority-v483,.v34-kpi-icon){
 background:#4c1d2a!important;color:#ffa6b0!important;
}
html.asn-brand-v482[data-theme="dark"] .main-content :is(#asn-brand-priority-v483,.v34-btn:not(.v34-btn-primary)){
 background:#1d2732!important;color:#e3eaf3!important;border-color:#374350!important;
}
