:root {
  --brand-navy:#1f4788;--brand-navy-hover:#2a5899;--brand-blue:#4a90b5;--brand-teal:#2d8b8e;--brand-amber:#f59e0b;
  --page:#f5f6f7;--surface:#fff;--surface-muted:#eef0f2;--surface-soft:#f8fafc;--text:#172033;--text-strong:#1f4788;
  --muted:#64748b;--border:#e2e5e8;--border-strong:#cbd5e1;--success:#16845b;--success-soft:#e8f6ee;
  --danger:#c43c3c;--danger-soft:#fff1f1;--warning-soft:#fff8e7;
  --shadow-card:0 1px 2px rgba(15,23,42,.04),0 8px 24px rgba(15,23,42,.035);
  --shadow-elevated:0 18px 45px rgba(15,23,42,.16);--radius-sm:6px;--radius-md:10px;--radius-lg:14px;
  --font:"IBM Plex Sans",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif
}

/* Formulare CRUD compacte și acțiuni aliniate cu zona de căutare */
.card.narrow.crud-editor{width:100%;max-width:1100px}
.card.narrow.crud-editor.configuration-editor{max-width:1280px}
.form-stack.crud-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 14px}
.crud-form-grid>.crud-field-wide,.crud-form-grid>.form-actions{grid-column:1/-1}
.crud-form-grid>.form-actions{justify-content:flex-end;margin-top:2px}
.crud-form-grid>.form-actions .btn.icon-only,body .btn.icon-only.table-inline-add,body .article-condition-builder .btn.icon-only{border-color:var(--border)}
.crud-form-grid>.form-actions .btn.icon-only:hover,body .btn.icon-only.table-inline-add:hover,body .article-condition-builder .btn.icon-only:hover{border-color:var(--border-strong)}
.nom-table-toolbar,.article-search-toolbar{align-items:center}.filtre.article-search-toolbar{flex-flow:row nowrap}.filtre>.article-search-actions{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;gap:7px;margin-left:auto}.article-search-actions>.table-inline-add{flex:0 0 36px}.article-relabel-trigger{flex:0 0 auto;white-space:nowrap}.article-relabel-trigger>span:first-child{font-size:16px;line-height:1}
.nom-search-form,.article-search-form{display:flex;align-items:center;flex:1;min-width:260px;max-width:660px;gap:7px}
.nom-search-form input,.article-search-form input{flex:1;min-width:0}
.nom-table-toolbar>.table-inline-add{flex:0 0 36px;margin-left:auto}
.article-condition-builder{display:grid;grid-template-columns:minmax(190px,1.1fr) minmax(85px,.35fr) minmax(240px,1.4fr) auto;gap:7px;align-items:center;margin-bottom:7px}
.article-condition-builder select,.article-condition-builder input{width:100%;min-width:0}
.article-condition-builder-actions{display:flex;align-items:center;gap:3px}
.article-condition-builder-actions .btn.icon-only{width:31px;min-width:31px;height:31px;min-height:31px;font-size:15px}
.article-relabel-dialog{overflow-x:hidden}.article-relabel-dialog .is-relabeling .form-actions{display:none}
.article-condition-builder-help{margin:0 0 5px}.article-condition-builder-help b,.article-condition-builder-help code{color:var(--text-strong)}.formula-expression-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.formula-expression-head label{color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.05em;text-transform:uppercase}.formula-expression-head .btn.icon-only{border-color:var(--border)}.formula-expression-head .btn.icon-only:hover{border-color:var(--border-strong)}
.formula-expression-actions{display:flex;align-items:center;gap:3px}.formula-builder-dialog{width:min(960px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:hidden}.formula-builder-dialog[open]{display:flex;flex-direction:column}.formula-builder-dialog>.article-dialog-head,.formula-builder-dialog>.form-actions{flex:0 0 auto}.formula-builder-body{min-height:0;overflow-y:auto;padding:2px 3px 2px 0}.formula-expression-builder{grid-template-columns:minmax(310px,1.5fr) 90px minmax(160px,.7fr)}.formula-expression-builder .article-condition-builder-actions{grid-column:1/-1;justify-content:flex-end;flex-wrap:wrap}.formula-builder-dialog>.form-actions{margin-top:8px;padding-top:10px;border-top:1px solid var(--border)}.formula-builder-dialog textarea[data-role="formula-builder-expression"]{width:100%;min-height:110px;padding:9px 10px;resize:vertical;color:var(--text);background:var(--surface-soft);border:1px solid var(--border-strong);border-radius:var(--radius-sm);font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}.formula-builder-dialog textarea[data-role="formula-builder-expression"]:focus{outline:0;border-color:var(--brand-teal);box-shadow:0 0 0 3px rgba(45,139,142,.16)}
.import-page-card{width:100%;margin-inline:0;padding-inline:18px}.import-source-head{align-items:center}.import-reset-trigger{flex:0 0 auto;white-space:nowrap}.import-reset-trigger>span:first-child{font-size:16px;line-height:1}.import-template-actions{align-items:center;justify-content:flex-end;flex:0 0 auto}.import-template-actions .import-download-button{width:max-content;flex:0 0 auto;white-space:nowrap}.import-download-icon{font-size:16px;font-weight:800;line-height:1}.import-reset-dialog{width:min(720px,calc(100vw - 28px))}.import-reset-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.import-reset-options>form{display:flex;min-width:0;flex-direction:column;gap:12px;padding:14px;background:var(--surface-soft);border:1px solid var(--border);border-radius:9px}.import-reset-options p{margin:5px 0 0}.import-reset-options .form-actions{margin-top:auto}.import-spinner{display:inline-block;flex:0 0 auto;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:import-spinner-rotate .72s linear infinite}.import-progress{display:flex;align-items:center;gap:10px;padding:11px 13px;color:var(--text);background:rgba(45,139,142,.08);border:1px solid rgba(45,139,142,.28);border-radius:8px;font-size:12px;line-height:1.45}.import-progress>.import-spinner{width:19px;height:19px;color:var(--brand-teal)}.is-importing .btn[type="submit"]{cursor:wait;opacity:.86}.is-importing input[type="file"]{cursor:wait}.article-relabel-progress{display:grid;gap:9px;padding:11px 13px;color:var(--text);background:rgba(45,139,142,.08);border:1px solid rgba(45,139,142,.28);border-radius:8px;font-size:12px;line-height:1.45}.article-relabel-progress>div{display:flex;align-items:center}.article-relabel-progress progress{display:block;width:100%;height:7px;overflow:hidden;accent-color:var(--brand-teal)}.is-relabeling .btn[type="submit"]{cursor:wait;opacity:.86}@keyframes import-spinner-rotate{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.import-spinner{animation:none}}
@media(max-width:1000px){.form-stack.crud-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.article-condition-builder{grid-template-columns:1fr 110px}.article-condition-builder>[data-role="condition-value"],.article-condition-builder-actions{grid-column:1/-1}.formula-expression-builder>[data-role="formula-value"],.formula-expression-builder .article-condition-builder-actions{grid-column:1/-1}}
@media(max-width:640px){.form-stack.crud-form-grid{grid-template-columns:1fr}.nom-table-toolbar,.article-search-toolbar{flex-direction:row;align-items:center}.filtre.article-search-toolbar{flex-wrap:wrap}.nom-search-form,.article-search-form{width:auto;min-width:0;max-width:none}.nom-search-form input,.article-search-form input{width:auto}.nom-search-form .btn,.article-search-form .btn,.nom-table-toolbar>.table-inline-add,.article-search-actions>.table-inline-add{width:36px!important}.filtre>.article-search-actions{width:100%;margin-left:0}.article-condition-builder{grid-template-columns:1fr}.article-condition-builder>[data-role="condition-value"],.article-condition-builder-actions{grid-column:1}.article-condition-builder-actions{flex-wrap:wrap}.import-page-card{padding-inline:14px}.import-template-actions{justify-content:flex-start}}
[data-theme="dark"] {
  --page:#0d1117;--surface:#182233;--surface-muted:#223047;--surface-soft:#111a28;--text:#e2e8f0;--text-strong:#dbeafe;
  --muted:#94a3b8;--border:#334155;--border-strong:#475569;--success:#6ee7b7;--success-soft:#0d352c;
  --danger:#fca5a5;--danger-soft:#3b1c25;--warning-soft:#3b2d12;
  --shadow-card:0 1px 2px rgba(0,0,0,.2),0 10px 28px rgba(0,0,0,.14);--shadow-elevated:0 20px 55px rgba(0,0,0,.4)
}
*{box-sizing:border-box}html{min-height:100%;background:var(--page)}
body{min-height:100vh;margin:0;background:var(--page);color:var(--text);font:14px/1.5 var(--font);-webkit-font-smoothing:antialiased}.app-page{background:var(--surface-muted)}
button,input,select,textarea{font:inherit}a{color:var(--brand-navy);text-decoration:none}[data-theme="dark"] a{color:#93c5fd}a:hover{text-decoration:none}
:focus-visible{outline:3px solid rgba(45,139,142,.28);outline-offset:2px}

/* Application shell */
.app-shell{display:grid;grid-template:68px minmax(0,1fr)/240px minmax(0,1fr);grid-template-areas:"header header" "sidebar main";width:100%;max-width:1520px;min-height:100vh;margin:0 auto;background:var(--page);transition:grid-template-columns .2s ease}
.app-shell.sidebar-collapsed{grid-template-columns:62px minmax(0,1fr)}
.app-header{grid-area:header;position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;gap:18px;min-width:0;padding:5px 24px 5px 10px;background:var(--surface);border-top:3px solid var(--brand-navy);border-bottom:1px solid var(--border)}
.header-left,.header-actions,.brand{display:flex;align-items:center}.header-left{min-width:0;gap:8px}.brand{min-width:0;gap:12px;color:var(--text)}
.brand-logo{position:relative;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;overflow:hidden;border-radius:12px;color:#fff;background:linear-gradient(135deg,var(--brand-navy),var(--brand-navy-hover));box-shadow:inset 0 1px rgba(255,255,255,.14)}
.brand-logo span{font-size:12px;font-weight:750;letter-spacing:.04em;z-index:1}.brand-logo:before,.brand-logo:after,.brand-logo i{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.36)}
.brand-logo:before{width:4px;height:4px;top:10px;left:8px}.brand-logo:after{width:6px;height:6px;top:6px;right:7px;background:var(--brand-teal)}.brand-logo i{width:4px;height:4px;right:7px;bottom:11px}
.brand-copy{display:flex;min-width:0;flex-direction:column;line-height:1.18}.brand-copy strong{color:var(--brand-navy);font-size:18px;font-weight:700;letter-spacing:-.025em}.brand-copy strong em{color:var(--brand-teal);font-style:normal}.brand-copy strong b{margin-left:5px;color:var(--text);font-size:16px;font-weight:650}
.brand-copy small{display:flex;align-items:center;gap:6px;margin-top:3px;color:var(--muted);font-size:11px;font-weight:600;white-space:nowrap}.brand-copy small i{width:4px;height:4px;border-radius:50%;background:var(--brand-teal)}.brand-copy small span{font-size:9px;font-weight:500}[data-theme="dark"] .brand-copy strong{color:var(--brand-blue)}
.header-actions{flex:0 0 auto;justify-content:flex-end;gap:14px;margin-left:auto}.header-utility{display:flex;align-items:center;flex-direction:column;gap:3px}.header-credit{color:var(--muted);font-size:8px;font-weight:600;line-height:1;text-align:center;white-space:nowrap}.header-credit strong{color:var(--brand-navy)}[data-theme="dark"] .header-credit strong{color:var(--brand-blue)}
.theme-toggle{display:flex;padding:0;overflow:hidden;color:var(--muted);background:transparent;border:1px solid var(--border);border-radius:9px;cursor:pointer}.theme-segment{display:grid;place-items:center;width:35px;height:27px;font-size:14px}
[data-theme="light"] .theme-light,[data-theme="dark"] .theme-dark{color:#fff;background:var(--brand-navy)}[data-theme="dark"] .theme-dark{color:var(--brand-amber)}
.user-menu{position:relative}.user-menu-trigger{display:grid;place-items:center;padding:0;background:transparent;border:0;border-radius:50%;cursor:pointer}.user-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;color:#fff;background:linear-gradient(135deg,var(--brand-navy),var(--brand-teal));box-shadow:0 0 0 4px rgba(45,139,142,.12);font-size:13px;font-weight:750}.user-menu-trigger:hover .user-avatar,.user-menu-trigger[aria-expanded="true"] .user-avatar{box-shadow:0 0 0 4px rgba(31,71,136,.18)}
.user-menu-panel{position:absolute;top:calc(100% + 10px);right:0;width:280px;overflow:hidden;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-elevated);z-index:70}.user-menu-profile{display:flex;align-items:flex-start;gap:13px;padding:16px}.user-avatar-large{flex:0 0 48px;width:48px;height:48px;font-size:14px;box-shadow:none}.user-menu-details{display:flex;min-width:0;flex-direction:column;align-items:flex-start;line-height:1.25}.user-menu-name{max-width:180px;overflow:hidden;color:var(--brand-navy);font-size:13px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.user-menu-details small{max-width:180px;margin-top:2px;overflow:hidden;color:var(--muted);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.role-pill{display:inline-flex;margin-top:7px;padding:2px 7px;color:var(--brand-navy);background:rgba(31,71,136,.08);border:1px solid rgba(31,71,136,.25);border-radius:999px;font-size:9px;font-weight:700}.user-menu-logout{padding:8px 12px;border-top:1px solid var(--border)}.user-menu-logout button{display:flex;align-items:center;gap:9px;width:100%;min-height:34px;padding:6px 9px;color:var(--brand-navy);background:transparent;border:0;border-radius:7px;cursor:pointer;font-size:12px;font-weight:600;text-align:left}.user-menu-logout button:hover{background:var(--surface-muted)}.user-menu-logout button span{font-size:18px;transform:rotate(180deg)}
.icon-button{display:grid;place-items:center;width:36px;height:36px;padding:0;color:var(--muted);background:transparent;border:1px solid transparent;border-radius:9px;cursor:pointer}.icon-button:hover{color:var(--brand-navy);background:var(--surface-muted);border-color:var(--border)}
.mobile-menu-button{display:none;font-size:20px}.inline{display:inline}

/* Sidebar: paleta luminoasa si discreta, inspirata din aplicatia operationala */
.sidebar{grid-area:sidebar;position:sticky;top:68px;z-index:30;display:flex;flex-direction:column;height:calc(100vh - 68px);overflow:hidden;color:#475569;background:linear-gradient(180deg,#eef2f8 0%,#e1e8f1 100%);border-right:1px solid #d3dbe5}
.sidebar-nav{flex:1;overflow:auto;padding:15px 10px 20px;scrollbar-width:thin}.nav-group+.nav-group{margin-top:18px}.nav-label{padding:0 10px 7px;color:#64748b;border-bottom:1px solid rgba(31,71,136,.12);font-size:9px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}
.nav-item{display:flex;align-items:center;gap:10px;min-height:39px;margin-top:4px;padding:7px 10px;overflow:hidden;color:#475569;border:1px solid transparent;border-radius:8px;font-size:12px;font-weight:600;white-space:nowrap;transition:background .14s,color .14s,border-color .14s}
.nav-item:hover{color:var(--brand-teal);background:rgba(45,139,142,.10)}.nav-item.active{color:var(--brand-navy);background:linear-gradient(90deg,rgba(45,139,142,.15),rgba(31,71,136,.08));border-color:rgba(45,139,142,.12);box-shadow:inset 3px 0 var(--brand-teal)}
.nav-icon{display:grid;place-items:center;flex:0 0 24px;width:24px;font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif;font-size:20px;line-height:1}.sidebar-footer{padding:8px;border-top:1px solid rgba(31,71,136,.12)}
.sidebar-toggle{display:flex;align-items:center;justify-content:flex-end;width:100%;min-height:34px;padding:3px 5px;color:#52647a;background:transparent;border:0;border-radius:0;cursor:pointer}.sidebar-toggle:hover{color:var(--brand-navy);background:transparent}.sidebar-toggle>span:first-child{display:grid;place-items:center;width:28px;height:28px;font-size:22px;line-height:1;transition:transform .2s}.sidebar-scrim{display:none}
.sidebar-logout{display:none}.sidebar-logout button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:38px;padding:6px 10px;color:var(--brand-navy);background:rgba(255,255,255,.48);border:1px solid rgba(31,71,136,.13);border-radius:7px;cursor:pointer;font-size:12px;font-weight:650}.sidebar-logout button:hover{background:rgba(255,255,255,.82)}.sidebar-logout button span{font-size:18px;transform:rotate(180deg)}
.sidebar-collapsed .nav-label,.sidebar-collapsed .nav-item>span:last-child{display:none}.sidebar-collapsed .sidebar-nav{padding-inline:5px}.sidebar-collapsed .nav-item{justify-content:center;min-height:44px;padding-inline:2px}.sidebar-collapsed .nav-icon{flex-basis:26px;width:26px;font-size:22px}.sidebar-collapsed .sidebar-toggle{justify-content:center;padding-inline:0}.sidebar-collapsed .sidebar-toggle>span:first-child{transform:rotate(180deg)}
[data-theme="dark"] .sidebar{color:#cbd5e1;background:linear-gradient(180deg,#0f172a 0%,#020617 100%);border-right-color:#263246}[data-theme="dark"] .nav-label{color:#8290a5;border-bottom-color:rgba(255,255,255,.10)}[data-theme="dark"] .nav-item{color:#cbd5e1}[data-theme="dark"] .nav-item:hover{color:#7dd3d5;background:rgba(45,139,142,.15)}[data-theme="dark"] .nav-item.active{color:#dbeafe;background:linear-gradient(90deg,rgba(45,139,142,.23),rgba(59,130,246,.10));border-color:rgba(125,211,213,.12)}[data-theme="dark"] .sidebar-footer{border-top-color:rgba(255,255,255,.10)}[data-theme="dark"] .sidebar-toggle{color:#cbd5e1;background:transparent;border:0}[data-theme="dark"] .sidebar-toggle:hover{color:#fff;background:transparent}[data-theme="dark"] .sidebar-logout button{color:#cbd5e1;background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.10)}[data-theme="dark"] .sidebar-logout button:hover{color:#fff;background:rgba(255,255,255,.10)}

/* Main content and reusable components */
.app-main{grid-area:main;min-width:0;padding:24px}.content-frame{width:100%;max-width:1280px;margin:0 auto}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 0 18px}.page-kicker{margin-bottom:4px;color:var(--brand-teal);font-size:10px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}
h1,h2,h3,p{margin-top:0}h1{margin-bottom:4px;color:var(--text-strong);font-size:clamp(22px,2vw,28px);line-height:1.2;letter-spacing:-.025em}h2{margin:0;color:var(--text-strong);font-size:16px;line-height:1.3;letter-spacing:-.01em}.sub{color:var(--muted);font-size:12px}.page-heading .sub{margin:0}
.card{min-width:0;margin-bottom:18px;padding:18px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-card)}.card.narrow{max-width:680px}.card.narrow.configuration-editor{width:100%;max-width:1280px}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.card-head .sub{margin:3px 0 0}
.kpi{display:grid;grid-template-columns:repeat(3,minmax(170px,1fr));gap:14px;margin-bottom:18px}.kpi .box{position:relative;min-height:118px;padding:18px;overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-card);color:var(--muted);font-size:12px;font-weight:600}.kpi .box:after{content:"";position:absolute;right:-18px;bottom:-30px;width:90px;height:90px;border-radius:50%;background:rgba(45,139,142,.07)}.kpi .box b{display:block;margin-bottom:6px;color:var(--text-strong);font-size:28px;line-height:1.1;font-variant-numeric:tabular-nums}.kpi .box small{display:block;margin-top:5px;color:var(--muted);font-weight:400}
.table-wrap{width:100%;overflow:auto;border:1px solid var(--border);border-radius:8px;background:var(--surface)}table{width:100%;border-collapse:collapse;font-size:12px}th,td{padding:9px 11px;text-align:left;border-bottom:1px solid var(--border);vertical-align:middle}th{color:var(--muted);background:var(--surface-muted);font-size:10px;font-weight:750;letter-spacing:.035em;text-transform:uppercase;white-space:nowrap}tbody tr:last-child td,tr:last-child>th{border-bottom:0}tbody tr:hover td{background:rgba(45,139,142,.045)}td.num,th.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.row-number{width:1%;text-align:center!important;white-space:nowrap;font-variant-numeric:tabular-nums}.total-row>*{color:var(--text-strong);background:var(--warning-soft);border-top:2px solid var(--brand-amber);font-weight:750}.empty-state{padding:28px;color:var(--muted);text-align:center;background:var(--surface-soft);border:1px dashed var(--border-strong);border-radius:8px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 13px;color:var(--text);background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);cursor:pointer;font-size:12px;font-weight:650;line-height:1.2;transition:background .14s,border-color .14s,transform .08s}.btn:hover{color:var(--text);background:var(--surface-muted);border-color:var(--muted)}.btn:active{transform:translateY(1px)}.btn.mic{min-height:29px;padding:5px 9px;font-size:11px}.btn.primary,.btn.verde{color:#fff;background:var(--brand-navy);border-color:var(--brand-navy)}.btn.primary:hover,.btn.verde:hover{color:#fff;background:var(--brand-navy-hover);border-color:var(--brand-navy-hover)}.btn.rosu{color:var(--danger);background:var(--surface);border-color:var(--danger)}.btn.rosu:hover{background:var(--danger-soft)}.btn.success{color:#fff;background:var(--success);border-color:var(--success)}
.btn.icon-only,.btn.icon-only.primary,.btn.icon-only.verde,.btn.icon-only.rosu,.btn.icon-only.success{width:36px;min-width:36px;height:36px;min-height:36px;padding:0;color:var(--muted);background:transparent;border-color:transparent;box-shadow:none;font-size:18px;font-weight:500;line-height:1}.btn.mic.icon-only{width:29px;min-width:29px;height:29px;min-height:29px;font-size:16px}.btn.icon-only:hover,.btn.icon-only.primary:hover,.btn.icon-only.verde:hover,.btn.icon-only.rosu:hover,.btn.icon-only.success:hover{color:var(--brand-navy);background:transparent;border-color:transparent;font-weight:800}.btn.icon-only.rosu:hover{color:var(--danger)}.field-help{display:block;margin-top:1px;color:var(--muted);font-size:10px;line-height:1.4}.article-title-line{display:flex;align-items:center;gap:9px}.article-info-button{display:grid;place-items:center;width:24px;height:24px;padding:0;color:var(--brand-navy);background:transparent;border:1.5px solid currentColor;border-radius:50%;cursor:pointer;font:italic 750 14px/1 Georgia,serif}.article-info-button:hover{color:var(--brand-teal)}.article-search-form{display:flex;align-items:center;gap:6px}.article-row-actions{white-space:nowrap}.article-algorithm-dialog{width:min(680px,calc(100vw - 28px));padding:20px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow-elevated)}.article-algorithm-dialog::backdrop{background:rgba(6,12,24,.52)}.article-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.article-dialog-head h2,.article-dialog-head p{margin:0}.article-algorithm-dialog ol{margin:0;padding-left:22px}.article-algorithm-dialog li+li{margin-top:8px}.article-rules-table td{vertical-align:top}.article-condition-code{display:block;min-width:250px;max-width:520px;overflow-wrap:anywhere;white-space:normal}.article-relabel-dialog{width:min(580px,calc(100vw - 28px))}.article-month-fieldset{margin:0;padding:0;border:0}.article-month-fieldset legend{margin-bottom:6px;font-weight:700}.article-month-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.article-month-grid label{cursor:pointer}.article-month-grid input{position:absolute;opacity:0;pointer-events:none}.article-month-grid span{display:grid;place-items:center;min-height:34px;color:var(--muted);background:var(--surface-soft);border:1px solid var(--border);border-radius:7px;font-size:11px;font-weight:650}.article-month-grid input:checked+span{color:var(--brand-navy);background:rgba(45,139,142,.12);border-color:var(--brand-teal);font-weight:800}.article-month-grid input:focus-visible+span{outline:3px solid rgba(45,139,142,.28);outline-offset:2px}.article-operation-order{display:flex;align-items:center;flex-wrap:wrap;gap:7px;color:var(--muted);font-size:11px}.article-operation-order span{padding:3px 8px;background:var(--surface-muted);border-radius:999px}.article-operation-order span+span:before{content:"→";margin-right:7px;color:var(--brand-teal)}
@media(max-width:640px){.article-month-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="number"],input[type="date"],input[type="file"],select,textarea{width:auto;max-width:100%;min-height:38px;padding:8px 10px;color:var(--text);background:var(--surface-soft);border:1px solid var(--border-strong);border-radius:var(--radius-sm);outline:0;font-size:13px;transition:border-color .14s,box-shadow .14s,background .14s}input:not([type])::placeholder,input[type="text"]::placeholder,input[type="search"]::placeholder,input[type="email"]::placeholder,input[type="password"]::placeholder,input[type="number"]::placeholder,textarea::placeholder{color:var(--muted);opacity:.85}input:not([type]):hover,input[type="text"]:hover,input[type="search"]:hover,input[type="email"]:hover,input[type="password"]:hover,input[type="number"]:hover,input[type="date"]:hover,input[type="file"]:hover,select:hover,textarea:hover{border-color:var(--muted)}input:not([type]):focus,input[type="text"]:focus,input[type="search"]:focus,input[type="email"]:focus,input[type="password"]:focus,input[type="number"]:focus,input[type="date"]:focus,input[type="file"]:focus,select:focus,textarea:focus{background:var(--surface);border-color:var(--brand-teal);box-shadow:0 0 0 3px rgba(45,139,142,.16)}input[type="checkbox"],input[type="radio"]{accent-color:var(--brand-navy)}input[type="checkbox"]:focus-visible,input[type="radio"]:focus-visible{outline:3px solid rgba(45,139,142,.28);outline-offset:2px}input[type="file"]{width:100%;cursor:pointer}input[type="file"]::file-selector-button{margin:-3px 9px -3px -5px;padding:6px 9px;color:var(--text);background:var(--surface-muted);border:1px solid var(--border);border-radius:5px;cursor:pointer}[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{color-scheme:dark}
.filtre{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-bottom:16px;padding:12px;background:var(--surface-soft);border:1px solid var(--border);border-radius:8px}.filtre>div,.form-field{display:flex;flex-direction:column;gap:5px}.filtre label,.form-field>label,.field-label{color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.05em;text-transform:uppercase}.form-stack{display:flex;flex-direction:column;gap:16px}.form-field input:not([type="checkbox"]),.form-field select{width:100%}.form-actions{display:flex;flex-wrap:wrap;gap:8px;padding-top:2px}.configuration-editor .form-actions,.article-algorithm-dialog .form-actions{justify-content:flex-end}.configuration-editor .form-actions .btn.icon-only,.article-algorithm-dialog .form-actions .btn.icon-only{border-color:var(--border)}.configuration-editor .form-actions .btn.icon-only:hover,.article-algorithm-dialog .form-actions .btn.icon-only:hover{border-color:var(--border-strong)}.checkbox-row{display:flex;align-items:flex-start;gap:8px;color:var(--text);font-size:12px}.checkbox-row input{margin-top:3px}.info-banner{margin:0 0 18px;padding:12px 14px;color:var(--text);background:rgba(45,139,142,.08);border:1px solid rgba(45,139,142,.25);border-left:3px solid var(--brand-teal);border-radius:7px;font-size:12px}.info-banner strong{color:var(--text-strong)}.section-divider{height:1px;margin:22px 0;background:var(--border)}
.flash{display:flex;align-items:center;gap:9px;margin-bottom:16px;padding:10px 13px;color:var(--success);background:var(--success-soft);border:1px solid var(--success);border-radius:8px;font-size:12px;font-weight:600}.pager{display:flex;align-items:center;justify-content:center;gap:12px;margin:14px 0 0;color:var(--muted);font-size:12px}code{padding:2px 5px;color:var(--text);background:var(--surface-muted);border-radius:4px}.document-meta{max-width:760px;margin-bottom:18px}.document-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;max-width:1180px}.twofa-card{width:100%;max-width:620px;justify-self:start}.auth-shell-wide{max-width:620px}.twofa-setup-grid{grid-template-columns:minmax(0,1fr);width:100%}.status-pill{display:inline-flex;padding:3px 8px;color:var(--muted);background:var(--surface-muted);border:1px solid var(--border);border-radius:999px;font-size:10px;font-weight:750;text-transform:uppercase}.success-pill{color:var(--success);background:var(--success-soft);border-color:var(--success)}.qr-box{display:grid;place-items:center;margin:14px 0}.qr-box img{width:220px;height:220px;padding:8px;background:#fff;border:1px solid var(--border);border-radius:10px}
.account-database-card{grid-column:1/-1;width:100%}.database-tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.database-tools-grid>form{min-width:0;padding:14px;background:var(--surface-soft);border:1px solid var(--border);border-radius:9px}.database-tools-grid>form>.form-actions{justify-content:flex-end;margin-top:auto}.database-tools-grid h3,.database-backup-list h3{margin:0;color:var(--text-strong);font-size:14px}.database-backup-list{margin-top:18px}.database-backup-list .table-wrap{margin-top:9px}.database-backup-list td:last-child form{display:flex;justify-content:flex-end}.is-database-operating{cursor:wait}.is-database-operating input,.is-database-operating select{pointer-events:none}.database-restore-form{border-color:rgba(184,54,54,.3)!important}
.channel-summary-row>*{color:var(--brand-navy);background:rgba(45,139,142,.09);border-top:1px solid var(--brand-teal);font-weight:750}.channel-summary-row th:first-child{text-align:left}.centralizator-subtotal>*{color:var(--text-strong);font-weight:750;-webkit-print-color-adjust:exact;print-color-adjust:exact}.centralizator-subtotal-document>*{background:rgba(76,54,117,.08)}.centralizator-subtotal-operation>*{background:rgba(76,54,117,.14)}.centralizator-subtotal-problem>*{background:rgba(76,54,117,.22);border-top:1px solid rgba(76,54,117,.45)}.centralizator-report-page table>*>tr>*,.decont-report-page table>*>tr>*{border-right:.25px dotted var(--border-strong);border-bottom:.25px dotted var(--border-strong)}.centralizator-report-page table>*>tr>*:last-child,.decont-report-page table>*>tr>*:last-child{border-right:0}.centralizator-report-page table>*>tr:last-child>*,.decont-report-page table>*>tr:last-child>*{border-bottom:0}

/* Selectarea companiei și administrarea utilizatorilor */
.company-switcher{display:flex;align-items:flex-end;gap:5px;max-width:260px}.company-switcher label{display:flex;min-width:0;flex-direction:column;gap:1px}.company-switcher label>span{color:var(--muted);font-size:8px;font-weight:750;letter-spacing:.055em;text-transform:uppercase}.company-switcher select{width:190px;min-height:30px;padding:4px 26px 4px 8px;overflow:hidden;background:var(--surface);font-size:11px;font-weight:650;text-overflow:ellipsis}.company-switcher button{display:grid;place-items:center;width:30px;height:30px;padding:0;color:var(--brand-navy);background:transparent;border:0;cursor:pointer;font-size:17px;font-weight:500}.company-switcher button:hover{font-weight:900}.admin-user-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}.compact-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.inline-admin-form,.role-edit-form{display:flex;align-items:flex-end;gap:8px}.inline-admin-form .form-field{flex:1}.role-edit-form select{min-width:145px;min-height:31px;padding-block:4px}.admin-users-table td small{color:var(--muted)}

/* Authentication */
.auth-page{display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 20% 15%,rgba(45,139,142,.12),transparent 32%),var(--page)}.auth-shell{width:100%;max-width:390px}.auth-card{width:100%;padding:28px 26px 22px;background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow-elevated)}.auth-brand{margin-bottom:20px;color:var(--text);font-size:13px;font-weight:750}.auth-brand span{color:var(--brand-teal)}.auth-card h1{font-size:21px}.auth-card .sub{margin-bottom:22px}.auth-card .btn{width:100%;min-height:42px}.auth-foot{margin:20px 0 0;padding-top:14px;color:var(--muted);border-top:1px solid var(--border);font-size:10px;text-align:center}.auth-flash{margin-bottom:12px}.otp-input{text-align:center;letter-spacing:5px;font-size:20px!important;font-weight:700}

@media(max-width:900px){.app-shell,.app-shell.sidebar-collapsed{grid-template:62px minmax(0,1fr)/minmax(0,1fr);grid-template-areas:"header" "main"}.app-header{padding:5px 10px;border-top-width:2px}.mobile-menu-button{display:grid}.brand-logo{flex-basis:38px;width:38px;height:38px;border-radius:10px}.brand-copy strong{font-size:16px}.brand-copy strong b{font-size:14px}.brand-copy small{font-size:10px}.header-credit{display:none}.header-utility{gap:0}.user-avatar{width:38px;height:38px;font-size:12px;box-shadow:0 0 0 3px rgba(45,139,142,.1)}.user-avatar-large{width:48px;height:48px;font-size:14px;box-shadow:none}.theme-segment{width:30px;height:28px}.icon-button{width:36px;height:36px}.sidebar{position:fixed;top:62px;bottom:0;left:0;width:min(270px,86vw);height:auto;transform:translateX(-102%);transition:transform .2s ease;box-shadow:var(--shadow-elevated)}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-scrim{position:fixed;inset:62px 0 0;z-index:20;display:block;visibility:hidden;padding:0;opacity:0;background:rgba(6,12,24,.48);border:0;transition:opacity .2s,visibility .2s}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-open .sidebar-scrim{visibility:visible;opacity:1}.sidebar-toggle{display:none}.sidebar-logout{display:block}.sidebar-collapsed .nav-label{display:block}.sidebar-collapsed .nav-item>span:last-child{display:inline}.sidebar-collapsed .nav-item{justify-content:flex-start;min-height:39px;padding-inline:10px}.sidebar-collapsed .nav-icon{flex-basis:24px;width:24px;font-size:20px}.app-main{padding:18px}.account-grid,.admin-user-grid{grid-template-columns:1fr}.company-switcher{max-width:200px}.company-switcher select{width:145px}}
@media(max-width:900px){.database-tools-grid{grid-template-columns:1fr}}
@media(max-width:640px){.brand-copy small{max-width:175px;overflow:hidden;text-overflow:ellipsis}.header-actions{gap:9px}.user-menu-panel{right:-4px;width:min(280px,calc(100vw - 20px))}.app-main{padding:14px 10px 24px}.page-heading{align-items:flex-start;flex-direction:column;gap:9px}.kpi{grid-template-columns:1fr;gap:10px}.kpi .box{min-height:94px}.card{padding:14px;border-radius:8px}.card-head{flex-direction:column}.filtre{align-items:stretch;flex-direction:column}.filtre select,.filtre input,.filtre .btn{width:100%}.pager{flex-wrap:wrap}}
@media(max-width:430px){.brand-copy strong b,.brand-copy small,.theme-light{display:none}.theme-toggle{border-radius:50%}.company-switcher label>span{display:none}.company-switcher select{width:100px}.company-switcher button{width:26px}.auth-page{padding:14px}.auth-card{padding:24px 20px 19px}.compact-form-grid{grid-template-columns:1fr}.inline-admin-form,.role-edit-form{align-items:stretch;flex-direction:column}}
@media(min-width:1521px){.app-shell{box-shadow:0 0 0 1px var(--border),0 12px 42px rgba(15,23,42,.10)}[data-theme="dark"] .app-shell{box-shadow:0 0 0 1px var(--border),0 12px 48px rgba(0,0,0,.34)}}

/* Configurator pentru formule calculate */
textarea{font:inherit}.formula-help{line-height:1.75}.formula-card{padding-inline:0}.formula-card>.card-head{margin-inline:18px}.formula-list{border-top:1px solid var(--border)}.formula-row{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(360px,1.15fr);gap:18px;padding:16px 18px;border-bottom:1px solid var(--border)}.formula-row.is-custom{box-shadow:inset 3px 0 var(--brand-amber)}.formula-meta{min-width:0}.formula-title{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.formula-title strong{color:var(--text-strong);font-size:13px}.formula-title code{font-size:10px}.formula-meta p{margin:5px 0;color:var(--muted);font-size:11px}.formula-meta>small,.formula-expression>small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.formula-markers{display:flex;flex-wrap:wrap;gap:5px;margin:8px 0}.report-badge{display:inline-flex;align-items:center;padding:2px 7px;border-radius:999px;font-size:9px;font-weight:750}.report-badge.direct{color:#175a43;background:#e8f6ee;border:1px solid #9ed8c1}.report-badge.indirect{color:#79510a;background:#fff8e7;border:1px solid #ebcb80}.report-badge.none{color:var(--muted);background:var(--surface-muted);border:1px solid var(--border)}[data-theme="dark"] .report-badge.direct{color:#9ff2cf;background:#123b31;border-color:#2d715c}[data-theme="dark"] .report-badge.indirect{color:#fbd38d;background:#3b2d12;border-color:#755921}.formula-expression textarea{width:100%;min-height:78px;padding:9px 10px;resize:vertical;color:var(--text);background:var(--surface-soft);border:1px solid var(--border-strong);border-radius:var(--radius-sm);font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace}.formula-expression textarea:focus{outline:0;border-color:var(--brand-teal);box-shadow:0 0 0 3px rgba(45,139,142,.16)}.formula-maintenance-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.formula-maintenance-actions form{display:flex;align-items:flex-start;flex-direction:column;gap:10px;padding:14px;background:var(--surface-soft);border:1px solid var(--border);border-radius:8px}.formula-maintenance-actions p{margin:0}
@media(max-width:800px){.formula-row{grid-template-columns:1fr}.formula-maintenance-actions{grid-template-columns:1fr}}
.virtual-fields-card .card-head{align-items:center}.virtual-fields-table td code{white-space:normal;overflow-wrap:anywhere}.virtual-fields-table td.actions{display:flex;justify-content:flex-end;gap:5px}.virtual-fields-table td.actions form{display:inline-flex}.virtual-field-dialog{width:min(940px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto}.virtual-field-dialog>form{display:flex;flex-direction:column;gap:14px}.virtual-field-form-grid{display:grid;grid-template-columns:1fr 1.15fr 1.45fr .55fr;gap:12px;align-items:end}.virtual-field-active{min-height:42px;grid-column:1/-1}.virtual-field-builder{display:grid;grid-template-columns:minmax(260px,1fr) 82px 42px 42px;gap:7px;align-items:center;margin-bottom:8px}.virtual-field-builder select{min-width:0}.empty-state{padding:18px;color:var(--muted)}@media(max-width:800px){.virtual-field-form-grid{grid-template-columns:1fr 1fr}.virtual-field-builder{grid-template-columns:1fr 72px 42px 42px}}@media(max-width:560px){.virtual-field-form-grid{grid-template-columns:1fr}.virtual-field-builder{grid-template-columns:1fr 1fr 42px 42px}}
@media(max-width:700px){.import-reset-options{grid-template-columns:1fr}}
@media print{:root,[data-theme="dark"]{--page:#fff;--surface:#fff;--surface-muted:#f1f3f5;--text:#111;--text-strong:#1f4788;--muted:#555;--border:#cfd4da}body,body.app-page,.app-shell,.app-main,.content-frame,.card{background:#fff!important}body{font-size:10pt}.app-shell,.app-shell.sidebar-collapsed{display:block;min-height:0}.app-header,.sidebar,.sidebar-scrim,.no-print,.flash{display:none!important}.app-main{padding:0}.content-frame{max-width:none}.card{padding:0;border:0;box-shadow:none}.table-wrap{overflow:hidden;background:#fff;border:1px solid #999;border-radius:8px;-webkit-print-color-adjust:exact;print-color-adjust:exact}table{background:#fff;font-size:8pt}th,.total-row>*{-webkit-print-color-adjust:exact;print-color-adjust:exact}th,td{padding:4pt}h1{font-size:16pt}h2{font-size:11pt}tr{break-inside:avoid}}

/* Rapoarte A4 cu antet aliniat și spațiere controlată */
.report-signatures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px;margin-top:20px;padding-top:14px;border-top:1px solid var(--border)}.report-signatures>div{display:flex;flex-direction:column;gap:3px}.report-signatures>div:last-child{text-align:right}.report-signatures strong{color:var(--text-strong);font-size:12px}.report-signatures span{color:var(--muted);font-size:11px}.invoice-values-mismatch>td{background:rgba(196,60,60,.055)!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
@page centralizator-report{size:A4 landscape;margin:17mm 10mm 17mm;@top-left{content:"";width:50%;color:#52647a;font:9.75pt Arial,sans-serif;text-align:left;vertical-align:bottom;padding-top:3px;padding-bottom:2px;margin-bottom:10px;border-bottom:.7pt solid #1f4788}@top-right{content:"";color:#52647a;font:8.25pt Arial,sans-serif;text-align:right;vertical-align:bottom;padding-top:3px;padding-bottom:13px}@bottom-left{content:"";color:#52647a;font:8.25pt Arial,sans-serif;vertical-align:top;margin-top:10px}@bottom-right{content:counter(page) " | " counter(pages);color:#52647a;font:8.25pt Arial,sans-serif;vertical-align:top;margin-top:10px}}
@media print{html,body{height:auto!important;min-height:0!important}.app-shell,.app-main,.content-frame,.centralizator-report-document,.centralizator-annex-sheet,.decont-summary-document,.decont-annex-sheet{height:auto!important;min-height:0!important}.centralizator-report-document,.centralizator-annex-sheet,.decont-summary-document,.decont-annex-sheet{break-after:auto!important;page-break-after:auto!important}.centralizator-report-document>.card:last-child{margin-bottom:0!important}.centralizator-report-document,.centralizator-annex-sheet{page:centralizator-report}.decont-summary-sheet,.decont-annex-sheet,.centralizator-annex-sheet{margin:0}.centralizator-report-page table>*>tr>*,.decont-report-page table>*>tr>*{position:relative;border-right:0!important;border-bottom:0!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.centralizator-report-page table>*>tr>*::after,.decont-report-page table>*>tr>*::after{content:"";position:absolute;z-index:1;right:0;bottom:0;left:0;height:.2px;background:repeating-linear-gradient(90deg,rgba(82,100,122,.2) 0 .55px,transparent .55px 2.4px);pointer-events:none}.centralizator-report-page table>*>tr>*::before,.decont-report-page table>*>tr>*::before{content:"";position:absolute;z-index:1;top:0;right:0;bottom:0;width:.2px;background:repeating-linear-gradient(180deg,rgba(82,100,122,.2) 0 .55px,transparent .55px 2.4px);pointer-events:none}.centralizator-report-page table>*>tr>*:last-child::before,.decont-report-page table>*>tr>*:last-child::before,.centralizator-report-page table>*>tr:last-child>*::after,.decont-report-page table>*>tr:last-child>*::after{display:none}.decont-summary-sheet thead,.decont-annex-sheet thead,.centralizator-annex-sheet thead{display:table-header-group}.decont-summary-sheet table{font-size:7.2pt}.decont-summary-sheet th,.decont-summary-sheet td{padding:3.2pt}.report-signatures{margin-top:7mm;padding-top:3mm;break-inside:avoid;page-break-inside:avoid}.decont-annex-sheet table{table-layout:fixed;font-size:6.5pt}.decont-annex-sheet th,.decont-annex-sheet td{padding:2.8pt 2.2pt;overflow-wrap:anywhere;white-space:normal}.decont-annex-sheet th:nth-child(1){width:4%}.decont-annex-sheet th:nth-child(2){width:8%}.decont-annex-sheet th:nth-child(3){width:20%}.decont-annex-sheet th:nth-child(4){width:9%}.decont-annex-sheet th:nth-child(5){width:14%}.decont-annex-sheet th:nth-child(6){width:10%}.decont-annex-sheet th:nth-child(7){width:7%}.decont-annex-sheet th:nth-child(8),.decont-annex-sheet th:nth-child(9),.decont-annex-sheet th:nth-child(10){width:9%}.invoice-values-mismatch>td{background:#fff4f4!important}.channel-summary-row>*{-webkit-print-color-adjust:exact;print-color-adjust:exact}.channel-summary-row,.centralizator-subtotal,.total-row{break-inside:avoid;page-break-inside:avoid}}

/* Paginare compactă pentru tipărire */
.decont-text-spacer{visibility:hidden}.invoice-value-labels,.invoice-value-stack{display:grid;grid-template-rows:repeat(3,1fr);gap:1px;line-height:1.25}.invoice-value-labels{color:var(--muted);font-size:.82em;font-weight:600;white-space:nowrap}.invoice-value-labels>span,.invoice-value-stack>strong{display:block;min-height:1.25em}.invoice-value-stack{min-width:74px;font-variant-numeric:tabular-nums;text-align:right}.invoice-value-stack>strong{color:inherit;font-size:inherit;font-weight:700;white-space:nowrap}.invoice-line-count{text-align:center!important}.category-total-row>*{color:var(--text-strong);background:rgba(45,139,142,.075);border-top:1px solid var(--brand-teal);font-weight:750}.decont-report-page .decont-summary-document,.decont-report-page .decont-annex-sheet{font-size:15px}.decont-report-page .decont-summary-document h1,.decont-report-page .decont-annex-sheet h1{font-size:calc(clamp(22px,2vw,28px) + 1px)}.decont-report-page .decont-summary-document h2,.decont-report-page .decont-annex-sheet h2{font-size:17px}.decont-report-page .decont-summary-document .sub,.decont-report-page .decont-annex-sheet .sub{font-size:13px}.decont-report-page .decont-summary-document table,.decont-report-page .decont-annex-sheet table{font-size:13px}.decont-report-page .decont-summary-document th,.decont-report-page .decont-annex-sheet th{font-size:11px}.decont-report-page .report-signatures strong{font-size:13px}.decont-report-page .report-signatures span{font-size:12px}
.centralizator-report-page .centralizator-report-document{font-size:15px}.centralizator-report-page .centralizator-report-document h1{font-size:calc(clamp(22px,2vw,28px) + 1px)}.centralizator-report-page .centralizator-report-document h2{font-size:17px}.centralizator-report-page .centralizator-report-document .sub{font-size:13px}.centralizator-report-page .centralizator-report-document table{font-size:13px}.centralizator-report-page .centralizator-report-document th{font-size:11px}.centralizator-report-page .report-signatures strong{font-size:13px}.centralizator-report-page .report-signatures span{font-size:12px}
.centralizator-report-page .centralizator-annex-sheet{font-size:15px}.centralizator-report-page .centralizator-annex-sheet h2{font-size:17px}.centralizator-report-page .centralizator-annex-sheet .sub{font-size:13px}.centralizator-annex-table{table-layout:fixed}.centralizator-annex-table th,.centralizator-annex-table td{overflow-wrap:anywhere;white-space:normal}.centralizator-annex-table th:first-child,.centralizator-annex-table td:first-child{width:68px;min-width:68px}
@media print{
  /* Corpul rămâne pe pagina Anexei după ultimul rând; evită pagina
     portrait goală produsă de revenirea implicită de la decont-annex la auto */
  body.decont-report-page{page:decont-annex!important}
  .decont-report-page .decont-annex-sheet{page:decont-annex!important}
  .decont-report-page .decont-summary-document{page:decont-summary!important}
  body.centralizator-report-page,
  .centralizator-report-page .centralizator-report-document,
  .centralizator-report-page .centralizator-annex-sheet{page:auto!important}
  .decont-report-page .app-shell,
  .decont-report-page .app-main,
  .decont-report-page .content-frame,
  .centralizator-report-page .app-shell,
  .centralizator-report-page .app-main,
  .centralizator-report-page .content-frame{display:contents!important}
  .centralizator-report-page .centralizator-annex-sheet{break-before:page!important;page-break-before:always!important}
  .decont-annex-sheet th:nth-child(8){width:6%}
  .decont-annex-sheet th:nth-child(9),.decont-annex-sheet th:nth-child(10){width:11%}
  .invoice-value-labels,.invoice-value-stack{min-width:0;gap:.5pt;line-height:1.15}
  .decont-report-page{font-size:calc(10pt + 1px)}
  .decont-report-page h1{font-size:calc(16pt + 1px)!important}
  .decont-report-page h2{font-size:calc(11pt + 1px)!important}
  .decont-report-page .decont-summary-sheet table{font-size:calc(7.2pt + 1px)!important}
  .decont-report-page .decont-annex-sheet table{font-size:calc(6.5pt + 1px)!important}
  .decont-report-page .decont-summary-sheet>.decont-text-spacer{height:18px;min-height:18px;margin-bottom:0}
  .centralizator-report-page{font-size:calc(10pt + 1px)}
  .centralizator-report-page h1{font-size:calc(16pt + 1px)!important}
  .centralizator-report-page h2{font-size:calc(11pt + 1px)!important}
  .centralizator-report-page .centralizator-summary-sheet table{font-size:calc(7.2pt + 1px)!important}
  .centralizator-report-page .centralizator-annex-sheet table{font-size:calc(6pt + 1px)!important}
  .centralizator-report-page .centralizator-annex-sheet th,.centralizator-report-page .centralizator-annex-sheet td{padding:2.5pt 2pt}
  .centralizator-annex-table th:nth-child(1){width:8%;min-width:0}.centralizator-annex-table th:nth-child(2){width:10%}.centralizator-annex-table th:nth-child(3){width:15%}.centralizator-annex-table th:nth-child(4){width:8%}.centralizator-annex-table th:nth-child(5){width:8%}.centralizator-annex-table th:nth-child(6){width:9%}.centralizator-annex-table th:nth-child(7){width:10%}.centralizator-annex-table th:nth-child(8){width:8%}.centralizator-annex-table th:nth-child(9),.centralizator-annex-table th:nth-child(10){width:5%}.centralizator-annex-table th:nth-child(11),.centralizator-annex-table th:nth-child(12){width:7%}
  .category-total-row{break-inside:avoid;page-break-inside:avoid}
}

/* Ajutor generat din catalogul de câmpuri disponibil la rulare */
.field-source-card{scroll-margin-top:86px}.field-source-principle{line-height:1.65}.field-source-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:18px}.field-source-summary-card{display:grid;grid-template-columns:1fr auto;gap:2px 14px;padding:15px 17px;color:var(--text);background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-card)}.field-source-summary-card:hover{color:var(--text);border-color:var(--brand-teal)}.field-source-summary-card>span{align-self:end;color:var(--text-strong);font-size:13px;font-weight:750}.field-source-summary-card>strong{grid-row:1/3;grid-column:2;align-self:center;color:var(--brand-navy);font-size:26px;font-variant-numeric:tabular-nums}.field-source-summary-card>small{color:var(--muted);font-size:10px}.field-source-groups{display:grid;gap:10px}.field-source-group{overflow:hidden;background:var(--surface);border:1px solid var(--border);border-radius:9px}.field-source-group>summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 13px;color:var(--muted);background:var(--surface-soft);cursor:pointer;font-size:11px;list-style:none}.field-source-group>summary::-webkit-details-marker{display:none}.field-source-group>summary:before{content:"›";grid-column:1;color:var(--brand-navy);font-size:18px;font-weight:800;line-height:1;transition:transform .15s}.field-source-group[open]>summary:before{transform:rotate(90deg)}.field-source-group>summary>.field-source-badge{grid-column:2}.field-source-group>summary>span:nth-of-type(2){grid-column:3}.field-source-group>summary>strong{grid-column:4;min-width:24px;color:var(--text-strong);text-align:right;font-variant-numeric:tabular-nums}.field-source-badge{display:inline-flex;width:max-content;padding:3px 8px;color:var(--brand-navy);background:rgba(31,71,136,.07);border:1px solid rgba(31,71,136,.2);border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.035em;text-transform:uppercase}.field-source-badge.source-imported{color:#175a43;background:#e8f6ee;border-color:#9ed8c1}.field-source-badge.source-calculated{color:#79510a;background:#fff8e7;border-color:#ebcb80}.field-source-badge.source-lookup{color:#39578d;background:#eef4ff;border-color:#bed0ed}.field-source-table-wrap{border:0;border-top:1px solid var(--border);border-radius:0}.field-source-table{min-width:1040px;table-layout:fixed}.field-source-table th:nth-child(1){width:16%}.field-source-table th:nth-child(2){width:8%}.field-source-table th:nth-child(3){width:17%}.field-source-table th:nth-child(4){width:43%}.field-source-table th:nth-child(5){width:16%}.field-source-table td{vertical-align:top}.field-source-table td>strong,.field-source-table td>span,.field-source-table td>small,.field-source-table td>code{display:block}.field-source-table td>strong{color:var(--text-strong);font-size:11px}.field-source-table td>code{width:max-content;max-width:100%;margin-top:3px;overflow-wrap:anywhere;color:var(--brand-navy);font-size:10px}.field-source-table td>small{margin-top:3px;color:var(--muted);font-size:9px;line-height:1.4}.field-source-rule>span{line-height:1.55}.field-source-expression{width:100%!important;margin-top:6px!important;padding:5px 7px;color:var(--text)!important;background:var(--surface-soft);border:1px solid var(--border);border-radius:5px;font:10px/1.45 ui-monospace,SFMono-Regular,Consolas,monospace}.field-source-none{color:var(--muted)}[data-theme="dark"] .field-source-badge.source-imported{color:#9ff2cf;background:#123b31;border-color:#2d715c}[data-theme="dark"] .field-source-badge.source-calculated{color:#fbd38d;background:#3b2d12;border-color:#755921}[data-theme="dark"] .field-source-badge.source-lookup{color:#bfdbfe;background:#172a49;border-color:#385982}@media(max-width:760px){.field-source-summary{grid-template-columns:1fr}.field-source-group>summary{grid-template-columns:auto minmax(0,1fr) auto}.field-source-group>summary>span:nth-of-type(2){display:none}.field-source-group>summary>strong{grid-column:3}}

/* Administrarea globală a parolei și stării utilizatorului */
.admin-user-actions-head,.admin-user-actions{text-align:right;white-space:nowrap}.admin-user-actions .admin-status-form{display:inline-block;margin-left:4px}.admin-user-actions .admin-user-action,.admin-password-dialog .admin-modal-action{border-color:var(--border)}.admin-user-actions .admin-user-action:hover,.admin-password-dialog .admin-modal-action:hover{border-color:var(--border-strong)}.admin-user-inactive>td:not(.admin-user-actions){color:var(--muted);background:var(--surface-soft)}.admin-self-action{display:inline-grid;place-items:center;width:29px;height:29px;color:var(--muted)}.admin-password-dialog{width:min(760px,calc(100vw - 28px))}.admin-password-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.admin-password-dialog .info-banner{margin-bottom:0}.admin-password-dialog .form-actions{justify-content:flex-end}@media(max-width:760px){.admin-password-grid{grid-template-columns:1fr}}

/* Rapoarte analitice pentru cost marfă și OSS */
.analytical-report-card{display:grid;gap:16px}.analytical-report-filters{align-items:end}.analytical-report-filter-action{margin-left:auto}.analytical-report-title-row{align-items:flex-start;margin-bottom:0}.report-formula-help{position:relative;flex:0 0 auto}.report-formula-help>summary{display:inline-flex;align-items:center;gap:5px;padding:6px 9px;color:var(--brand-navy);background:var(--surface-soft);border:1px solid var(--border);border-radius:999px;cursor:pointer;font-size:10px;font-weight:750;list-style:none}.report-formula-help>summary::-webkit-details-marker{display:none}.report-formula-help>div{position:absolute;top:calc(100% + 6px);right:0;z-index:20;width:min(620px,calc(100vw - 70px));max-height:420px;padding:12px;overflow:auto;background:var(--surface);border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow-elevated)}.report-formula-help p{display:grid;grid-template-columns:150px minmax(220px,1fr);gap:2px 10px;margin:0;padding:8px 0;border-bottom:1px solid var(--border)}.report-formula-help p:last-child{border-bottom:0}.report-formula-help strong{color:var(--text-strong);font-size:10px}.report-formula-help code{overflow-wrap:anywhere;color:var(--brand-teal);font-size:10px}.report-formula-help span{grid-column:2;color:var(--muted);font-size:9px}.report-quality-warning{color:#79510a;background:var(--warning-soft);border-color:#ebcb80}.report-kpi-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.report-kpi-strip>div{display:grid;grid-template-columns:1fr auto;gap:2px 8px;padding:11px 13px;background:var(--surface-soft);border:1px solid var(--border);border-radius:9px}.report-kpi-strip span{color:var(--muted);font-size:9px;font-weight:750;text-transform:uppercase}.report-kpi-strip strong{grid-row:1/3;grid-column:2;align-self:center;color:var(--text-strong);font-size:17px;font-variant-numeric:tabular-nums}.report-kpi-strip small{color:var(--muted);font-size:9px}.analytical-report-table-wrap{border-color:var(--border-strong)}.analytical-report-table{min-width:1020px}.analytical-report-table th,.analytical-report-table td{border-right:1px dotted rgba(82,100,122,.25);border-bottom:1px dotted rgba(82,100,122,.25)}.analytical-report-table tr>*:last-child{border-right:0}.analytical-report-table tbody tr:last-child>*{border-bottom:0}.analytical-report-table .row-number{text-align:center}.report-row-warning>td{background:rgba(245,158,11,.07)}.analytical-report-section{display:grid;gap:7px}.analytical-report-section h3{margin:0;color:var(--text-strong);font-size:13px}.oss-summary-section{margin-top:4px}.oss-report-filters{display:grid;grid-template-columns:140px minmax(360px,1fr) minmax(200px,260px) auto;align-items:end;gap:12px}.oss-report-filters fieldset{min-width:0;margin:0;padding:7px 10px 9px;border:1px solid var(--border-strong);border-radius:var(--radius-sm)}.oss-report-filters legend{padding:0 5px;color:var(--muted);font-size:9px;font-weight:750;letter-spacing:.05em;text-transform:uppercase}.oss-month-grid{display:grid;grid-template-columns:repeat(6,minmax(38px,1fr));gap:5px}.oss-month-grid label{position:relative;cursor:pointer}.oss-month-grid input{position:absolute;opacity:0;pointer-events:none}.oss-month-grid span{display:grid;place-items:center;min-height:30px;color:var(--muted);background:var(--surface-soft);border:1px solid var(--border);border-radius:6px;font-size:10px;font-weight:700}.oss-month-grid input:checked+span{color:var(--brand-navy);background:rgba(45,139,142,.1);border-color:var(--brand-teal)}.oss-report-filter-action{align-self:end}.oss-detail-table{min-width:1120px}.oss-summary-table{min-width:720px}.oss-report-filters .form-field small{display:block;margin-top:3px;color:var(--muted);font-size:8px}
@media(max-width:1050px){.oss-report-filters{grid-template-columns:140px 1fr}.oss-report-filter-action{justify-self:end}.report-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.analytical-report-heading{align-items:flex-start}.analytical-report-filters{align-items:stretch;flex-direction:column}.analytical-report-filter-action{margin-left:0}.oss-report-filters{grid-template-columns:1fr}.oss-month-grid{grid-template-columns:repeat(4,minmax(38px,1fr))}.oss-report-filter-action{justify-self:stretch}.oss-report-filter-action .btn{width:100%}.report-kpi-strip{grid-template-columns:1fr}.analytical-report-title-row{gap:8px}.report-formula-help{width:100%}.report-formula-help>div{right:auto;left:0;width:min(620px,calc(100vw - 48px))}.report-formula-help p{grid-template-columns:1fr}.report-formula-help span{grid-column:1}}
@media print{.analytical-report-page{font-size:calc(10pt + 1px)}.analytical-report-page .app-shell,.analytical-report-page .app-main,.analytical-report-page .content-frame{display:contents!important}.analytical-report-page .analytical-report-card{display:block}.analytical-report-page .analytical-report-title-row{margin-bottom:8pt}.analytical-report-page .report-kpi-strip{margin-bottom:8pt}.analytical-report-page .analytical-report-table-wrap{overflow:visible;border-color:#9aa4b2}.analytical-report-page .analytical-report-table{width:100%;min-width:0;table-layout:auto;font-size:7.2pt}.analytical-report-page .analytical-report-table th,.analytical-report-page .analytical-report-table td{padding:3pt 2.5pt;border-color:rgba(82,100,122,.22)!important}.analytical-report-page .report-signatures{margin-top:7mm;padding-top:3mm}.analytical-report-page .analytical-report-section+.analytical-report-section{margin-top:8mm}.analytical-report-page .analytical-report-section{break-inside:auto}.analytical-report-page .report-row-warning>td{background:#fff8e7!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Configurații și administrarea formulelor virtuale pentru rapoarte */
.analytical-configuration-bar{display:flex;align-items:flex-end;justify-content:flex-end;width:100%;max-width:100%;min-width:0;gap:8px;padding-bottom:10px;border-bottom:1px solid var(--border)}.analytical-configuration-select{display:flex;align-items:center;min-width:0;max-width:100%;gap:7px}.analytical-configuration-select label{flex:0 0 auto;color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}.analytical-configuration-select select{width:260px;max-width:100%;min-width:0}.analytical-configuration-actions{display:flex;flex:0 0 auto;align-items:center;gap:3px}.analytical-configuration-actions form{display:inline-flex}.analytical-config-dialog{width:min(780px,calc(100vw - 28px))}.analytical-config-dialog>form{display:flex;flex-direction:column;gap:14px}.analytical-config-form-grid{display:grid;grid-template-columns:2fr 1fr;gap:12px}.analytical-config-save-mode{display:flex;flex-wrap:wrap;gap:14px;padding:10px 12px;background:var(--surface-soft);border:1px solid var(--border);border-radius:8px}.analytical-config-save-mode label{display:flex;align-items:center;gap:7px;font-size:11px}.report-formula-actions{display:flex;align-items:center;gap:4px}.report-quality-details{margin-top:-8px;background:var(--surface-soft);border:1px solid #ebcb80;border-radius:8px}.report-quality-details>summary{padding:9px 12px;color:#79510a;cursor:pointer;font-size:10px;font-weight:750}.report-quality-details .table-wrap{border:0;border-top:1px solid #ebcb80;border-radius:0}.report-quality-details table{min-width:900px}.report-virtual-fields-card{margin-bottom:16px}.report-virtual-fields-card+.formula-maintenance{margin-top:0}@media(max-width:700px){.analytical-configuration-bar{align-items:stretch;flex-direction:column}.analytical-configuration-select{display:grid;grid-template-columns:minmax(0,1fr) auto}.analytical-configuration-select label{grid-column:1/-1}.analytical-configuration-select select{width:100%;min-width:0}.analytical-configuration-actions{justify-content:flex-end}.analytical-config-form-grid{grid-template-columns:1fr}.report-formula-actions{width:100%;justify-content:flex-end}}

/* Rapoarte Cost marfă și reconciliere OSS */
.cost-report-document{gap:20px}.cost-report-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:2px 0 13px;border-bottom:2px solid var(--brand-navy)}.cost-report-header p{margin:0}.cost-report-company{color:var(--muted);font-size:10px}.cost-report-header h2{margin:8px 0 3px;color:var(--brand-navy);font-size:20px;letter-spacing:.015em}.cost-report-period{color:var(--text);font-size:11px;font-style:italic}.cost-report-section{display:grid;gap:9px}.cost-report-section h3{margin:0;color:var(--brand-navy);font-size:13px}.cost-report-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.cost-report-kpis article{display:grid;grid-template-columns:1fr auto;gap:3px 10px;min-height:74px;padding:12px 14px;background:var(--surface-soft);border:1px solid var(--border);border-radius:9px}.cost-report-kpis article>span{color:var(--muted);font-size:9px;font-weight:800;letter-spacing:.035em;text-transform:uppercase}.cost-report-kpis article>strong{grid-row:1/3;grid-column:2;align-self:center;color:var(--brand-navy);font-size:19px;font-variant-numeric:tabular-nums}.cost-report-kpis article>strong small{font-size:9px;font-weight:650}.cost-report-kpis article>em{align-self:end;color:var(--muted);font-size:9px;font-style:normal}.cost-report-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px}.cost-chart-legend{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:11px;color:var(--muted);font-size:9px}.cost-chart-legend span{display:inline-flex;align-items:center;gap:5px}.cost-chart-legend span:before{content:"";width:9px;height:9px;border-radius:2px;background:#1f4788}.cost-chart-legend .cost-legend-net:before{background:#2d8b8e}.cost-chart-legend .cost-legend-discount:before{background:#e49a35}.cost-chart-legend .cost-legend-gross:before{width:12px;height:0;background:none;border-top:2px dashed #52647a;border-radius:0}.cost-chart-wrap{padding:8px 12px 2px;background:var(--surface);border:1px solid var(--border);border-radius:9px}.cost-monthly-chart{display:block;width:100%;height:245px}.cost-chart-grid{stroke:rgba(82,100,122,.18);stroke-width:1;stroke-dasharray:3 4}.cost-chart-axis{stroke:rgba(82,100,122,.55);stroke-width:1}.cost-chart-cost{fill:#1f4788}.cost-chart-net{fill:#2d8b8e}.cost-chart-discount{fill:#e49a35}.cost-chart-gross-line{fill:none;stroke:#52647a;stroke-width:2;stroke-dasharray:5 4}.cost-chart-gross-point{fill:var(--surface);stroke:#52647a;stroke-width:2}.cost-chart-month{fill:var(--muted);font-size:10px;font-weight:700}.cost-gestiune-start:not(:first-child)>td{border-top:1px solid var(--border-strong)}.cost-channel-ranking-section{width:min(720px,100%)}.cost-ranking-wrap,.cost-ranking-table{min-width:620px}.cost-ranking-table{width:100%}.oss-detail-table{min-width:1480px}.oss-vat-status{white-space:nowrap;font-size:9px;font-weight:750}.oss-vat-mismatch>td{background:rgba(190,24,45,.075)!important}.oss-vat-mismatch .oss-vat-status{color:#a1152b}.oss-vat-missing>td{background:rgba(245,158,11,.065)!important}.oss-vat-missing .oss-vat-status{color:#79510a}.oss-vat-reconciliation-warning{color:#79510a;background:var(--warning-soft);border-color:#ebcb80}
@media(max-width:900px){.cost-report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.cost-report-section-title{align-items:flex-start;flex-direction:column}.cost-chart-legend{justify-content:flex-start}}
@media(max-width:620px){.cost-report-kpis{grid-template-columns:1fr}.cost-report-header{flex-direction:column}.cost-monthly-chart{height:210px}}
@media print{.cost-report-document{gap:8pt}.cost-report-header{margin-bottom:6pt;padding-bottom:6pt}.cost-report-kpis{gap:5pt;margin-bottom:5pt}.cost-report-kpis article{min-height:42pt;padding:6pt 7pt;break-inside:avoid;background:#f7f9fb!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.cost-report-kpis article>strong{font-size:12pt}.cost-monthly-chart-section{break-inside:avoid}.cost-chart-wrap{padding:3pt 5pt}.cost-monthly-chart{height:128pt}.cost-report-section{margin-top:7pt}.cost-report-section h3{font-size:9pt}.cost-channel-ranking-section{width:65%;break-inside:avoid}.cost-ranking-wrap{min-width:0}.cost-ranking-table{min-width:0}.oss-vat-mismatch>td{background:#fff1f2!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.oss-vat-missing>td{background:#fff8e7!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Orientare configurabilă și denumire unică în PDF-urile analitice */
.oss-report-filters{grid-template-columns:120px minmax(330px,1fr) minmax(190px,240px) 160px auto}.print-only{display:none!important}
@media(max-width:1050px){.oss-report-filters{grid-template-columns:120px 1fr}.oss-report-filter-action{justify-self:end}}
@media(max-width:700px){.oss-report-filters{grid-template-columns:1fr}.oss-report-filter-action{justify-self:stretch}}

/* Perioade multi-lună, rapoarte analitice și categorii de navigație */
.nav-label{display:flex;align-items:center;justify-content:space-between;width:100%;color:#64748b;background:transparent;border:0;border-bottom:1px solid rgba(31,71,136,.12);cursor:pointer;text-align:left}.nav-label>span:last-child{font-size:14px;line-height:1;transition:transform .16s ease}.nav-group-collapsed>.nav-label>span:last-child{transform:rotate(-90deg)}.nav-group-collapsed>.nav-item{display:none}.nav-label:hover{color:var(--brand-navy)}
[data-theme="dark"] .nav-label{color:#8290a5;background:transparent;border-bottom-color:rgba(255,255,255,.10)}[data-theme="dark"] .nav-label:hover{color:#fff}
.report-month-combobox{position:relative;min-width:190px}.report-month-combobox>summary{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;min-height:38px;padding:6px 10px;color:var(--text);background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);cursor:pointer;list-style:none}.report-month-combobox>summary::-webkit-details-marker{display:none}.report-month-combobox>summary span{color:var(--muted);font-size:9px;font-weight:750;letter-spacing:.05em;text-transform:uppercase}.report-month-combobox>summary strong{font-size:11px}.report-month-options{position:absolute;top:calc(100% + 5px);left:0;z-index:40;display:grid;grid-template-columns:repeat(3,minmax(70px,1fr));gap:5px;width:260px;padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:9px;box-shadow:var(--shadow-elevated)}.report-month-options label{position:relative;cursor:pointer}.report-month-options input{position:absolute;opacity:0;pointer-events:none}.report-month-options span{display:grid;place-items:center;min-height:31px;color:var(--muted);background:var(--surface-soft);border:1px solid var(--border);border-radius:6px;font-size:10px;font-weight:700}.report-month-options input:checked+span{color:var(--brand-navy);background:rgba(45,139,142,.12);border-color:var(--brand-teal)}.report-month-options input:focus-visible+span{outline:3px solid rgba(45,139,142,.28);outline-offset:1px}.analytical-cancel-filter{align-self:center;min-height:38px;white-space:nowrap}.oss-report-filters{grid-template-columns:120px 190px minmax(190px,240px) 160px minmax(190px,auto) auto}
.cost-report-kpis article{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr}.cost-report-kpis article>span{grid-row:1;grid-column:1;align-self:start}.cost-report-kpis article>em{grid-row:1;grid-column:2;align-self:start;text-align:right}.cost-report-kpis article>strong{grid-row:2;grid-column:1/3;align-self:end;justify-self:end;text-align:right}.cost-chart-wrap{width:80%;margin-inline:auto;overflow-x:auto}.cost-monthly-chart{width:100%;min-width:680px;height:285px}.cost-goods-table thead th{font-size:13px;line-height:1.12;white-space:normal}.cost-goods-table .cost-metric-heading span{display:inline-block;max-width:105px}.cost-goods-table .cost-month-heading{width:72px}.cost-goods-table .cost-dimension-heading{width:150px}
.oss-detail-table{min-width:1220px}.oss-detail-table thead th,.oss-summary-table thead th{font-size:11px;line-height:1.12;white-space:normal}.oss-detail-table .center,.oss-summary-table .center{text-align:center}.oss-detail-table th:nth-child(2){width:92px}.oss-detail-table th:nth-child(3){width:120px}.oss-detail-table th:nth-child(4){width:150px}.oss-detail-table th:nth-child(5),.oss-detail-table th:nth-child(6){width:72px}.oss-detail-table th:nth-child(7){width:88px}.oss-month-group th{padding:7px 9px;color:var(--brand-navy);background:rgba(45,139,142,.08);border-top:1px solid rgba(45,139,142,.25);text-align:left}.oss-month-group th span{font-weight:750}.oss-month-group th small{display:inline-grid;place-items:center;min-width:23px;height:20px;margin-left:8px;padding:0 6px;color:var(--brand-navy);background:rgba(45,139,142,.13);border-radius:999px;font-size:9px}
.product-sales-table{min-width:860px}.product-sales-table th:first-child{width:120px}.product-sales-table th:nth-child(2){width:310px}.product-sales-month th{color:var(--brand-navy);background:rgba(45,139,142,.08);font-weight:750}.product-sales-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1200px){.oss-report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.oss-report-filter-action{justify-self:end}}
@media(max-width:900px){.report-month-options{right:0;left:auto}.cost-chart-wrap{width:100%}.product-sales-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.oss-report-filters{grid-template-columns:1fr}.oss-report-filter-action{justify-self:stretch}.oss-report-filter-action .btn{width:100%}}
@media(max-width:620px){.report-month-combobox{width:100%}.report-month-options{right:auto;left:0;width:min(280px,calc(100vw - 54px))}.analytical-cancel-filter{white-space:normal}.product-sales-kpis{grid-template-columns:1fr}}
@media print{.report-month-combobox,.analytical-cancel-filter{display:none!important}.cost-chart-wrap{width:80%;overflow:visible}.cost-monthly-chart{min-width:0;height:155pt}.oss-month-group th,.product-sales-month th{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
@media print{.analytical-report-page .analytical-report-heading{display:none!important}.analytical-report-page .print-only{display:inline!important}}

/* Bară compactă și aliniată pentru filtrele rapoartelor */
.report-month-field{display:flex;min-width:0;flex-direction:column;gap:5px}.report-month-field>.field-label{color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.05em;text-transform:uppercase}.report-month-field .report-month-combobox{width:100%;min-width:0}.report-month-field .report-month-combobox>summary{grid-template-columns:minmax(0,1fr) auto;min-height:40px;padding:7px 12px}.report-month-field .report-month-combobox>summary strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.report-month-field .report-month-chevron{color:var(--muted);font-size:14px;line-height:1;transition:transform .16s ease}.report-month-field .report-month-combobox[open] .report-month-chevron{transform:rotate(180deg)}
.oss-report-filters{grid-template-columns:minmax(95px,.55fr) minmax(130px,.72fr) minmax(150px,1fr) 230px minmax(145px,.85fr) max-content;align-items:end;justify-content:stretch;width:100%;max-width:100%;min-width:0;gap:10px;margin:0;padding:14px 16px;background:var(--surface-soft);border:1px solid var(--border);border-radius:10px}.oss-report-filters>*{min-width:0}.oss-report-filters .form-field{min-width:0}.oss-report-filters .form-field>label,.oss-report-filters .field-label{min-height:12px}.oss-report-filters select,.oss-report-filters input:not([type="checkbox"]){width:100%;min-width:0;min-height:40px;background:var(--surface)}.filter-info-badge{display:inline-grid;place-items:center;width:15px;height:15px;margin-left:3px;color:var(--brand-navy);border:1px solid currentColor;border-radius:50%;font:italic 700 10px/1 Georgia,serif;text-transform:none}.analytical-cancel-field{min-width:0}.analytical-cancel-field .analytical-cancel-filter{align-items:center;min-height:40px;padding:7px 10px;background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);font-size:11px;font-weight:650}.analytical-cancel-field .analytical-cancel-filter input{flex:0 0 auto;margin:0;accent-color:var(--brand-navy)}.oss-report-filter-action{align-self:end}.oss-report-filter-action .btn{min-height:40px;padding-inline:14px;white-space:nowrap}
@media(max-width:1100px){.oss-report-filters{grid-template-columns:140px 220px minmax(220px,1fr)}.oss-orientation-field{grid-column:1}.analytical-cancel-field{grid-column:2}.oss-report-filter-action{grid-column:3;justify-self:end}}
@media(max-width:850px){.oss-report-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.oss-orientation-field,.analytical-cancel-field,.oss-report-filter-action{grid-column:auto}.oss-report-filter-action{justify-self:stretch}.oss-report-filter-action .btn{width:100%}}
@media(max-width:620px){.oss-report-filters{grid-template-columns:1fr;padding:12px}.oss-report-filter-action{grid-column:auto}}

.product-sales-configuration-row{display:flex;align-items:flex-end;justify-content:flex-end;width:100%;max-width:100%;min-width:0;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--border)}.product-sales-configuration-row>.analytical-configuration-bar{flex:1 1 auto;width:auto;padding-bottom:0;border-bottom:0}.product-sales-config-actions{display:flex;flex:0 0 auto;align-items:center;justify-content:flex-end;gap:8px}.product-sales-config-actions .analytical-cancel-filter{min-height:40px;padding:7px 10px;background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);font-size:11px;font-weight:650;white-space:nowrap}.product-sales-config-actions .analytical-cancel-filter input{flex:0 0 auto;margin:0;accent-color:var(--brand-navy)}.product-sales-config-actions .btn{min-height:40px;padding-inline:14px;white-space:nowrap}.product-sales-filter-bar{display:grid;grid-template-columns:minmax(85px,.65fr) minmax(115px,.9fr) minmax(135px,1.15fr) minmax(115px,.95fr) minmax(135px,1.05fr) minmax(120px,1fr);align-items:end;width:100%;max-width:100%;min-width:0;gap:10px;margin:0;padding:14px 16px;background:var(--surface-soft);border:1px solid var(--border);border-radius:10px}.product-sales-filter-bar>.product-sales-filter-fields{display:contents}.product-sales-filter-fields>div,.product-sales-filter-fields>.report-month-field{display:flex;min-width:0;flex-direction:column;gap:5px}.product-sales-filter-bar label,.product-sales-filter-bar .field-label{color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.05em;text-transform:uppercase}.product-sales-filter-bar select{width:100%;min-width:0;min-height:40px;background:var(--surface)}.product-sales-matrix-wrap{max-width:100%;overflow:auto}.product-sales-table.product-sales-matrix{min-width:1540px;table-layout:fixed}.product-sales-matrix th,.product-sales-matrix td{font-variant-numeric:tabular-nums}.product-sales-matrix thead th{font-size:10px;line-height:1.12}.product-sales-matrix [data-product-sticky]{position:sticky;left:var(--product-sticky-left,0);z-index:4;background:var(--surface);box-shadow:1px 0 var(--border)}.product-sales-matrix thead [data-product-sticky]{z-index:7;background:var(--surface-muted)}.product-sales-matrix tbody tr:hover>[data-product-sticky]{background:var(--surface-muted)}.product-sales-matrix .product-month-heading{width:68px}.product-sales-matrix .product-total-heading,.product-sales-matrix .product-row-total{width:94px;background:rgba(31,71,136,.045);font-weight:750}.product-sales-matrix .pivot-empty{color:var(--muted);font-weight:400}.product-sales-group-row>th,.product-sales-group-row>td{color:var(--brand-navy);background:var(--surface-muted);border-top:1px solid var(--border);border-left:0!important;border-right:0!important;font-weight:750}.product-sales-group-row>th:first-child{position:sticky;left:0;z-index:5;text-align:left}.product-sales-group-row>th:first-child .product-group-label{font-weight:400}.product-sales-group-row>th:first-child small{display:inline-grid;place-items:center;min-width:23px;height:19px;margin-left:7px;padding:0 6px;color:var(--brand-navy);background:rgba(45,139,142,.14);border-radius:999px;font-size:9px}.product-sales-matrix .total-row>th:first-child{position:sticky;left:0;z-index:5;background:#fff8e8;text-align:left}
@media(max-width:1320px){.product-sales-filter-bar{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.product-sales-configuration-row{align-items:stretch;flex-direction:column}.product-sales-configuration-row>.analytical-configuration-bar{width:100%}.product-sales-config-actions{width:100%}}
@media(max-width:820px){.product-sales-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))}.product-sales-config-actions .analytical-cancel-filter,.product-sales-config-actions .btn{flex:1 1 auto}}
@media(max-width:620px){.product-sales-filter-bar{grid-template-columns:1fr;padding:12px}.product-sales-config-actions{align-items:stretch;flex-direction:column}.product-sales-config-actions .analytical-cancel-filter,.product-sales-config-actions .btn{width:100%}}
@media print{.product-sales-table.product-sales-matrix{width:100%!important;min-width:0!important;table-layout:fixed;font-size:6.4pt}.product-sales-matrix [data-product-sticky],.product-sales-group-row>th:first-child,.product-sales-matrix .total-row>th:first-child{position:static;width:auto;min-width:0;max-width:none;box-shadow:none}.product-sales-matrix col{width:auto!important}.product-sales-matrix col[data-product-column="product"]{width:25%!important}.product-sales-matrix .product-month-heading{width:auto}.product-sales-matrix th,.product-sales-matrix td{padding:3px 2px}.product-sales-matrix [data-product-detail][hidden]{display:table-row!important}.product-sales-matrix.product-print-groups-only [data-product-detail]{display:none!important}.product-sales-matrix tbody{break-inside:auto}.product-sales-matrix tr{break-inside:avoid}.product-sales-group-row{break-after:avoid}}

/* Control comun pentru excluderea liniilor anulate */
.report-cancel-field{display:flex;width:max-content;max-width:100%;min-width:0;align-self:flex-end;justify-self:start;flex:0 0 auto;flex-direction:column;gap:5px}.report-cancel-field>.field-label{display:block;width:100%;min-height:12px;color:var(--muted);font-size:10px;font-weight:750;letter-spacing:.05em;line-height:1.2;text-transform:uppercase}.report-cancel-field .report-cancel-control{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;width:max-content;max-width:100%;min-height:40px;margin:0;padding:7px 12px;color:var(--text);background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);font-size:11px;font-weight:650;letter-spacing:0;line-height:1.2;text-transform:uppercase;white-space:nowrap}.report-cancel-field .report-cancel-control input{flex:0 0 auto;width:auto!important;margin:0;accent-color:var(--brand-navy)}.product-sales-config-actions .report-cancel-field{align-self:center}.oss-report-filters>.report-cancel-field{width:max-content;justify-self:start}@media(max-width:620px){.report-cancel-field,.oss-report-filters>.report-cancel-field{width:100%;align-self:stretch;justify-self:stretch}.report-cancel-field .report-cancel-control{width:100%}}

/* Textul și checkboxul controlului comun au aceeași axă verticală */
.report-cancel-field .report-cancel-control>input{align-self:center}.report-cancel-field .report-cancel-control>span{display:inline-flex;align-items:center;min-height:18px;line-height:18px}

/* Filtre și coloane redimensionabile în matricea Vânzări · Produse */
.product-sales-table-filters{grid-column:1/-1;min-width:0;padding-top:12px;border-top:1px solid var(--border)}.product-sales-table-filters>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}.product-sales-table-filters>header>div{display:flex;min-width:0;flex-direction:column;gap:2px}.product-sales-table-filters>header strong{color:var(--text-strong);font-size:11px;text-transform:uppercase}.product-sales-table-filters>header span{color:var(--muted);font-size:10px}.product-sales-table-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.product-sales-value-filter{position:relative;min-width:0}.product-sales-value-filter>summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px;min-height:38px;padding:6px 9px;color:var(--text);background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);cursor:pointer;list-style:none}.product-sales-value-filter>summary::-webkit-details-marker{display:none}.product-sales-value-filter>summary>span{overflow:hidden;color:var(--muted);font-size:9px;font-weight:750;letter-spacing:.04em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.product-sales-value-filter>summary>strong{overflow:hidden;color:var(--text-strong);font-size:10px;text-overflow:ellipsis;white-space:nowrap}.product-sales-value-options{position:absolute;top:calc(100% + 5px);left:0;z-index:70;width:max(100%,250px);max-width:min(390px,calc(100vw - 60px));padding:8px;background:var(--surface);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow-elevated)}.product-sales-value-options>input{width:100%;min-height:34px;margin-bottom:7px;padding:6px 8px}.product-sales-value-list{display:flex;max-height:260px;overflow:auto;flex-direction:column;gap:2px}.product-sales-value-list>label{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:center;gap:7px;min-height:30px;padding:4px 6px;color:var(--text);border-radius:5px;cursor:pointer;font-size:10px;text-transform:none}.product-sales-value-list>label:hover{background:var(--surface-muted)}.product-sales-value-list input{width:auto!important;margin:0;accent-color:var(--brand-navy)}.product-sales-value-list span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-sales-value-list small{padding:8px;color:var(--muted);font-size:10px}.product-sales-matrix[data-product-sales-table]{table-layout:fixed}.product-sales-matrix [data-product-sticky]{left:var(--product-sticky-left,0)!important;width:auto!important;min-width:0!important;max-width:none!important}.product-sales-matrix thead th[data-product-column]{overflow:visible}.product-sales-resize-handle{position:absolute;top:0;right:-4px;bottom:0;z-index:12;width:8px;cursor:col-resize;touch-action:none}.product-sales-resize-handle::after{content:"";position:absolute;top:20%;right:3px;bottom:20%;width:1px;background:var(--border-strong);opacity:.55}.product-sales-resize-handle:hover::after,.product-sales-resize-handle.is-resizing::after{width:2px;background:var(--brand-teal);opacity:1}.product-sales-resizing,.product-sales-resizing *{cursor:col-resize!important;user-select:none!important}
@media(max-width:1100px){.product-sales-table-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.product-sales-table-filter-grid{grid-template-columns:1fr}.product-sales-value-options{width:100%;max-width:100%}}
@media print{.product-sales-resize-handle{display:none!important}}

/* Geometrie comună pentru acțiunea de generare în toate rapoartele */
.report-generate-action{display:flex;align-self:flex-end;align-items:flex-end;justify-self:end}.report-generate-button{box-sizing:border-box;height:40px;min-height:40px;padding-block:0;align-self:flex-end;white-space:nowrap}.product-sales-config-actions{align-items:flex-end}
@media(max-width:700px){.report-generate-action{width:100%;justify-self:stretch}.report-generate-button{width:100%}}

/* Paginări locale aliniate cu grilele smartBIZ */
.product-matrix-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.product-group-controls{display:flex;align-items:center;gap:12px}
.product-group-controls label{display:flex;align-items:center;gap:6px;margin:0;font-size:12px}
.product-group-toggle{display:inline-grid;place-items:center;vertical-align:middle;width:28px;height:28px;padding:0;margin:0 4px 0 0;border:0;background:transparent;color:var(--brand-navy);font-size:21px;font-weight:400;line-height:1;cursor:pointer}
.product-group-toggle:hover,.product-group-toggle:focus-visible{font-weight:800}
.product-sales-group-row>th:first-child{white-space:normal}
.product-sales-group-row .product-group-label{font-weight:400}
.product-sales-matrix [data-product-detail][hidden]{display:none}
.unpaid-matrix-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.unpaid-group-title{display:flex;align-items:center;min-width:0;gap:4px}
.unpaid-group-title>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.unpaid-group-toggle{display:inline-grid;place-items:center;flex:0 0 28px;width:28px;height:28px;margin:0;padding:0;color:var(--brand-navy);background:transparent;border:0;cursor:pointer;line-height:0}
.unpaid-group-chevron{display:grid;place-items:center;width:100%;height:100%;font-size:0;line-height:0}
.unpaid-group-toggle>.unpaid-group-chevron>.collapse-chevron-svg{transform:rotate(-90deg)}
.unpaid-group-toggle[aria-expanded="true"]>.unpaid-group-chevron>.collapse-chevron-svg{transform:rotate(0deg)}
.unpaid-group-toggle.unpaid-groups-toggle-all>.unpaid-group-chevron>.collapse-chevron-svg{transform:rotate(0deg)}
.unpaid-group-toggle.unpaid-groups-toggle-all[aria-expanded="true"]>.unpaid-group-chevron>.collapse-chevron-svg{transform:rotate(180deg)}
.unpaid-invoices-table-wrap{max-width:100%;overflow:auto}
.unpaid-invoices-table[data-unpaid-invoices-table]{min-width:0;table-layout:fixed}
.unpaid-invoices-table thead th{position:relative;overflow:visible}
.unpaid-invoices-table tbody td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.unpaid-invoices-resize-handle{position:absolute;top:0;right:-5px;bottom:0;z-index:12;width:10px;cursor:col-resize;touch-action:none}
.unpaid-invoices-resize-handle::after{content:"";position:absolute;top:20%;right:4px;bottom:20%;width:1px;background:var(--border-strong);opacity:.55}
.unpaid-invoices-resize-handle:hover::after,.unpaid-invoices-resize-handle.is-resizing::after{width:2px;background:var(--brand-teal);opacity:1}
.unpaid-invoices-resizing,.unpaid-invoices-resizing *{cursor:col-resize!important;user-select:none!important}
.unpaid-invoices-table [data-unpaid-detail][hidden]{display:none}
@media print{.unpaid-invoices-table[data-unpaid-invoices-table]{width:100%!important;min-width:0!important;table-layout:auto!important}.unpaid-invoices-table col[data-unpaid-column]{width:auto!important}.unpaid-invoices-resize-handle{display:none!important}}
[data-tab-panel][hidden]{display:none!important}
.kpi.dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
.dashboard-async{display:grid;gap:18px}.dashboard-loading{display:flex;align-items:center;justify-content:center;gap:12px;min-height:150px;color:var(--muted)}.dashboard-loading>div{display:grid;gap:4px}.dashboard-loading strong{color:var(--text-strong)}.dashboard-loading small{display:block}.dashboard-loading>.import-spinner{width:22px;height:22px;color:var(--brand-teal)}.dashboard-loading-error{justify-content:flex-start;min-height:0}.dashboard-loading-error .btn{margin-left:auto;white-space:nowrap}
.dashboard-period-title{margin:20px 0 10px;font-size:14px}
.dashboard-period-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.dashboard-period-kpi{display:flex;flex-direction:column;gap:6px;min-width:0;padding:14px;background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius-md)}
.dashboard-period-kpi small{color:var(--muted);font-size:11px;min-height:2.8em}
.dashboard-kpi-warning{margin-top:12px}
.dashboard-ranking-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:18px 0}
.dashboard-ranking-kpi{display:flex;flex-direction:column;gap:6px;min-width:0;padding:14px;text-align:left;color:var(--text);background:var(--surface-soft);border:1px solid var(--border);border-radius:var(--radius-md);cursor:pointer}
.dashboard-ranking-kpi:hover{border-color:var(--brand-teal)}
.dashboard-ranking-kpi[aria-selected="true"]{background:var(--surface);border-color:var(--brand-teal);box-shadow:inset 0 3px var(--brand-teal)}
.dashboard-ranking-label{font-size:12px;font-weight:600}.dashboard-ranking-value{margin-top:auto;color:var(--text-strong);font-size:clamp(18px,1.8vw,26px);font-weight:700;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.dashboard-ranking-unit{font-size:11px;color:var(--muted)}
.dashboard-rankings-card{container-name:dashboard-rankings;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr)}
.dashboard-rankings-card>*{max-width:100%;min-width:0}
.dashboard-top-panels{min-width:0;border-top:1px solid var(--border);padding-top:18px}
.dashboard-top-panel{min-width:0}.dashboard-top-panel-head{display:flex;align-items:baseline;justify-content:space-between;min-width:0;gap:12px}.dashboard-top-panel-head h3{margin:0}
.dashboard-three-tops{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;min-width:0;gap:12px;margin-top:14px}
.dashboard-top-card{min-width:0;margin:0;padding:12px;background:var(--surface-soft);border:1px solid var(--border);border-radius:9px}.dashboard-top-card h3{margin:0 0 8px;color:var(--text-strong);font-size:12px}
.dashboard-top-card .table-wrap{width:max-content;max-width:100%;max-height:560px;overflow:auto;margin-top:12px}
.dashboard-top-card table{width:auto;min-width:0;table-layout:auto}
.dashboard-three-tops .dashboard-top-card .table-wrap{width:100%;margin-top:0;background:var(--surface)}.dashboard-three-tops .dashboard-top-card table{width:100%}.dashboard-three-tops .dashboard-top-card .empty-state{min-height:100px}.dashboard-three-tops td:nth-child(2){min-width:120px;max-width:280px;white-space:normal;overflow-wrap:anywhere}
.dashboard-top-card th{position:sticky;top:0;z-index:1;background:var(--surface-muted)}
.dashboard-top-card td:nth-child(2){min-width:180px;max-width:420px;white-space:normal;overflow-wrap:anywhere}.dashboard-top-card td.num,.dashboard-top-card th.num{white-space:nowrap}
.dashboard-top-card .dashboard-product-code,.dashboard-top-card .dashboard-product-meta{display:block;color:var(--muted);font-size:10px}.dashboard-top-card .dashboard-product-meta{margin-top:2px;white-space:normal}
.dashboard-top-filters{margin-top:14px}
.page-tab-list{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px;border-bottom:1px solid var(--border)}
.page-tab-list>[role="tab"]{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:10px 14px;background:transparent;color:var(--muted);border:0;border-bottom:3px solid transparent;cursor:pointer;font-weight:600}
.page-tab-list>[role="tab"][aria-selected="true"]{color:var(--text-strong);border-bottom-color:var(--brand-teal)}
.page-tab-list>[role="tab"]:hover{color:var(--text-strong)}
.page-tab-count{padding:1px 7px;border-radius:12px;color:var(--text-strong);background:var(--surface-muted);font-size:11px}
@media(max-width:1100px){.dashboard-ranking-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-period-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.kpi.dashboard-summary{grid-template-columns:1fr}.dashboard-ranking-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-ranking-kpi{padding:12px}.dashboard-top-card .table-wrap{max-height:none}}
@media(max-width:380px){.dashboard-ranking-tabs,.dashboard-period-kpis{grid-template-columns:1fr}}
@container dashboard-rankings (max-width:1080px){.dashboard-three-tops{grid-template-columns:1fr}.dashboard-top-panel-head{align-items:flex-start;flex-direction:column;gap:3px}}
.pager{--pager-control-height:36px;align-items:flex-start;line-height:1.2}.pager>span{display:inline-flex;align-items:center;height:var(--pager-control-height);white-space:nowrap}.pager>.btn.mic,.nom-page-jump .btn.mic,.nom-page-jump input[type="number"]{box-sizing:border-box;height:var(--pager-control-height);min-height:var(--pager-control-height);margin:0;padding-block:0}.nom-page-jump{align-items:center;min-height:var(--pager-control-height);line-height:1.2}

/* Comparația cu media lunilor anterioare din anul curent */
.product-sales-below-average>td{background:#fff3bf!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
[data-theme="dark"] .product-sales-below-average>td{background:#4a3b12!important}
.product-previous-average-heading{background:rgba(217,164,65,.14)!important}
.commission-zero-warning{display:flex;align-items:center;justify-content:space-between;gap:12px}
.commission-zero-dialog{width:min(1500px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:hidden}
.commission-zero-dialog[open]{display:flex;flex-direction:column}
.commission-zero-table-wrap{min-height:220px;max-height:calc(100dvh - 220px);overflow:auto}
.commission-zero-table-wrap table{min-width:1180px}
.commission-zero-table-wrap thead th{position:sticky;top:0;z-index:1;background:var(--surface-muted)}
.commission-zero-loading{display:flex;align-items:center;gap:9px;padding:10px;color:var(--muted)}
.commission-zero-loading[hidden]{display:none}
.commission-zero-pager{flex:0 0 auto;margin-top:10px}
.commission-zero-pager [data-commission-zero-total]{margin-left:auto}
@media print{
  .centralizator-annex-table th:nth-child(1){width:6%;min-width:0}.centralizator-annex-table th:nth-child(2){width:8%}.centralizator-annex-table th:nth-child(3){width:12%}.centralizator-annex-table th:nth-child(4){width:7%}.centralizator-annex-table th:nth-child(5){width:7%}.centralizator-annex-table th:nth-child(6){width:8%}.centralizator-annex-table th:nth-child(7){width:8%}.centralizator-annex-table th:nth-child(8){width:7%}.centralizator-annex-table th:nth-child(9),.centralizator-annex-table th:nth-child(10){width:5%}.centralizator-annex-table th:nth-child(11),.centralizator-annex-table th:nth-child(12){width:7%}.centralizator-annex-table th:nth-child(13){width:13%}
  .decont-annex-sheet th:nth-child(1){width:4%}.decont-annex-sheet th:nth-child(2){width:7%}.decont-annex-sheet th:nth-child(3){width:17%}.decont-annex-sheet th:nth-child(4){width:8%}.decont-annex-sheet th:nth-child(5){width:12%}.decont-annex-sheet th:nth-child(6){width:9%}.decont-annex-sheet th:nth-child(7),.decont-annex-sheet th:nth-child(8){width:6%}.decont-annex-sheet th:nth-child(9),.decont-annex-sheet th:nth-child(10){width:10%}.decont-annex-sheet th:nth-child(11){width:11%}
}

/* OSS: ierarhie stabilă și tabele compacte */
.oss-report-document .oss-compact-table-wrap{width:max-content;max-width:100%;overflow:auto}
.oss-report-document .oss-compact-table{width:auto;min-width:0;table-layout:auto}
.oss-report-document .oss-compact-table th,.oss-report-document .oss-compact-table td{white-space:nowrap}
.oss-report-document .oss-detail-table .oss-article-cell{min-width:150px;max-width:300px;white-space:normal;overflow-wrap:anywhere}
.oss-country-group th{padding:7px 9px;color:var(--brand-navy);background:rgba(31,71,136,.075);border-top:1px solid rgba(31,71,136,.22);text-align:left}
.oss-country-group th span{font-weight:650}
.oss-country-group th small{display:inline-grid;place-items:center;min-width:23px;height:20px;margin-left:8px;padding:0 6px;color:var(--brand-navy);background:rgba(31,71,136,.12);border-radius:999px;font-size:9px}
.oss-hierarchical-table{width:max-content!important;min-width:0!important;table-layout:auto}
.oss-hierarchical-table th,.oss-hierarchical-table td{padding-inline:8px;white-space:nowrap}
.oss-hierarchical-table .oss-article-cell{min-width:130px;max-width:260px;white-space:normal}
.oss-residence-group th,.oss-channel-group th{color:var(--brand-navy);text-align:left}
.oss-residence-group th{padding:6px 9px 6px 22px;background:rgba(31,71,136,.055);border-top:1px solid rgba(31,71,136,.18)}
.oss-channel-group th{padding:6px 9px 6px 38px;background:rgba(82,100,122,.045);border-top:1px dotted rgba(82,100,122,.24)}
.oss-residence-group th span,.oss-channel-group th span{font-weight:600}
.oss-residence-group th small,.oss-channel-group th small{display:inline-grid;place-items:center;min-width:23px;height:19px;margin-left:8px;padding:0 6px;color:var(--brand-navy);background:rgba(31,71,136,.1);border-radius:999px;font-size:9px}
@media print{
  .oss-report-document .oss-compact-table-wrap{width:max-content;max-width:100%;overflow:visible}
  .analytical-report-page .oss-report-document .oss-compact-table{width:auto!important;min-width:0!important;table-layout:auto}
}

/* Secțiuni colapsabile în Import SQL Server */
.sql-import-collapse-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0}
.sql-import-collapse-head h2,.sql-import-collapse-head h3{min-width:0;margin:0}
.sql-import-collapse-toggle{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;margin-left:auto;padding:0;color:var(--muted);background:transparent;border:1px solid transparent;border-radius:8px;cursor:pointer}
.sql-import-collapse-toggle:hover,.sql-import-collapse-toggle:focus-visible{color:var(--brand-navy);background:var(--surface-muted);border-color:var(--border);outline:0}
.sql-import-collapse-body{min-width:0;margin-top:16px}
.sql-import-collapse-body[hidden]{display:none!important}
.card.sql-import-section-collapsed{padding-block:14px}

/* Pictograme SVG centrate în controalele de restrângere și extindere */
.collapse-chevron-svg{
  display:block;
  width:10px;
  height:6px;
  overflow:visible;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  transform-origin:50% 50%;
  transition:transform .16s ease;
  pointer-events:none;
}
.nav-label>.nav-collapse-chevron,
.sidebar-toggle>.sidebar-collapse-chevron,
.product-group-toggle>.product-group-chevron,
.sql-import-collapse-toggle>.sql-import-collapse-chevron{
  display:grid;
  place-items:center;
  font-size:0;
  line-height:0;
}
.nav-label>.nav-collapse-chevron{flex:0 0 28px;width:28px;height:28px}
.nav-group-collapsed>.nav-label>.nav-collapse-chevron{transform:none}
.nav-group-collapsed>.nav-label>.nav-collapse-chevron>.collapse-chevron-svg{transform:rotate(-90deg)}
.sidebar-toggle>.sidebar-collapse-chevron{width:28px;height:28px;transform:none}
.sidebar-toggle>.sidebar-collapse-chevron>.collapse-chevron-svg{transform:rotate(90deg)}
.sidebar-collapsed .sidebar-toggle>.sidebar-collapse-chevron{transform:none}
.sidebar-collapsed .sidebar-toggle>.sidebar-collapse-chevron>.collapse-chevron-svg{transform:rotate(-90deg)}
.report-month-field .report-month-chevron{
  display:block;
  flex:0 0 24px;
  width:24px;
  height:24px;
  color:var(--muted);
  font-size:0;
  line-height:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2352647a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px 6px no-repeat;
}
[data-theme="dark"] .report-month-field .report-month-chevron{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.report-month-field .report-month-combobox[open] .report-month-chevron{transform:rotate(180deg)}
.product-sales-value-filter>summary>.product-filter-chevron{display:grid;place-items:center;width:24px;height:24px;color:var(--muted);font-size:0;font-style:normal;line-height:0;transform:none}
.product-sales-value-filter[open]>summary>.product-filter-chevron{transform:none}
.product-sales-value-filter[open]>summary>.product-filter-chevron>.collapse-chevron-svg{transform:rotate(180deg)}
.product-group-toggle{line-height:0}
.product-group-toggle>.product-group-chevron{width:100%;height:100%;color:currentColor}
.product-group-toggle>.product-group-chevron>.collapse-chevron-svg{transform:rotate(-90deg)}
.product-group-toggle[aria-expanded="true"]>.product-group-chevron>.collapse-chevron-svg{transform:rotate(0deg)}
.product-group-toggle.product-groups-toggle-all>.product-group-chevron>.collapse-chevron-svg{transform:rotate(0deg)}
.product-group-toggle.product-groups-toggle-all[aria-expanded="true"]>.product-group-chevron>.collapse-chevron-svg{transform:rotate(180deg)}
.sql-import-collapse-toggle>.sql-import-collapse-chevron{width:100%;height:100%;transform:none}
.sql-import-collapse-toggle[aria-expanded="true"]>.sql-import-collapse-chevron{transform:none}
.sql-import-collapse-toggle[aria-expanded="true"]>.sql-import-collapse-chevron>.collapse-chevron-svg{transform:rotate(180deg)}

/* Chevron nativ, centrat vertical în câmpurile de selecție */
select:not([multiple]):not([size]){
  appearance:none;
  -webkit-appearance:none;
  padding-right:34px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2352647a' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:10px 6px;
}
[data-theme="dark"] select:not([multiple]):not([size]){
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2394a3b8' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Dashboard · evoluție lunară */
.page-heading-actions{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.evolution-dashboard-card{container-name:evolution-dashboard;container-type:inline-size;display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;min-width:0;gap:18px;box-sizing:border-box}
.evolution-dashboard-card>*{max-width:100%;min-width:0}
.evolution-dashboard-card>.card-head{margin-bottom:0}
.evolution-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:end;width:100%;max-width:100%;min-width:0;gap:12px;padding:16px;box-sizing:border-box;background:var(--surface-soft);border:1px solid var(--border);border-radius:10px}
.evolution-filter-grid>*{min-width:0}.evolution-filter-grid .form-field>.field-label,.evolution-filter-grid .form-field>label{min-height:12px}.evolution-filter-grid select{width:100%;min-width:0;min-height:40px;background-color:var(--surface)}
.evolution-dashboard-card [hidden]{display:none!important}
.evolution-product-picker,.evolution-multi-picker{position:relative}.evolution-product-select,.evolution-multi-select{display:grid;grid-template-columns:minmax(0,1fr) 24px;align-items:center;width:100%;min-height:40px;padding:7px 8px 7px 12px;color:var(--text);background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);cursor:pointer;text-align:left}.evolution-product-select:hover,.evolution-multi-select:hover{border-color:var(--brand-teal)}.evolution-product-select:focus-visible,.evolution-multi-select:focus-visible{outline:3px solid rgba(45,139,142,.22);outline-offset:1px}.evolution-product-select-label,.evolution-multi-select-label{min-width:0;overflow:hidden;color:var(--muted);font-size:12px;text-overflow:ellipsis;white-space:nowrap}.evolution-product-select-label.has-value,.evolution-multi-select-label.has-value{color:var(--text);font-weight:600}.evolution-product-select-chevron{display:grid;place-items:center;width:24px;height:24px;color:var(--muted);line-height:0}.evolution-product-select[aria-expanded="true"] .evolution-product-select-chevron>.collapse-chevron-svg,.evolution-multi-select[aria-expanded="true"] .evolution-product-select-chevron>.collapse-chevron-svg{transform:rotate(180deg)}
.evolution-product-popover,.evolution-multi-popover{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:30;width:100%;min-width:0;max-width:100%;padding:6px;box-sizing:border-box;background:var(--surface);border:1px solid var(--border-strong);border-radius:9px;box-shadow:var(--shadow-elevated)}.evolution-product-search-box{display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:4px;margin-bottom:5px;padding:0 8px;color:var(--muted);background:var(--surface-soft);border:1px solid var(--border);border-radius:7px}.evolution-product-search-box>span{display:grid;place-items:center;font-size:17px}.evolution-product-search-box input{width:100%;min-width:0;min-height:38px;padding:6px 4px;background:transparent;border:0;outline:0}.evolution-product-results,.evolution-multi-options{max-height:310px;overflow:auto}
.evolution-multi-option{position:relative;display:block;cursor:pointer}.evolution-multi-option input{position:absolute;width:1px;height:1px;opacity:0}.evolution-multi-option span{display:block;padding:9px 10px;border-radius:6px;font-size:11px}.evolution-multi-option:hover span{background:var(--surface-muted)}.evolution-multi-option input:checked+span{color:var(--brand-navy);background:rgba(45,139,142,.12);font-weight:700}.evolution-multi-option input:checked+span::before{content:"✓";margin-right:7px;color:var(--brand-teal)}.evolution-multi-option input:focus-visible+span{outline:3px solid rgba(45,139,142,.22);outline-offset:-2px}.evolution-picker-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:5px;padding:6px 8px 2px;color:var(--muted);border-top:1px solid var(--border);font-size:9px}.evolution-picker-footer strong{color:var(--danger)}
.evolution-selected-products{display:flex;max-height:92px;overflow:auto;flex-wrap:wrap;gap:5px;margin-bottom:5px}.evolution-selected-product{display:inline-flex;align-items:center;min-width:0;max-width:100%;gap:5px;padding:4px 6px;color:var(--brand-navy);background:rgba(45,139,142,.12);border:1px solid rgba(45,139,142,.28);border-radius:999px;font-size:9px;font-weight:700}.evolution-selected-product span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.evolution-selected-product button{display:grid;place-items:center;flex:0 0 17px;width:17px;height:17px;padding:0;color:inherit;background:transparent;border:0;border-radius:50%;cursor:pointer}.evolution-selected-product button:hover{background:rgba(255,255,255,.65)}
.evolution-product-result{display:grid;width:100%;gap:3px;padding:9px 10px;color:var(--text);background:transparent;border:0;border-radius:6px;cursor:pointer;text-align:left}.evolution-product-result:hover,.evolution-product-result:focus{outline:0;background:var(--surface-muted)}.evolution-product-result.is-selected{color:var(--brand-navy);background:rgba(45,139,142,.12);box-shadow:inset 3px 0 0 var(--brand-teal)}
.evolution-product-result>span{display:flex;align-items:baseline;gap:8px;min-width:0}.evolution-product-result strong{flex:0 0 auto;color:var(--brand-navy);font-size:11px}.evolution-product-result span span{min-width:0;overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.evolution-product-result small{color:var(--muted);font-size:9px}
.evolution-product-result-empty{padding:12px;color:var(--muted);font-size:11px}.evolution-cancel-toggle{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;padding:7px 10px 7px 12px;color:var(--text);background:var(--surface);border:1px solid var(--border-strong);border-radius:var(--radius-sm);cursor:pointer;font-size:11px;font-weight:650;white-space:nowrap}.evolution-cancel-toggle:hover{border-color:var(--brand-teal)}.evolution-cancel-toggle input{position:absolute;width:1px;height:1px;opacity:0}.evolution-cancel-toggle i{position:relative;flex:0 0 34px;width:34px;height:20px;background:var(--surface-muted);border:1px solid var(--border-strong);border-radius:999px;transition:background .16s ease,border-color .16s ease}.evolution-cancel-toggle i::after{content:"";position:absolute;top:2px;left:2px;width:14px;height:14px;background:var(--surface);border:1px solid var(--border-strong);border-radius:50%;box-shadow:0 1px 2px rgba(15,23,42,.18);transition:transform .16s ease}.evolution-cancel-toggle input:checked+i{background:var(--brand-teal);border-color:var(--brand-teal)}.evolution-cancel-toggle input:checked+i::after{border-color:transparent;transform:translateX(14px)}.evolution-cancel-toggle input:focus-visible+i{outline:3px solid rgba(45,139,142,.24);outline-offset:2px}.evolution-filter-grid .report-generate-action{display:flex;align-items:flex-end;width:100%;min-width:0}.evolution-filter-grid .report-generate-button{display:inline-flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:40px;box-sizing:border-box;gap:8px;white-space:nowrap}.is-evolution-loading{cursor:wait}.is-evolution-loading [data-evolution-submit]{cursor:wait;opacity:.88}.is-evolution-loading [data-evolution-submit] .import-spinner{width:14px;height:14px}
.evolution-empty-state{display:grid;place-items:center;min-height:120px;border:1px dashed var(--border-strong);border-radius:9px;text-align:center}
.evolution-analysis-heading{display:flex;align-items:flex-end;justify-content:space-between;width:100%;max-width:100%;min-width:0;padding-top:4px;border-top:1px solid var(--border)}.evolution-analysis-heading>div{min-width:0}.evolution-analysis-heading h2,.evolution-analysis-heading p{margin:0}.evolution-analysis-heading p{overflow-wrap:anywhere}
.evolution-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;max-width:100%;min-width:0;gap:10px}.evolution-kpis>div{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:3px 8px;min-width:0;overflow:hidden;padding:13px 14px;background:var(--surface-soft);border:1px solid var(--border);border-radius:9px}.evolution-kpis span{min-width:0;overflow:hidden;color:var(--muted);font-size:9px;font-weight:750;letter-spacing:.035em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.evolution-kpis strong{grid-row:1/3;grid-column:2;align-self:center;min-width:0;color:var(--text-strong);font-size:clamp(17px,1.6vw,23px);font-variant-numeric:tabular-nums;white-space:nowrap}.evolution-kpis small{min-width:0;overflow:hidden;color:var(--muted);font-size:9px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}
.evolution-visual,.evolution-details{display:grid;grid-template-columns:minmax(0,1fr);width:100%;max-width:100%;min-width:0;gap:9px}.evolution-section-head{display:flex;align-items:baseline;justify-content:space-between;min-width:0;gap:12px}.evolution-section-head h3{margin:0;color:var(--text-strong);font-size:13px}.evolution-section-head span{color:var(--muted);font-size:10px}.evolution-series-legend{display:flex;min-width:0;flex-wrap:wrap;gap:6px 14px;padding:8px 10px;background:var(--surface-soft);border:1px solid var(--border);border-radius:8px}.evolution-series-legend>span{display:inline-flex;align-items:center;min-width:0;gap:6px;color:var(--text);font-size:10px}.evolution-series-legend i{flex:0 0 9px;width:9px;height:9px;background:var(--evolution-series-color);border-radius:50%}.evolution-series-filter{display:inline-flex;align-items:center;min-width:0;max-width:100%;gap:6px;padding:4px 7px;color:var(--text);background:transparent;border:1px solid transparent;border-radius:999px;cursor:pointer;font-size:10px;text-align:left;transition:background .15s ease,border-color .15s ease,opacity .15s ease}.evolution-series-filter>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.evolution-series-filter:hover{background:var(--surface-muted);border-color:var(--border-strong)}.evolution-series-filter.is-active{color:var(--text-strong);background:rgba(45,139,142,.13);border-color:var(--evolution-series-color);font-weight:750}.evolution-series-filter.is-muted{opacity:.42}.evolution-series-filter.is-muted:hover{opacity:.78}[data-evolution-chart-series].is-filtered-out{display:none!important}
.evolution-category-product-legend{max-height:132px;overflow:auto;align-content:flex-start}.evolution-visual-empty{min-height:110px}.evolution-zero-products-table{width:max-content;min-width:min(100%,760px)}.evolution-zero-products-table th:nth-child(3),.evolution-zero-products-table td:nth-child(3){max-width:560px;white-space:normal;overflow-wrap:anywhere}
.evolution-chart-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto;padding:8px 8px 0;box-sizing:border-box;background:linear-gradient(180deg,var(--surface-soft),var(--surface));border:1px solid var(--border);border-radius:10px}.evolution-chart{display:block;width:100%;min-width:720px;height:auto}.evolution-grid-line{stroke:var(--border);stroke-width:1;stroke-dasharray:3 4}.evolution-zero-line{stroke:var(--border-strong);stroke-width:1.4}.evolution-average-line{stroke:var(--brand-amber);stroke-width:2;stroke-dasharray:8 5;pointer-events:none}.evolution-average-label{fill:var(--brand-amber);stroke:var(--surface);stroke-width:4px;paint-order:stroke;stroke-linejoin:round;font:700 10px system-ui,sans-serif}.evolution-axis-value,.evolution-axis-month{fill:var(--muted);font:10px system-ui,sans-serif}.evolution-line{fill:none;stroke:var(--evolution-series-color,var(--brand-teal));stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.evolution-point{fill:var(--surface);stroke:var(--evolution-series-color,var(--brand-navy));stroke-width:3}.evolution-point:hover{fill:var(--evolution-series-color,var(--brand-teal));stroke-width:4}
.evolution-category-product-chart .evolution-line{stroke-width:1.65}
.evolution-table-wrap{width:100%;max-width:100%;min-width:0;overflow:auto;box-sizing:border-box;border-color:var(--border-strong)}.evolution-table{width:100%;min-width:680px;table-layout:auto}.evolution-table th,.evolution-table td{font-variant-numeric:tabular-nums;white-space:nowrap}.evolution-table th{background:var(--surface-muted)}.evolution-row-incomplete td,.evolution-comparison-table td.evolution-row-incomplete{background:var(--warning-soft)}.evolution-comparison-table th:not(:first-child){color:var(--evolution-series-color);border-top:3px solid var(--evolution-series-color)}.evolution-comparison-table td strong,.evolution-comparison-table td small{display:block}.evolution-comparison-table td small{margin-top:2px;color:var(--muted);font-size:9px}.evolution-positive{color:var(--success);font-weight:700}.evolution-negative{color:var(--danger);font-weight:700}
@container evolution-dashboard (max-width:1050px){.evolution-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.evolution-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container evolution-dashboard (max-width:760px){.evolution-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container evolution-dashboard (max-width:620px){.evolution-filter-grid{grid-template-columns:1fr;padding:12px}.evolution-product-popover,.evolution-multi-popover{right:auto;width:min(420px,calc(100vw - 72px));min-width:0}.evolution-filter-grid .report-generate-action,.evolution-filter-grid .report-generate-button{width:100%}.evolution-kpis{grid-template-columns:1fr}.evolution-analysis-heading,.evolution-section-head{align-items:flex-start;flex-direction:column;gap:3px}}
@media(max-width:1180px){.evolution-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.evolution-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.evolution-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.page-heading-actions{width:100%;justify-content:stretch}.page-heading-actions .btn{flex:1}.evolution-filter-grid{grid-template-columns:1fr;padding:12px}.evolution-product-popover,.evolution-multi-popover{right:auto;width:min(420px,calc(100vw - 72px));min-width:0}.evolution-filter-grid .report-generate-action,.evolution-filter-grid .report-generate-button{width:100%}.evolution-kpis{grid-template-columns:1fr}.evolution-analysis-heading,.evolution-section-head{align-items:flex-start;flex-direction:column;gap:3px}}
@media print{
  .analytical-report-page .evolution-dashboard-card>.card-head{display:none!important}
  .analytical-report-page .evolution-dashboard-card{display:grid;min-height:0!important;gap:8pt;break-after:auto!important;page-break-after:auto!important}
  .analytical-report-page .evolution-dashboard-card>*:last-child{margin-bottom:0!important}
  .analytical-report-page .evolution-analysis-heading{padding-top:0;border-top:0}
  .analytical-report-page .evolution-analysis-heading h2{font-size:14pt}
  .analytical-report-page .evolution-comparison-note{padding:6pt 8pt;font-size:8pt}
  .analytical-report-page .evolution-kpis{gap:5pt}
  .analytical-report-page .evolution-kpis>div{padding:7pt 8pt;break-inside:avoid;background:#f7f9fb!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .analytical-report-page .evolution-visual{gap:5pt}
  .analytical-report-page .evolution-series-legend{gap:3pt 8pt;padding:5pt 6pt;background:#f7f9fb!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .analytical-report-page .evolution-series-legend span{font-size:7pt}
  .analytical-report-page .evolution-category-product-legend{max-height:none;overflow:visible}
  .analytical-report-page .evolution-chart-wrap{min-width:0;overflow:visible;padding:3pt;background:#fff!important;break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .analytical-report-page .evolution-chart{width:100%;min-width:0;max-height:105mm}
  .analytical-report-page .evolution-table-wrap{overflow:visible}
  .analytical-report-page .evolution-table{width:100%;min-width:0;font-size:7.2pt}
  .analytical-report-page .evolution-table thead{display:table-header-group}
  .analytical-report-page .evolution-table tr{break-inside:avoid}
  .analytical-report-page .evolution-zero-products-table{width:100%;min-width:0}
  .analytical-report-page .evolution-zero-products-table th:nth-child(1){width:7%}
  .analytical-report-page .evolution-zero-products-table th:nth-child(2){width:22%}
  .analytical-report-page .evolution-zero-products-table th:nth-child(3){width:56%}
  .analytical-report-page .evolution-zero-products-table th:nth-child(4){width:15%}
  .analytical-report-page .evolution-pdf-content-chart .evolution-details{display:none!important}
  .analytical-report-page .evolution-pdf-content-table .evolution-visual,
  .analytical-report-page .evolution-pdf-content-table .evolution-kpis,
  .analytical-report-page .evolution-pdf-content-table .evolution-comparison-note{display:none!important}
}
