
:root{
  --bg:#050d19;
  --panel:#0b1a30cc;
  --panel-solid:#0b1a30;
  --line:#1b3b5e;
  --line-strong:#2a6698;
  --text:#f2f8ff;
  --muted:#8da7c4;
  --blue:#167fff;
  --cyan:#5ad8ff;
  --green:#2bd993;
  --yellow:#ffd05a;
  --orange:#ff9d35;
  --red:#ff6c7d;
  --shadow:0 30px 90px #0009;
  --nexus-theme-brightness:1;
  --nexus-theme-contrast:1;
  --nexus-theme-saturation:1;
  --nexus-day-overlay:0;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--text);background:var(--bg)}
body{
  background:
    linear-gradient(rgb(173 215 242 / var(--nexus-day-overlay)),rgb(139 190 229 / var(--nexus-day-overlay))),
    linear-gradient(90deg,#040b16f5,#071528e8),
    url("assets/mountain-bg.png") center/cover scroll no-repeat;
  overflow-x:hidden;
}
.sidebar,.main,.role-login-page,.outcome-modal,.callback-modal,.callback-reminder,.callback-toast,.ai-drawer,.ai-fab{
  filter:none;
}
html.nexus-theme-ready .sidebar,html.nexus-theme-ready .main,html.nexus-theme-ready .role-login-page,html.nexus-theme-ready .outcome-modal,html.nexus-theme-ready .callback-modal,html.nexus-theme-ready .callback-reminder,html.nexus-theme-ready .callback-toast,html.nexus-theme-ready .ai-drawer,html.nexus-theme-ready .ai-fab{
  transition:none;
}
body:before{
  content:"";
  position:fixed;inset:0;
  background:
    radial-gradient(circle at 78% 12%,#168cff25,transparent 28%),
    radial-gradient(circle at 28% 85%,#26c2ff14,transparent 32%);
  z-index:-2;
}
body:after{
  content:"";
  position:fixed;inset:0;
  background-image:
    linear-gradient(#5ad8ff08 1px,transparent 1px),
    linear-gradient(90deg,#5ad8ff08 1px,transparent 1px);
  background-size:44px 44px;
  mask-image:linear-gradient(to bottom,black,transparent 82%);
  z-index:-1;
}
button,input{font:inherit}
.ambient{
  position:fixed;
  width:420px;height:420px;
  right:6%;top:10%;
  background:radial-gradient(circle,#168cff16,transparent 68%);
  filter:none;
  border-radius:50%;
  pointer-events:none;
}
.sidebar{
  position:fixed;left:0;top:0;bottom:0;width:260px;
  background:#05101fea;
  border-right:1px solid #153655;
  backdrop-filter:none;
  display:flex;flex-direction:column;
  z-index:20;
}
.brand{height:104px;display:flex;align-items:center;padding:14px 20px;gap:8px}
.brand img{width:158px;height:72px;object-fit:contain}
.brand span{font-size:10px;letter-spacing:.3em;color:var(--cyan);font-weight:900}
.workspace{
  margin:0 15px 14px;padding:12px 14px;
  border:1px solid #21476d;border-radius:12px;
  background:linear-gradient(145deg,#0c2442,#08182d);
  display:flex;flex-direction:column
}
.workspace small{font-size:9px;letter-spacing:.16em;color:#6f8dac}
.workspace strong{font-size:13px;margin-top:4px}
nav{display:flex;flex-direction:column;gap:4px;padding:0 12px;overflow:auto}
nav button{
  min-height:46px;border:0;border-radius:11px;padding:0 13px;
  background:transparent;color:#8ea7c1;
  display:flex;align-items:center;gap:12px;
  font-weight:800;text-align:left;cursor:pointer;
  transition:.2s ease;
}
nav button b{font-size:16px;width:18px;text-align:center}
nav button:hover,nav button.active{
  color:white;
  background:linear-gradient(90deg,#116edc9c,#102a48);
  transform:translateX(2px);
}
nav button.problem-alert{color:#ffd09a;border:1px solid #ff9d357a;background:linear-gradient(90deg,#ff8a1f2b,#102a48);animation:problemNavPulse 1.35s ease-in-out infinite}
nav button.problem-alert b{color:var(--orange)}
.problem-count{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:999px;display:grid;place-items:center;background:var(--orange);color:#271000;font-size:11px;font-style:normal;font-weight:950;box-shadow:0 0 16px #ff9d35a8}
@keyframes problemNavPulse{0%,100%{box-shadow:0 0 0 0 #ff9d3500}50%{box-shadow:0 0 0 4px #ff9d352e}}
nav button.callback-alert{color:#ffd8dd;border:1px solid #ff526b8a;background:linear-gradient(90deg,#ff526b28,#102a48);animation:callbackNavAlert 1.2s ease-in-out infinite}
nav button.callback-alert b{color:#ff6c7d}
.callback-count{margin-left:auto;min-width:22px;height:22px;padding:0 6px;border-radius:999px;display:grid;place-items:center;background:#ff526b;color:#fff;font-size:11px;font-style:normal;font-weight:950;box-shadow:0 0 18px #ff526ba8}
@keyframes callbackNavAlert{0%,100%{box-shadow:0 0 0 0 #ff526b00}50%{box-shadow:0 0 0 4px #ff526b30}}
.profile{
  margin-top:auto;padding:16px;border-top:1px solid #173553;
  display:flex;gap:10px;align-items:center
}
.avatar{
  width:38px;height:38px;border-radius:12px;
  display:grid;place-items:center;
  background:linear-gradient(135deg,#0f71ff,#4ed6ff);
  font-weight:900;box-shadow:0 8px 24px #168cff45
}
.profile div:last-child{display:flex;flex-direction:column}
.profile strong{font-size:12px}.profile span{font-size:10px;color:var(--muted)}
.main{margin-left:260px;min-height:100vh}
.topbar{
  min-height:104px;display:flex;justify-content:space-between;align-items:center;
  padding:20px 30px;
  border-bottom:1px solid #17395d;
  background:#061326d9;
  backdrop-filter:none;
  position:sticky;top:0;z-index:15;
}
.breadcrumb{font-size:10px;color:#6f8dac;letter-spacing:.12em;margin:0 0 5px}
.topbar h1{margin:0;font-size:28px}
.top-controls{display:flex;align-items:center;gap:10px}
.geo{
  display:flex;align-items:center;gap:10px;
  border:1px solid #2b557e;
  background:linear-gradient(145deg,#0c2747,#081a31);
  border-radius:13px;padding:8px 10px;
}
.geo .flag{font-size:23px}
.geo div{display:flex;flex-direction:column}
.geo strong{font-size:10px}.geo small{font-size:9px;color:#7f9dbd;margin-top:2px}
.geo b{font-variant-numeric:tabular-nums;color:var(--cyan);font-size:18px;margin-left:8px}
.status-chip{
  display:flex;align-items:center;gap:8px;
  border:1px solid #245274;background:#0b213d;
  border-radius:11px;padding:10px 12px;font-size:10px;color:#a8bfd6
}
.status-chip i{
  width:8px;height:8px;border-radius:50%;
  background:var(--green);box-shadow:0 0 12px var(--green)
}
.icon-btn{
  width:40px;height:40px;border-radius:11px;
  border:1px solid #284d70;background:#0c223d;color:white;cursor:pointer
}
.content{padding:28px 30px 55px}
.page-enter{animation:pageIn .35s ease both}
@keyframes pageIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.hero{
  position:relative;overflow:hidden;
  border:1px solid #286ca4;border-radius:24px;
  min-height:220px;padding:30px 32px;
  background:
    linear-gradient(105deg,#0a2b54df,#09192fc7),
    url("assets/mountain-bg.png") center 44%/cover;
  box-shadow:var(--shadow);
}
.hero:after{
  content:"";position:absolute;inset:auto -80px -120px auto;
  width:320px;height:320px;border-radius:50%;
  background:#168cff22;filter:blur(18px)
}
.hero-copy{position:relative;z-index:2;max-width:720px}
.eyebrow{font-size:10px;letter-spacing:.2em;color:var(--cyan);font-weight:900}
.hero h2{font-size:38px;line-height:1.03;margin:10px 0 12px}
.hero p{color:#b7cbe0;font-size:15px;line-height:1.6;max-width:650px}
.hero-meta{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.hero-meta span{padding:7px 10px;border-radius:999px;border:1px solid #3b78a8;background:#07182fd6;font-size:10px;font-weight:800}
.metrics{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin:18px 0}
.metric{
  position:relative;overflow:hidden;
  background:linear-gradient(145deg,#0b213ddd,#08172de8);
  border:1px solid #1c3e62;border-radius:18px;padding:18px;
  min-height:132px;transition:.2s ease;
}
.metric:hover{transform:translateY(-3px);border-color:#3475a9}
.metric:after{content:"";position:absolute;width:80px;height:80px;border-radius:50%;right:-30px;bottom:-30px;background:#168cff16}
.metric .label{font-size:10px;color:#86a1bf;text-transform:uppercase;letter-spacing:.08em}
.metric .value{font-size:28px;font-weight:900;margin:10px 0}
.metric .delta{font-size:10px;color:var(--green)}
.metric .delta.warn{color:var(--yellow)}
.grid-main{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(330px,.85fr);gap:16px}
.panel{
  background:linear-gradient(145deg,#0b1f39e6,#07172be8);
  border:1px solid #1d3f62;border-radius:19px;padding:20px;
  box-shadow:0 22px 60px #0004;
}
.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.panel-head h3{margin:0;font-size:15px}.panel-head span{font-size:9px;color:#7190af}
.ai-insight{
  background:linear-gradient(135deg,#0c2b50,#0a1b32);
  border:1px solid #2f6ea0;border-radius:18px;padding:20px;
  position:relative;overflow:hidden;
}
.ai-insight:after{content:"✦";position:absolute;right:20px;top:16px;font-size:40px;color:#53d7ff22}
.ai-insight h3{font-size:18px;margin:8px 0}
.ai-insight p{color:#bdd0e4;line-height:1.55;font-size:12px}
.priority-list{display:grid;gap:10px;margin-top:14px}
.priority{
  display:grid;grid-template-columns:38px 1fr auto;gap:11px;align-items:center;
  border:1px solid #234769;background:#081a31;border-radius:13px;padding:12px
}
.priority b{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#102f52;color:var(--cyan)}
.priority strong{display:block;font-size:12px}.priority span{display:block;font-size:10px;color:#7f9dbb;margin-top:3px}
.priority em{font-style:normal;font-size:10px;color:var(--yellow)}
.problem-panel{border-color:#ff9d356b}.priority.problem-order{border-color:#ff9d356b;background:linear-gradient(90deg,#2b180bea,#081a31)}
.priority.problem-order b{background:#48260f;color:#ffbd72;box-shadow:0 0 16px #ff9d353c}.priority.problem-order em{color:#ffad55;font-weight:900}
.gauge-wrap{display:grid;place-items:center;padding:8px}
.gauge{
  width:190px;height:190px;border-radius:50%;
  background:conic-gradient(var(--green) 0 84%,#17344f 84%);
  display:grid;place-items:center;position:relative
}
.gauge:after{content:"";width:144px;height:144px;border-radius:50%;background:#08182d;position:absolute}
.gauge div{z-index:1;text-align:center}
.gauge strong{display:block;font-size:38px}.gauge span{font-size:10px;color:#7f9bb9}
.forecast{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}
.forecast div{background:#07182d;border:1px solid #1d3d60;border-radius:11px;padding:12px;text-align:center}
.forecast span{display:block;font-size:9px;color:#7d99b6}.forecast strong{display:block;font-size:16px;margin-top:4px}
.chart{height:230px;display:flex;align-items:flex-end;gap:10px;padding:16px 6px 4px}
.bar{flex:1;border-radius:8px 8px 3px 3px;background:linear-gradient(180deg,#4fd7ff,#167fff);box-shadow:0 0 16px #168cff22;position:relative;min-width:18px}
.bar span{position:absolute;left:50%;bottom:-22px;transform:translateX(-50%);font-size:8px;color:#6f8eac}
.module-page{min-height:520px;display:grid;place-items:center;text-align:center}
.module-page .panel{max-width:780px;padding:42px}
.module-page h2{font-size:34px;margin:12px 0}.module-page p{color:#91abc5;line-height:1.7}
.ai-drawer{
  position:fixed;right:18px;bottom:18px;width:min(390px,calc(100vw - 36px));height:590px;
  display:none;flex-direction:column;overflow:hidden;
  background:#07182bf2;border:1px solid #2f6fa2;border-radius:22px;box-shadow:var(--shadow);
  z-index:50;backdrop-filter:blur(18px)
}
.ai-drawer.open{display:flex}
.close-ai{position:absolute;right:12px;top:10px;border:0;background:transparent;color:white;font-size:24px}
.ai-head{display:flex;gap:11px;align-items:center;padding:18px;border-bottom:1px solid #1e3e60}
.ai-orb{width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#147cff,#55d7ff);font-weight:900}
.ai-head div:last-child{display:flex;flex-direction:column}.ai-head span{font-size:10px;color:#87a4c2}
.ai-body{flex:1;padding:15px;overflow:auto;display:flex;flex-direction:column;gap:10px}
.msg{max-width:88%;padding:11px 13px;border-radius:13px;font-size:12px;line-height:1.45}
.msg.bot{background:#0f2a4b;border:1px solid #23527b}.msg.user{background:linear-gradient(135deg,#0d6edf,#189cc9);align-self:flex-end}
.quick{display:flex;gap:6px;padding:0 12px 10px;overflow:auto}
.quick button{white-space:nowrap;border:1px solid #284e71;background:#0c2440;color:#cce2f8;border-radius:999px;padding:7px 10px;font-size:9px}
.ai-input{display:flex;gap:8px;padding:12px;border-top:1px solid #1e3d5e}
.ai-input input{flex:1;background:#061427;border:1px solid #254a6e;border-radius:10px;color:white;padding:11px}
.ai-input button{border:0;border-radius:10px;background:#168cff;color:white;padding:0 14px;font-weight:900}
.ai-fab{position:fixed;right:22px;bottom:22px;z-index:45;border:1px solid #67d9ff;background:linear-gradient(135deg,#0f71ff,#15a9d8);color:white;border-radius:999px;padding:13px 18px;font-weight:900;box-shadow:0 12px 35px #0a7ee966}
@media(max-width:1250px){.metrics{grid-template-columns:repeat(3,1fr)}.geo div{display:none}}
@media(max-width:980px){.grid-main{grid-template-columns:1fr}.status-chip{display:none}}
@media(max-width:760px){
  .sidebar{width:78px}.main{margin-left:78px}.brand{padding:10px;height:80px}.brand img{width:55px}.brand span,.workspace,nav span,.profile div:last-child{display:none}
  nav button{justify-content:center}.profile{justify-content:center}.topbar{padding:15px;flex-wrap:wrap}.top-controls{margin-top:10px}.geo{padding:7px 9px}.geo b{font-size:15px}.content{padding:15px}
  .metrics{grid-template-columns:repeat(2,1fr)}.hero h2{font-size:30px}.forecast{grid-template-columns:1fr}
}

.callcenter-page{animation:pageIn .35s ease both}
.callcenter-gate{min-height:calc(100vh - 190px);display:grid;place-items:center;padding:24px}
.callcenter-ready-card{width:min(620px,100%);position:relative;overflow:hidden;text-align:center;border:1px solid #27577d;border-radius:28px;padding:42px;background:linear-gradient(145deg,#0b213d,#07172c);box-shadow:0 28px 80px #0007}
.callcenter-ready-card:before{content:"";position:absolute;width:260px;height:260px;left:50%;top:-170px;transform:translateX(-50%);border-radius:50%;background:#2bd99324;filter:blur(18px)}
.callcenter-ready-card>*{position:relative;z-index:1}.callcenter-ready-icon{width:74px;height:74px;margin:18px auto 14px;border-radius:24px;display:grid;place-items:center;background:linear-gradient(135deg,#11845c,#2bd993);color:#fff;font-size:30px;box-shadow:0 16px 38px #20bd7b45}.callcenter-ready-card h2{font-size:31px;margin:8px 0}.callcenter-ready-card p{max-width:470px;margin:0 auto;color:#9fb6ce;line-height:1.6}.callcenter-ready-card small{display:block;margin-top:16px;color:#7895b4}
.lormag-pulse-start{position:relative;isolation:isolate;width:min(280px,100%);border:0;border-radius:15px;padding:16px 25px;background:linear-gradient(135deg,#0f865c,#2bd993);color:#fff;font-weight:950;font-size:16px;cursor:pointer;box-shadow:0 14px 36px #1cc17c52;animation:lormagStartPulse 1.35s ease-in-out infinite}.lormag-pulse-start:before{content:"";position:absolute;z-index:-1;inset:-1px;border-radius:inherit;border:2px solid #63e5aa;animation:lormagStartRing 1.35s ease-out infinite}.lormag-pulse-start i{display:inline-block;width:9px;height:9px;margin-right:9px;border-radius:50%;background:#caffdf;box-shadow:0 0 12px #caffdf}.lormag-pulse-start:hover{transform:translateY(-2px);filter:brightness(1.06)}
.lormag-pulse-start:disabled{cursor:wait;opacity:.78;animation:none}.lormag-pulse-start:disabled:before{animation:none;opacity:.25}.lormag-pulse-start:disabled i{animation:liveDot 1s ease-in-out infinite}
@keyframes lormagStartPulse{0%,100%{box-shadow:0 12px 34px #1cc17c45}50%{box-shadow:0 16px 46px #1cc17c8a}}
@keyframes lormagStartRing{0%{opacity:.8;transform:scale(1)}100%{opacity:0;transform:scale(1.12)}}
.call-topline{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;margin-bottom:14px}
.call-status{
  display:flex;align-items:center;gap:12px;
  background:linear-gradient(145deg,#0b213d,#08182d);
  border:1px solid #234f76;border-radius:15px;padding:12px 15px
}
.call-status i{width:11px;height:11px;border-radius:50%;background:var(--red);box-shadow:0 0 14px var(--red)}
.call-status.calling i{background:var(--green);box-shadow:0 0 14px var(--green)}
.call-status.aftercall i{background:var(--yellow);box-shadow:0 0 14px var(--yellow)}
.call-status div{display:flex;flex-direction:column}.call-status span{font-size:9px;color:#7f9bb8;letter-spacing:.08em}.call-status strong{font-size:18px;margin-top:2px;font-variant-numeric:tabular-nums}
.idle-mini,.goal-mini{
  border:1px solid #264c70;background:#091d35;border-radius:15px;padding:11px 14px;min-width:130px
}
.idle-mini span,.goal-mini span{display:block;font-size:9px;color:#7f9bb9}.idle-mini strong,.goal-mini strong{display:block;font-size:16px;margin-top:3px}
.goal-progress{height:6px;background:#061426;border-radius:6px;overflow:hidden;margin-top:7px}.goal-progress i{display:block;height:100%;width:50%;background:linear-gradient(90deg,#168cff,#56d9ff)}
.cockpit{display:grid;grid-template-columns:300px minmax(0,1fr) 330px;gap:16px}
.customer-panel,.main-call-panel,.sv-panel,.offers-panel,.history-panel,.bottom-stats{
  background:linear-gradient(145deg,#0b1f39e6,#07172be8);
  border:1px solid #1d3f62;border-radius:19px;padding:18px;box-shadow:0 22px 60px #0004
}
.customer-head{display:flex;justify-content:space-between;align-items:flex-start}
.customer-head h2{margin:4px 0 3px;font-size:24px}.customer-head .practice-id-title{font-size:32px;line-height:1;letter-spacing:-.03em;color:#f4f9ff}.customer-title-name{display:block;font-size:17px;line-height:1.18;margin:10px 0 4px}.customer-head span{font-size:10px;color:#7e9bb9}
.customer-badge{padding:5px 8px;border-radius:999px;background:#168cff20;color:#67baff;font-size:9px;font-weight:900}
.current-status-button{border:1px solid #168cff55;font-family:inherit;text-transform:uppercase;letter-spacing:.04em;cursor:default}.current-status-button.new-request-status{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border-color:#2bdc8a99;background:linear-gradient(135deg,#10995f,#20cb81);color:#f2fff9;box-shadow:0 0 0 3px #20cb8118,0 8px 22px #0bbb6b30}.current-status-button.new-request-status:before{content:"";width:7px;height:7px;border-radius:50%;background:#b8ffdb;box-shadow:0 0 10px #b8ffdb}
.customer-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
.customer-grid div{background:#07182c;border:1px solid #183b5c;border-radius:11px;padding:10px}
.customer-grid span{display:block;font-size:8px;color:#7996b4}.customer-grid strong{display:block;font-size:12px;margin-top:4px}
.customer-note{margin-top:12px;background:#0a203a;border-left:3px solid #4fd7ff;border-radius:0 11px 11px 0;padding:12px;font-size:11px;color:#b8c9dc;line-height:1.45}
.history-list{display:grid;gap:8px;margin-top:12px}.history-item{display:grid;grid-template-columns:28px 1fr auto;gap:9px;align-items:center;border:1px solid #1b3d5f;background:#07182c;border-radius:11px;padding:10px}.history-item b{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#113151}.history-item strong{display:block;font-size:11px}.history-item span{display:block;font-size:9px;color:#7895b4}.history-item em{font-style:normal;font-size:10px;color:#9ab2cb}
.main-call-panel{min-height:520px;display:flex;flex-direction:column}
.main-call-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.main-call-head h2{margin:4px 0 0}.phase-track{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}
.phase{padding:7px 9px;border-radius:999px;background:#07182c;border:1px solid #1d4266;color:#7390af;font-size:9px;font-weight:900;cursor:pointer}
.phase.active{background:#168cff26;border-color:#3793d0;color:#6ad8ff}.phase.done{background:#2bd99320;border-color:#2c8d6c;color:#63e5aa}
.script-card{background:linear-gradient(135deg,#0b294c,#091b33);border:1px solid #2b6595;border-radius:16px;padding:16px;margin-bottom:14px}
.script-card span{font-size:9px;color:#69d9ff;font-weight:900}.script-card h3{margin:7px 0 8px}.script-card p{margin:0;color:#bdcee0;font-size:12px;line-height:1.55}
.call-actions{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-top:auto}.call-actions button{border:0;border-radius:12px;padding:13px 10px;color:white;font-weight:900;cursor:pointer}.call-actions .approved{background:linear-gradient(135deg,#168b61,#2bd993)}.call-actions .callback{background:linear-gradient(135deg,#0e6ed5,#19a8dc)}.call-actions .rejected{background:linear-gradient(135deg,#8e3f4d,#d95e70)}.call-actions .noanswer{background:linear-gradient(135deg,#4d5f73,#6f8297)}.call-actions .spam{background:linear-gradient(135deg,#e9a900,#ffd65a);color:#2b2100;box-shadow:0 8px 20px rgba(233,169,0,.24)}
.call-control-row{display:flex;gap:9px;margin-bottom:14px}.call-control-row button{border:1px solid #2c5277;border-radius:11px;padding:11px 14px;color:white;font-weight:900;cursor:pointer;background:#102b4b}.call-control-row .start{background:linear-gradient(135deg,#147a56,#2bd993)}.call-control-row .end{background:linear-gradient(135deg,#95404d,#ff6c7d)}
.sv-panel{position:relative;overflow:hidden}.sv-panel:after{content:"SV";position:absolute;right:12px;top:5px;font-size:76px;font-weight:900;color:#53d7ff08}
.sv-head{display:flex;gap:10px;align-items:center}.sv-orb{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(135deg,#147cff,#55d7ff);font-weight:900;box-shadow:0 10px 30px #168cff33}.sv-head div{display:flex;flex-direction:column}.sv-head span{font-size:9px;color:#7d99b6}
.sv-card{background:#081b33;border:1px solid #224a70;border-radius:14px;padding:13px;margin:10px 0}.sv-card .label{font-size:8px;color:#7895b4;letter-spacing:.1em}.sv-card strong{display:block;font-size:13px;margin:5px 0}.sv-card p{font-size:11px;color:#b8cadc;line-height:1.5;margin:0}
.sv-checks{display:grid;gap:7px;margin-top:12px}.sv-check{display:flex;justify-content:space-between;gap:10px;background:#07182c;border-radius:9px;padding:9px}.sv-check span{font-size:9px;color:#829fbc}.sv-check b{font-size:9px;color:#5fe4a8}
.objection-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:12px}.objection-grid button{border:1px solid #284d70;background:#0a203a;color:#b9cde1;border-radius:9px;padding:9px;font-size:9px;cursor:pointer}.objection-grid button:hover{border-color:#54d7ff;color:white}
.offers-panel{grid-column:1/4}.offers-head{display:flex;justify-content:space-between;align-items:center}.offers-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:13px}
.offer-card{border:1px solid #21476d;background:linear-gradient(145deg,#0b223f,#08172d);border-radius:15px;padding:15px;cursor:pointer;transition:.2s ease;position:relative}.offer-card:hover,.offer-card.selected{transform:translateY(-3px);border-color:#5bd9ff;box-shadow:0 12px 30px #168cff20}.offer-card .tag{font-size:8px;color:#7f9bb9}.offer-card strong{display:block;font-size:25px;margin:8px 0}.offer-card span{font-size:10px;color:#9bb2ca}.offer-card em{position:absolute;right:12px;top:10px;font-style:normal;color:#ffd05a;font-size:11px}
.bottom-stats{grid-column:1/4;display:grid;grid-template-columns:repeat(6,1fr);gap:10px;padding:14px 18px}.bottom-stats div{text-align:center}.bottom-stats span{display:block;font-size:8px;color:#7a97b5}.bottom-stats strong{display:block;font-size:16px;margin-top:3px}
.objection-only-card{margin-top:18px;min-height:260px}.objection-only-card>p{min-height:72px;background:#06172b;border-radius:10px;padding:12px!important;margin:12px 0!important}
.leadvertex-panel{grid-column:1/4;background:linear-gradient(145deg,#0b1f39e6,#07172be8);border:1px solid #1d3f62;border-radius:19px;padding:18px;box-shadow:0 22px 60px #0004}.record-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:16px}.record-head h3{font-size:22px;margin:6px 0}.record-head p{font-size:10px;color:#7895b4;margin:0}.save-record{border:0;border-radius:10px;padding:11px 18px;background:linear-gradient(135deg,#0f72ff,#18b7ef);color:#fff;font-weight:900;cursor:pointer}.record-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(210px,.65fr) minmax(230px,.7fr);gap:14px}.record-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.record-fields label,.product-order-card label{display:flex;flex-direction:column;gap:5px;color:#7895b4;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.record-fields label.full{grid-column:1/3}.record-fields input,.record-fields select,.record-fields textarea,.product-order-card input,.product-order-card select{width:100%;background:#06172b;border:1px solid #21476d;border-radius:9px;padding:10px;color:#eef7ff;font-size:11px;text-transform:none;letter-spacing:normal}.record-fields textarea{min-height:78px;resize:vertical}.order-source-card,.product-order-card{background:#07182c;border:1px solid #1d4266;border-radius:14px;padding:14px}.order-source-card>div{padding:10px 0;border-bottom:1px solid #173653}.order-source-card>div:last-child{border:0}.order-source-card small{display:block;color:#7895b4;font-size:8px;text-transform:uppercase}.order-source-card strong{display:block;font-size:11px;margin-top:4px}.product-order-card{display:flex;flex-direction:column;gap:12px}.product-price-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.record-total{margin-top:auto;background:linear-gradient(135deg,#0b294c,#0b2038);border:1px solid #2b6595;border-radius:12px;padding:13px}.record-total span{display:block;font-size:8px;color:#7895b4;text-transform:uppercase}.record-total strong{display:block;font-size:23px;margin-top:4px;color:#63e5aa}.leadvertex-product-photo{height:170px;border:1px solid #244d73;border-radius:13px;background:radial-gradient(circle at 50% 35%,#153b60,#06172b 72%);display:grid;place-items:center;overflow:hidden}.leadvertex-product-photo img{width:100%;height:100%;object-fit:contain;padding:10px}.leadvertex-product-photo span{max-width:150px;text-align:center;color:#6f8dab;font-size:10px;line-height:1.4}.leadvertex-product-name{border:1px solid #1e4265;border-radius:11px;background:#091d35;padding:11px}.leadvertex-product-name small{display:block;color:#7895b4;font-size:8px;text-transform:uppercase}.leadvertex-product-name strong{display:block;margin-top:5px;font-size:15px;line-height:1.25}
.operator-product-picker,.operator-product-row,.operator-product-empty{border:1px solid #21476d;border-radius:12px;background:#081b32}.operator-product-picker{display:grid;gap:9px;padding:11px}.operator-product-picker>div{display:flex;gap:7px;flex-wrap:wrap}.operator-product-picker button,.remove-cross-sell,.record-total.editable>button{border:1px solid #3287bd;border-radius:9px;padding:9px 10px;background:#0d3153;color:#dff6ff;font-size:9px;font-weight:900;cursor:pointer}.operator-product-picker .cross-sell-add{border-color:#2ab681;background:#10382f;color:#8debc6}.operator-product-list{display:grid;gap:8px}.operator-product-row{display:grid;grid-template-columns:minmax(105px,1fr) 70px 96px;gap:8px;align-items:end;padding:10px}.operator-product-identity{align-self:center;min-width:0}.operator-product-identity span,.operator-product-identity strong,.operator-product-identity small{display:block}.operator-product-identity span{color:#58d7ff;font-size:7px;letter-spacing:.08em;font-weight:900}.operator-product-identity strong{margin-top:4px;font-size:11px;line-height:1.3;overflow-wrap:anywhere}.operator-product-identity small{margin-top:3px;color:#718eaa;font-size:8px}.operator-product-row label{min-width:0}.operator-product-row input{padding:8px}.operator-product-row input.field-error,.record-total.editable input.field-error{border:2px solid #ff4f68!important;background:#2b111d!important;box-shadow:0 0 0 3px #ff4f6818}.remove-cross-sell{grid-column:1/-1;justify-self:end;border-color:#804453;background:#311724;color:#ff9ead;padding:7px 9px}.operator-product-empty{display:grid;gap:4px;padding:16px;text-align:center}.operator-product-empty strong{font-size:11px}.operator-product-empty span{color:#7895b4;font-size:9px}.record-total.editable{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:end}.record-total.editable label{min-width:0}.record-total.editable input{padding:5px 0 0!important;border:0!important;background:transparent!important;color:#63e5aa!important;font-size:23px!important;font-weight:900}.record-total.editable>button{border-color:#2c6492;background:#0b2948;color:#9edbff}
.outcome-modal{position:fixed;inset:0;background:#020913e8;display:grid;place-items:center;padding:20px;z-index:80}.outcome-modal.hidden{display:none}.outcome-card{width:min(560px,100%);background:linear-gradient(145deg,#0b213d,#07172c);border:1px solid #3675aa;border-radius:26px;padding:30px;text-align:center;position:relative;box-shadow:var(--shadow);overflow:hidden}.outcome-card.success:before{content:"★ ✦ ★ ✧ ★";display:block;color:#ffd45f;letter-spacing:15px;font-size:25px;text-shadow:0 0 18px #ffd45f66;animation:floatStars 1.2s ease-in-out infinite alternate}.outcome-card.reject{border-color:#2b608d}.outcome-close{position:absolute;right:12px;top:9px;border:0;background:transparent;color:white;font-size:25px}.outcome-visual{font-size:62px;margin:10px 0}.outcome-card h2{font-size:31px;margin:8px 0}.outcome-card p{color:#b7c9dc;line-height:1.55}.outcome-advice{background:#081b33;border:1px solid #244b70;border-radius:14px;padding:14px;text-align:left;font-size:12px;line-height:1.55;color:#d5e5f5;margin:16px 0}.outcome-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.outcome-kpis div{background:#07182d;border:1px solid #1d3d60;border-radius:11px;padding:11px}.outcome-kpis span{display:block;font-size:8px;color:#7895b4}.outcome-kpis strong{display:block;font-size:16px;margin-top:4px}.next-btn{margin-top:18px;width:100%;border:0;border-radius:12px;padding:13px;background:linear-gradient(135deg,#0f72ff,#18b7ef);color:white;font-weight:900}
@keyframes floatStars{from{transform:translateY(0);opacity:.7}to{transform:translateY(-7px);opacity:1}}
.outcome-modal{isolation:isolate;overflow:hidden}.outcome-card{z-index:2}.nexus-sale-celebration-v59{position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none;background:radial-gradient(circle at 50% 40%,rgba(255,215,0,.17),transparent 36%),linear-gradient(180deg,rgba(92,63,0,.08),transparent 58%)}.nexus-sale-star-v59{position:absolute;left:var(--sale-star-x);top:-12vh;color:var(--sale-star-color);font-size:var(--sale-star-size);line-height:1;opacity:0;text-shadow:0 0 7px #fff1a0,0 0 15px currentColor,0 -14px 22px rgba(255,196,0,.72);filter:drop-shadow(0 0 5px rgba(255,215,0,.9));mix-blend-mode:screen;will-change:transform,opacity;animation:nexusSaleStarFallV59 var(--sale-star-duration) cubic-bezier(.14,.57,.27,.98) var(--sale-star-delay) forwards,nexusSaleGoldTwinkleV60 .48s ease-in-out var(--sale-star-delay) infinite alternate}.nexus-sale-star-v59:after{content:"";position:absolute;left:50%;bottom:72%;width:1px;height:32px;transform:translateX(-50%);border-radius:999px;background:linear-gradient(180deg,transparent,rgba(255,221,91,.58));filter:blur(.5px);opacity:.75}@keyframes nexusSaleStarFallV59{0%{transform:translate3d(0,-10vh,0) rotate(0) scale(.7);opacity:0}7%{opacity:1}55%{opacity:.98}88%{opacity:.82}100%{transform:translate3d(var(--sale-star-drift),114vh,0) rotate(var(--sale-star-spin)) scale(1.08);opacity:0}}@keyframes nexusSaleGoldTwinkleV60{from{filter:drop-shadow(0 0 3px rgba(255,196,0,.72));text-shadow:0 0 5px #fff1a0,0 0 11px currentColor,0 -12px 18px rgba(255,196,0,.55)}to{filter:drop-shadow(0 0 9px rgba(255,222,95,1));text-shadow:0 0 10px #fff7c8,0 0 21px currentColor,0 -18px 28px rgba(255,196,0,.86)}}@media(prefers-reduced-motion:reduce){.nexus-sale-star-v59{display:none}.nexus-sale-celebration-v59{background:radial-gradient(circle at 50% 42%,rgba(255,215,0,.18),transparent 40%)}}
.nexus-sale-canvas-v61{position:absolute;inset:0;display:block;width:100%;height:100%;mix-blend-mode:screen;filter:saturate(1.38) brightness(1.08) drop-shadow(0 0 5px rgba(255,205,0,.5))}
@media(max-width:1250px){.cockpit{grid-template-columns:260px 1fr}.sv-panel{grid-column:1/3}.leadvertex-panel,.bottom-stats{grid-column:1/3}.record-layout{grid-template-columns:1fr 1fr}.record-fields{grid-column:1/3}}
@media(max-width:900px){.cockpit{grid-template-columns:1fr}.sv-panel,.leadvertex-panel,.bottom-stats{grid-column:1}.call-actions{grid-template-columns:repeat(2,1fr)}.bottom-stats{grid-template-columns:repeat(3,1fr)}.record-layout{grid-template-columns:1fr}.record-fields{grid-column:1;grid-template-columns:1fr}.record-fields label.full{grid-column:1}}
@media(max-width:650px){.call-topline{grid-template-columns:1fr}.call-actions{grid-template-columns:1fr}.offers-grid{grid-template-columns:1fr}.outcome-kpis{grid-template-columns:repeat(2,1fr)}}

.portal-route .role-login-page{display:none!important}.portal-route .portal-app{display:block!important}
.role-login-page{min-height:100vh;display:grid;place-items:center;padding:30px;position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(105deg,#020915d9,#06152fc4 48%,#071b32b8),url("assets/mountain-bg.png") center/cover no-repeat;animation:mountainDrift 18s ease-in-out infinite alternate}
.role-login-page:before{content:"";position:absolute;inset:-30%;z-index:-1;background:radial-gradient(circle at 72% 32%,#168cff35,transparent 24%),radial-gradient(circle at 18% 78%,#58d9ff1c,transparent 22%);animation:auroraMove 9s ease-in-out infinite alternate}
.role-login-page:after{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(#5ad8ff0a 1px,transparent 1px),linear-gradient(90deg,#5ad8ff0a 1px,transparent 1px);background-size:52px 52px;mask-image:linear-gradient(to bottom,transparent 2%,black 46%,transparent 92%);animation:gridTravel 14s linear infinite}
.role-login-shell{width:min(1120px,100%);display:grid;grid-template-columns:1.2fr .8fr;gap:24px;position:relative}
.role-login-brand,.role-login-card{border:1px solid #2d689d;border-radius:28px;box-shadow:var(--shadow);backdrop-filter:blur(18px)}
.role-login-brand{padding:52px;background:linear-gradient(110deg,#082a50d9,#07182dbd);position:relative;overflow:hidden}.role-login-brand:after{content:"";position:absolute;width:260px;height:260px;border:1px solid #5ad8ff18;border-radius:50%;right:-80px;bottom:-110px;box-shadow:0 0 0 36px #5ad8ff08,0 0 0 72px #5ad8ff05;animation:radarSpin 12s linear infinite}.mountain-scan{position:absolute;left:0;right:0;top:-4px;height:2px;background:linear-gradient(90deg,transparent,#5ad8ff,transparent);box-shadow:0 0 18px #5ad8ff;animation:scanDown 5s ease-in-out infinite;opacity:.7}.role-login-brand img{width:220px;position:relative;z-index:1}.role-login-brand h1{font-size:44px;line-height:1.04;margin:18px 0 14px;position:relative;z-index:1}.role-login-brand p{color:#bed1e5;font-size:17px;line-height:1.55;position:relative;z-index:1}.access-live-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#2bd993;box-shadow:0 0 12px #2bd993;animation:liveDot 1.4s ease-in-out infinite}
.role-pill-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:24px}.role-pill-row span{border:1px solid #3b78a8;background:#07182fd8;border-radius:999px;padding:8px 11px;font-size:10px;font-weight:900}
.role-login-card{padding:38px;background:linear-gradient(145deg,#102845e8,#08182ee3);position:relative;overflow:hidden}.role-login-card:before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:linear-gradient(135deg,#5ad8ff90,transparent 35%,transparent 65%,#167fff70);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask-composite:exclude;pointer-events:none}.login-tech-line{display:flex;justify-content:space-between;align-items:center}.login-tech-line b{font-size:8px;letter-spacing:.14em;color:#63e5aa;border:1px solid #2b8b6a;background:#123a302e;border-radius:999px;padding:5px 8px}.role-login-card h2{font-size:28px;margin:8px 0 18px}
.role-login-card label{display:flex;flex-direction:column;gap:7px;margin:13px 0;color:#b9c9dc;font-size:12px}
.role-login-card input,.role-login-card select{background:#06162b;color:white;border:1px solid #29496f;border-radius:11px;padding:13px}
.role-login-btn{width:100%;margin-top:10px;border:0;border-radius:11px;padding:13px;background:linear-gradient(135deg,#0f72ff,#18b7ef);background-size:180% 100%;color:white;font-weight:900;cursor:pointer;box-shadow:0 12px 32px #168cff45;transition:.2s;animation:buttonFlow 4s ease infinite}.role-login-btn:hover{transform:translateY(-2px);box-shadow:0 16px 38px #168cff65}.role-login-btn.loading{pointer-events:none;opacity:.75}
.role-login-card small{display:block;text-align:center;color:#7893af;margin-top:14px}
.portal-app{min-height:100vh}.logout-role{margin:0 15px 14px;border:1px solid #294d70;background:#0b2542;color:white;border-radius:9px;padding:9px;cursor:pointer}
.role-lock{background:#0a1e37;border:1px solid #274d71;border-radius:16px;padding:20px;color:#b9cce0}
@media(max-width:800px){.role-login-shell{grid-template-columns:1fr}.role-login-brand{display:none}}
@keyframes mountainDrift{from{background-position:center center}to{background-position:54% 47%}}
@keyframes auroraMove{from{transform:translate3d(-2%,-1%,0) scale(1)}to{transform:translate3d(4%,3%,0) scale(1.08)}}
@keyframes gridTravel{to{background-position:0 52px,52px 0}}
@keyframes scanDown{0%,100%{top:0;opacity:0}15%{opacity:.75}70%{opacity:.45}85%{top:100%;opacity:0}}
@keyframes radarSpin{to{transform:rotate(360deg)}}
@keyframes liveDot{50%{opacity:.35;transform:scale(.75)}}
@keyframes buttonFlow{50%{background-position:100% 0}}

/* Smart Callback Reminder */
.callback-modal{position:fixed;inset:0;background:#020913e8;display:grid;place-items:center;padding:20px;z-index:90}.callback-modal.hidden,.callback-reminder.hidden{display:none}.callback-modal-card{width:min(680px,100%);background:linear-gradient(145deg,#0b213d,#07172c);border:1px solid #3675aa;border-radius:25px;padding:28px;position:relative;box-shadow:var(--shadow)}.callback-modal-card h2{font-size:28px;margin:8px 0}.callback-modal-card>p{color:#8fa9c5;line-height:1.5}.callback-form{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:20px}.callback-form label{display:flex;flex-direction:column;gap:7px;color:#abc0d6;font-size:10px;font-weight:800}.callback-form label.full{grid-column:1/3}.callback-form input,.callback-form select,.callback-form textarea{background:#06162b;color:white;border:1px solid #294d70;border-radius:11px;padding:12px;font:inherit}.callback-form textarea{min-height:82px;resize:vertical}.save-callback{width:100%;margin-top:16px;border:0;border-radius:12px;padding:14px;background:linear-gradient(135deg,#0e6ed5,#19a8dc);color:white;font-weight:900;cursor:pointer}
.callback-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:14px}.callback-metrics div{background:linear-gradient(145deg,#0b213d,#08182d);border:1px solid #234f76;border-radius:15px;padding:15px}.callback-metrics span{font-size:9px;color:#7f9bb8}.callback-metrics strong{display:block;font-size:25px;margin-top:4px}.danger-text{color:#ff6c7d}.notification-permission{border:1px solid #3286c2;background:#168cff22;color:#6ad8ff;border-radius:10px;padding:9px 12px;font-weight:800;cursor:pointer}.callback-filters{display:flex;gap:7px;flex-wrap:wrap;margin:15px 0}.callback-filters button{border:1px solid #284d70;background:#081a31;color:#809dbb;border-radius:999px;padding:7px 12px;font-size:9px}.callback-filters button.active{background:#168cff22;color:#63d7ff}.callback-list{display:grid;gap:10px}.callback-row{display:grid;grid-template-columns:90px minmax(220px,1fr) auto;gap:14px;align-items:center;background:#07182c;border:1px solid #1b3d5f;border-radius:14px;padding:13px}.callback-row.overdue{border-color:#c54f62;background:#2b1220}.callback-row.completed{opacity:.55}.callback-time strong{font-size:20px;display:block}.callback-time span{font-size:9px;color:#7d99b6}.callback-person{display:flex;gap:10px;align-items:flex-start}.callback-person strong,.callback-person span,.callback-person small{display:block}.callback-person span{font-size:10px;color:#96b0ca;margin:3px 0}.callback-person small{font-size:9px;color:#6f8eac}.priority-dot{width:9px;height:9px;border-radius:50%;background:#56d9ff;margin-top:5px;flex:none}.priority-dot.important{background:#ffd05a}.priority-dot.urgent{background:#ff6c7d;box-shadow:0 0 12px #ff6c7d}.callback-actions-row{display:flex;gap:6px}.callback-actions-row button,.reminder-actions button{border:1px solid #2c5277;border-radius:9px;padding:9px;color:white;background:#102b4b;font-size:9px;font-weight:900;cursor:pointer}.callback-actions-row .call-now,.reminder-actions .call-now{background:linear-gradient(135deg,#147a56,#2bd993);border:0}.completed-label{color:#63e5aa;font-size:10px}.callback-empty{text-align:center;color:#7895b4;padding:35px}
.callback-reminder{position:fixed;right:22px;top:22px;width:min(470px,calc(100vw - 44px));z-index:110;background:linear-gradient(145deg,#123157,#07172c);border:2px solid #56d9ff;border-radius:22px;padding:20px;box-shadow:0 25px 80px #000b,0 0 35px #168cff55;display:grid;grid-template-columns:58px 1fr;gap:15px;animation:reminderIn .4s ease}.reminder-pulse{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;background:#168cff;color:white;font-size:25px;animation:callbackPulse 1.2s infinite}.reminder-copy>span{font-size:9px;color:#ffd05a;font-weight:900}.reminder-copy h2{font-size:22px;margin:3px 0}.reminder-copy h3{font-size:17px;margin:8px 0 2px}.reminder-copy p{font-size:10px;color:#91abc5;margin:0 0 10px}.reminder-copy>strong,.reminder-copy>small{display:block}.reminder-copy>small{color:#8fa9c5;margin-top:5px}.reminder-actions{grid-column:1/3;display:flex;gap:8px}.reminder-actions button{flex:1;padding:11px}.callback-toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,30px);opacity:0;z-index:120;background:#0b213d;border:1px solid #3c78aa;border-radius:13px;padding:12px 18px;box-shadow:var(--shadow);transition:.25s;pointer-events:none}.callback-toast.show{opacity:1;transform:translate(-50%,0)}.callback-toast strong,.callback-toast span{display:block}.callback-toast span{font-size:10px;color:#91abc5;margin-top:3px}@keyframes callbackPulse{50%{transform:scale(1.08);box-shadow:0 0 28px #56d9ff}}@keyframes reminderIn{from{opacity:0;transform:translateY(-20px)}}
@media(max-width:760px){.callback-form{grid-template-columns:1fr}.callback-form label.full{grid-column:1}.callback-metrics{grid-template-columns:1fr 1fr}.callback-row{grid-template-columns:1fr}.callback-actions-row{flex-wrap:wrap}.reminder-actions{flex-direction:column}}

/* Gestione multi-operatore Nexus */
.password-change-modal{z-index:120}.password-change-card{width:min(520px,100%);border-color:#42c8ff}.password-logout{width:100%;margin-top:9px;border:1px solid #315778;border-radius:12px;padding:12px;background:#081a30;color:#a9bfd4;cursor:pointer}
.admin-orders-page{display:grid;gap:16px}.admin-order-search{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:24px;border:1px solid #286ca4;border-radius:20px;background:linear-gradient(135deg,#0b2849e8,#07172ce8)}.admin-order-search h2{font-size:30px;margin:7px 0}.admin-order-search p{margin:0;color:#91abc5;max-width:680px}.admin-order-search form{min-width:330px}.admin-order-search label{display:block;margin-bottom:7px;color:#9eb6cd;font-size:10px;font-weight:850}.admin-order-search form>div{display:flex;gap:8px}.admin-order-search input{min-width:0;flex:1;background:#06162b;color:white;border:1px solid #315d84;border-radius:11px;padding:12px}.admin-order-search button{border:1px solid #53d7ff;border-radius:11px;padding:12px 16px;background:linear-gradient(135deg,#0f71ff,#17a9d8);color:white;font-weight:900;cursor:pointer;white-space:nowrap}.admin-order-search button:disabled{opacity:.65;cursor:wait}.admin-order-empty,.admin-order-error{display:flex;min-height:170px;align-items:center;justify-content:center;flex-direction:column;gap:7px;text-align:center}.admin-order-empty strong,.admin-order-error strong{font-size:20px}.admin-order-empty span,.admin-order-error span{color:#86a2bf}.admin-order-error{border-color:#a84458;background:#2b1220cc}.admin-order-result{display:grid;gap:16px}.admin-order-result-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;border:1px solid #286ca4;border-radius:18px;background:#081d36}.admin-order-result-head h2{font-size:36px;margin:5px 0}.admin-order-result-head>div>strong{font-size:15px}.admin-order-status{border:1px solid #2bd99375;border-radius:999px;background:#2bd9931e;color:#5ee7ad;padding:9px 13px;font-size:11px;font-weight:950}.admin-order-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.admin-order-summary>div,.admin-order-detail-list>div{border:1px solid #234769;border-radius:13px;background:#081a31;padding:13px}.admin-order-summary span,.admin-order-detail-list span{display:block;color:#7896b4;font-size:8px;letter-spacing:.08em;text-transform:uppercase}.admin-order-summary strong,.admin-order-detail-list strong{display:block;margin-top:5px;font-size:11px;overflow-wrap:anywhere}.admin-order-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px}.admin-order-detail-list{display:grid;grid-template-columns:1fr 1fr;gap:9px}.admin-order-products{display:grid;gap:8px}.admin-order-product{display:flex;align-items:center;justify-content:space-between;gap:15px;border:1px solid #234769;border-radius:12px;background:#081a31;padding:12px}.admin-order-product strong,.admin-order-product span{display:block}.admin-order-product span{color:#7695b3;font-size:9px;margin-top:4px}.admin-order-product em{color:#5ee7ad;font-style:normal;font-size:11px;font-weight:900}.admin-order-history{display:grid;gap:8px}.admin-order-history-row{display:grid;grid-template-columns:10px 1fr;gap:10px;align-items:start;border-bottom:1px solid #173655;padding:10px 3px}.admin-order-history-row:last-child{border-bottom:0}.admin-order-history-row i{width:9px;height:9px;margin-top:4px;border-radius:50%;background:#46cfff;box-shadow:0 0 10px #46cfff}.admin-order-history-row strong,.admin-order-history-row span,.admin-order-history-row small{display:block}.admin-order-history-row span{color:#9ab2ca;font-size:10px;margin-top:3px}.admin-order-history-row small{color:#6f8fac;font-size:9px;margin-top:4px}.admin-order-history-warning{margin-bottom:10px;border:1px solid #ff9d3566;border-radius:10px;padding:10px;background:#ff9d3514;color:#ffd09a;font-size:10px}
.admin-order-search-copy{min-width:0;align-self:center}.admin-order-search-tools{display:grid;gap:10px;min-width:440px}.admin-order-search-tools form{width:100%}.operator-bonus-wallet{display:grid;grid-template-columns:1fr 1fr;gap:8px}.operator-bonus-wallet article{border:1px solid #2a6d94;border-radius:13px;padding:12px 14px;background:linear-gradient(145deg,#0d3150,#081d35);box-shadow:0 10px 24px #0002}.operator-bonus-wallet article:last-child{border-color:#8a6b2e;background:linear-gradient(145deg,#332915,#101d30)}.operator-bonus-wallet span,.operator-bonus-wallet strong,.operator-bonus-wallet small{display:block}.operator-bonus-wallet span{color:#74cef7;font-size:8px;letter-spacing:.08em;font-weight:900}.operator-bonus-wallet article:last-child span{color:#f2c963}.operator-bonus-wallet strong{margin-top:5px;color:#fff;font-size:21px}.operator-bonus-wallet small{margin-top:4px;color:#829fba;font-size:8px}
.operator-orders-head{align-items:flex-start}.operator-orders-head>.operator-bonus-wallet{width:min(520px,55%);flex:none}.operator-orders-head>.operator-bonus-wallet article{text-align:left}.operator-orders-head>.operator-bonus-wallet span{font-size:8px!important}.operator-orders-head>.operator-bonus-wallet strong{font-size:21px}.operator-orders-head>.operator-bonus-wallet small{font-size:8px;color:#829fba}
.operator-live-sync-notice{margin:0 18px 14px;padding:11px 13px;border:1px solid #f0b84a;border-radius:13px;background:#fff7dc;color:#251b08;display:flex;align-items:center;justify-content:space-between;gap:14px;box-shadow:0 8px 20px #6d470f1c}.operator-live-sync-notice.hidden{display:none}.operator-live-sync-notice strong,.operator-live-sync-notice span{display:block}.operator-live-sync-notice strong{font-size:12px}.operator-live-sync-notice span{margin-top:3px;color:#6c5528;font-size:10px}.operator-live-sync-notice button{border:0;border-radius:10px;padding:9px 12px;background:#0b63ce;color:#fff;font-weight:900;white-space:nowrap;cursor:pointer}
.admin-users-page{display:grid;gap:16px}.admin-users-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px;border:1px solid #286ca4;border-radius:20px;background:linear-gradient(135deg,#0b2849e8,#07172ce8)}.admin-users-head h2{font-size:30px;margin:7px 0}.admin-users-head p{margin:0;color:#90aac4}.admin-sync-btn{border:1px solid #53d7ff;border-radius:12px;padding:12px 16px;background:linear-gradient(135deg,#0f71ff,#17a9d8);color:white;font-weight:900;cursor:pointer;white-space:nowrap}.admin-users-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.admin-users-metrics>div{border:1px solid #244b70;border-radius:15px;background:#081a31;padding:16px}.admin-users-metrics span{display:block;color:#7f9dbb;font-size:9px;letter-spacing:.09em}.admin-users-metrics strong{display:block;font-size:27px;margin-top:7px}.admin-user-list{display:grid;gap:9px}.admin-user-row{display:grid;grid-template-columns:44px minmax(230px,1fr) minmax(190px,.65fr) auto;gap:13px;align-items:center;border:1px solid #234769;border-radius:14px;background:#081a31;padding:13px}.admin-user-row.disabled{opacity:.64}.admin-user-avatar{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,#0f71ff,#4ed6ff);font-weight:950}.admin-user-main strong,.admin-user-main span,.admin-user-main small,.admin-user-state small{display:block}.admin-user-main strong{font-size:13px}.admin-user-main span{font-size:11px;color:#a9c0d7;margin-top:3px}.admin-user-main small,.admin-user-state small{font-size:9px;color:#6f8fac;margin-top:3px}.user-state{display:inline-flex;border-radius:999px;padding:5px 8px;font-size:9px;font-weight:900}.user-state.active{background:#2bd99322;color:#55e8aa;border:1px solid #2bd99355}.user-state.inactive{background:#ff6c7d1c;color:#ff91a0;border:1px solid #ff6c7d55}.admin-user-actions{display:flex;gap:7px}.admin-user-actions button{border:1px solid #2d5a82;border-radius:10px;padding:9px 10px;background:#0c2948;color:#d9eaff;font-size:9px;font-weight:850;cursor:pointer}.admin-user-actions button.deactivate{border-color:#ff6c7d66;color:#ff9eaa}.admin-user-actions button.activate{border-color:#2bd99366;color:#61e5ad}
@media(max-width:980px){.admin-user-row{grid-template-columns:44px 1fr}.admin-user-state,.admin-user-actions{grid-column:2}.admin-users-head{align-items:flex-start;flex-direction:column}.admin-users-metrics{grid-template-columns:1fr}.admin-order-search{align-items:stretch;flex-direction:column}.admin-order-search-tools,.admin-order-search form{min-width:0}.admin-order-summary{grid-template-columns:1fr 1fr}.admin-order-columns{grid-template-columns:1fr}.operator-orders-head{flex-direction:column}.operator-orders-head>.operator-bonus-wallet{width:100%}}
@media(max-width:620px){.admin-order-search form>div,.operator-bonus-wallet{grid-template-columns:1fr;flex-direction:column}.admin-order-summary,.admin-order-detail-list{grid-template-columns:1fr}.admin-order-result-head{align-items:flex-start;flex-direction:column}.operator-product-row{grid-template-columns:1fr 1fr}.operator-product-identity{grid-column:1/3}}

/* Ordini live LeadVertex · CEO e Team Leader */
.live-orders-page{display:grid;gap:16px}.live-orders-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border:1px solid #286ca4;border-radius:20px;background:linear-gradient(135deg,#0b2849ed,#07172ced)}.live-orders-head h2{font-size:30px;margin:7px 0}.live-orders-head p{margin:0;color:#91abc5;max-width:760px;line-height:1.55}.live-head-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.live-connection{display:inline-flex;align-items:center;gap:7px;border:1px solid #2bd99355;border-radius:999px;background:#2bd99315;color:#65e7af;padding:9px 12px;font-size:9px;font-weight:950;white-space:nowrap}.live-connection i{width:7px;height:7px;border-radius:50%;background:#2bd993;box-shadow:0 0 12px #2bd993;animation:liveDot 1.4s ease-in-out infinite}.live-refresh{border:1px solid #53d7ff;border-radius:11px;padding:10px 13px;background:linear-gradient(135deg,#0f71ff,#17a9d8);color:white;font-size:10px;font-weight:900;cursor:pointer}.live-refresh:disabled{opacity:.55;cursor:wait}.live-orders-loading,.live-orders-error{min-height:190px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;text-align:center}.live-orders-loading strong,.live-orders-error strong{font-size:20px}.live-orders-loading span,.live-orders-error span{color:#86a2bf}.live-orders-error{border-color:#a84458;background:#2b1220cc}.live-orders-warning{border:1px solid #ff9d3566;border-radius:12px;padding:11px 14px;background:#ff9d3514;color:#ffd09a;font-size:10px}.live-orders-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.live-orders-metrics>div{border:1px solid #244b70;border-radius:15px;background:linear-gradient(145deg,#0b213d,#08182d);padding:16px}.live-orders-metrics span,.live-orders-metrics small{display:block;color:#7f9dbb;font-size:8px;letter-spacing:.08em}.live-orders-metrics strong{display:block;font-size:26px;margin-top:6px}.live-orders-metrics small{margin-top:4px;letter-spacing:0}.live-status-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:9px;margin-top:14px}.live-status-card{display:grid;grid-template-columns:9px 1fr auto;gap:8px;align-items:center;text-align:left;border:1px solid #244b70;border-radius:13px;background:#081a31;color:white;padding:13px;cursor:pointer;transition:.18s}.live-status-card:hover{transform:translateY(-2px);border-color:#48bde9}.live-status-card.active{border-color:#54d7ff;background:linear-gradient(145deg,#0c3156,#0a203a);box-shadow:0 8px 24px #168cff22}.live-status-card.empty{opacity:.6}.live-status-card strong{font-size:11px;overflow:hidden;text-overflow:ellipsis}.live-status-card b{font-size:19px;color:#eaf7ff}.live-status-card small{grid-column:2/4;color:#7190ae;font-size:8px;text-transform:uppercase}.status-dot{width:8px;height:8px;border-radius:50%;background:#4bcfff;box-shadow:0 0 9px #4bcfff}.status-dot.accepted,.status-dot.paid{background:#2bd993;box-shadow:0 0 9px #2bd993}.status-dot.canceled,.status-dot.spam{background:#ff6c7d;box-shadow:0 0 9px #ff6c7d}.status-dot.shipped{background:#9b8cff;box-shadow:0 0 9px #9b8cff}.status-dot.return{background:#ffaf45;box-shadow:0 0 9px #ffaf45}.live-order-table-head,.live-order-row{display:grid;grid-template-columns:80px minmax(180px,1.25fr) minmax(170px,1fr) minmax(140px,.8fr) minmax(170px,1fr) 100px;gap:12px;align-items:center}.live-order-table-head{padding:12px 14px;color:#6f8fac;font-size:8px;text-transform:uppercase;letter-spacing:.07em}.live-order-list{display:grid;gap:8px}.live-order-row{border:1px solid #234769;border-radius:14px;background:#081a31;padding:13px 14px}.live-order-row>div>span,.live-order-row>div>strong,.live-order-row>div>small{display:block}.live-order-row>div>span{display:none;color:#6f8fac;font-size:8px;text-transform:uppercase}.live-order-row>div>strong{font-size:10px;overflow-wrap:anywhere}.live-order-row>div>small{color:#7391ae;font-size:8px;margin-top:4px}.live-order-id strong{font-size:17px!important;color:#5bd9ff}.live-order-id span{display:block!important}.live-order-total strong{font-size:14px!important;color:#61e5ad}.live-orders-limit{display:block;margin-top:12px;color:#6f8fac;text-align:right}
@media(max-width:1200px){.live-order-table-head{display:none}.live-order-row{grid-template-columns:repeat(3,1fr)}.live-order-row>div>span{display:block;margin-bottom:4px}}
@media(max-width:820px){.live-orders-head{align-items:flex-start;flex-direction:column}.live-head-actions{justify-content:flex-start}.live-orders-metrics{grid-template-columns:1fr 1fr}.live-order-row{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.live-orders-metrics,.live-order-row{grid-template-columns:1fr}.live-status-grid{grid-template-columns:1fr 1fr}}

/* Richiami mancati · vista aggregata Team Leader / CEO */
.missed-callbacks-page{display:grid;gap:16px}.missed-callbacks-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border:1px solid #8c4860;border-radius:20px;background:linear-gradient(135deg,#301524ed,#101a2fed)}.missed-callbacks-head h2{font-size:30px;margin:7px 0}.missed-callbacks-head p{margin:0;color:#c4a7b3;max-width:760px;line-height:1.55}.missed-callbacks-empty{min-height:190px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;text-align:center}.missed-callbacks-empty strong{font-size:20px}.missed-callbacks-empty span{color:#86a2bf}.missed-callbacks-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:11px}.missed-callbacks-metrics>div{border:1px solid #4e334b;border-radius:15px;background:linear-gradient(145deg,#1c1830,#0c172a);padding:16px}.missed-callbacks-metrics span{display:block;color:#a388a0;font-size:8px;letter-spacing:.08em}.missed-callbacks-metrics strong{display:block;font-size:26px;margin-top:6px}.missed-callbacks-table-head,.missed-callback-row{display:grid;grid-template-columns:minmax(145px,.85fr) minmax(150px,.9fr) minmax(180px,1.1fr) minmax(145px,.8fr) minmax(200px,1.3fr);gap:12px;align-items:center}.missed-callbacks-table-head{padding:12px 14px;color:#8e7890;font-size:8px;text-transform:uppercase;letter-spacing:.07em}.missed-callbacks-rows{display:grid;gap:8px}.missed-callback-row{border:1px solid #56364d;border-radius:14px;background:linear-gradient(135deg,#18172c,#0a192d);padding:14px}.missed-callback-row.expired{border-color:#a8475a;background:linear-gradient(135deg,#321621,#0d192b)}.missed-callback-row>div>span,.missed-callback-row>div>strong,.missed-callback-row>div>small{display:block}.missed-callback-row>div>span{color:#957a90;font-size:8px;letter-spacing:.06em}.missed-callback-row>div>strong{font-size:11px;margin-top:4px;overflow-wrap:anywhere}.missed-callback-row>div>small{color:#7991aa;font-size:8px;margin-top:4px}.missed-callback-status{position:relative;padding-left:18px}.missed-callback-status i{position:absolute;left:0;top:3px;width:9px;height:9px;border-radius:50%;background:#ff566e;box-shadow:0 0 12px #ff566e;animation:callbackNavAlert 1.2s ease-in-out infinite}.missed-callback-status strong{color:#ff9aaa}.missed-callback-row.postponed .missed-callback-status i{background:#ffaf45;box-shadow:0 0 12px #ffaf45}.missed-callback-row.postponed .missed-callback-status strong{color:#ffd08d}.missed-callback-notes strong{font-weight:650;line-height:1.4}.danger-text{color:#ff7184!important}
@media(max-width:1150px){.missed-callbacks-table-head{display:none}.missed-callback-row{grid-template-columns:repeat(2,1fr)}.missed-callback-notes{grid-column:1/3}}
@media(max-width:760px){.missed-callbacks-head{align-items:flex-start;flex-direction:column}.missed-callbacks-metrics{grid-template-columns:1fr 1fr}.missed-callback-row{grid-template-columns:1fr}.missed-callback-notes{grid-column:1}}

/* Conferma approvazione ordinativo */
#operatorCustomerForm label.approval-field-error{color:#d31336!important}#operatorCustomerForm label.approval-field-error input,#operatorCustomerForm label.approval-field-error select{border:2px solid #e02543!important;background:#fff0f2!important;color:#111!important;box-shadow:0 0 0 4px #e025431c!important}.approval-confirm-modal{position:fixed;inset:0;z-index:140;display:grid;place-items:center;padding:20px;background:#020812b8;backdrop-filter:blur(10px)}.approval-confirm-modal.hidden{display:none}.approval-confirm-card{position:relative;width:min(610px,100%);border:1px solid #d9dde4;border-radius:24px;padding:30px;background:#fff;color:#111;box-shadow:0 30px 90px #0008}.approval-confirm-card .eyebrow{color:#0a8a5c}.approval-confirm-card h2{font-size:27px;margin:10px 0}.approval-confirm-card h2 strong{color:#087f58}.approval-confirm-card>p{color:#555;line-height:1.5}.approval-confirm-card .outcome-close{color:#333;background:#edf0f4}.approval-confirm-summary{display:grid;gap:9px;margin:21px 0}.approval-confirm-summary>div{border:1px solid #e1e4e9;border-radius:13px;padding:12px 14px;background:#f7f8fa}.approval-confirm-summary span{display:block;color:#747b84;font-size:8px;letter-spacing:.08em}.approval-confirm-summary strong{display:block;margin-top:5px;font-size:12px;overflow-wrap:anywhere}.approval-confirm-actions{display:flex;justify-content:flex-end;gap:9px}.approval-confirm-actions button{border:1px solid #d6dae0;border-radius:12px;padding:12px 17px;background:#f2f4f6;color:#222;font-weight:900;cursor:pointer}.approval-confirm-actions .approval-confirm-submit{border-color:#1dbb7c;background:linear-gradient(135deg,#0d8c5e,#26cf8d);color:#fff}

/* Problem operatore */
.operator-problem-list{display:grid;gap:13px;margin-top:16px}.operator-problem-card{border:1px solid #704055;border-radius:17px;padding:16px;background:linear-gradient(145deg,#251726,#0a1a30)}.operator-problem-card.submitted{border-color:#2a9b70;background:linear-gradient(145deg,#102c28,#091b30)}.operator-problem-head{display:grid;grid-template-columns:42px 1fr auto;gap:12px;align-items:center}.operator-problem-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;background:#ff6c7d22;color:#ff8290;font-size:20px;font-weight:950}.operator-problem-head>div span,.operator-problem-head>div strong,.operator-problem-head>div small{display:block}.operator-problem-head>div span{color:#c693a4;font-size:8px;letter-spacing:.08em}.operator-problem-head>div strong{font-size:14px;margin-top:3px}.operator-problem-head>div small{color:#819cb8;margin-top:3px}.operator-problem-head em{border:1px solid #ff6c7d66;border-radius:999px;padding:7px 10px;color:#ff91a0;font-size:8px;font-style:normal;font-weight:900}.operator-problem-card.submitted .operator-problem-head em{border-color:#36d99b66;color:#59e1ac}.operator-problem-current,.operator-resolution-sent{margin-top:13px;border:1px solid #523149;border-radius:12px;padding:12px;background:#0a192d}.operator-problem-current span,.operator-resolution-sent span,.operator-resolution-input span{display:block;color:#947d94;font-size:8px;letter-spacing:.07em}.operator-problem-current p{margin:6px 0 0;color:#d7c4cc;line-height:1.5}.operator-resolution-sent{border-color:#278a65;background:#103128}.operator-resolution-sent span{color:#5be0ac}.operator-resolution-sent strong{display:block;margin-top:6px;color:#e8fff5}.operator-resolution-sent small{display:block;color:#88bba7;margin-top:5px}.operator-resolution-input{display:block;margin-top:13px}.operator-resolution-input textarea{width:100%;min-height:92px;margin-top:7px;border:1px solid #365673;border-radius:12px;padding:12px;resize:vertical;background:#07172b;color:white;font:inherit}.operator-resolution-input textarea.field-error{border:2px solid #ff4f68;background:#2b111d;box-shadow:0 0 0 4px #ff4f681b}.submit-problem-resolution{margin-top:10px;border:1px solid #45d5a0;border-radius:12px;padding:11px 15px;background:linear-gradient(135deg,#11885f,#28c98e);color:white;font-weight:900;cursor:pointer}.submit-problem-resolution:disabled{opacity:.55;cursor:wait}

/* Problem Team Leader */
nav button.leader-problem-alert{border:1px solid #2bd9938a;background:linear-gradient(90deg,#2bd99326,#102a48);color:#bfffe4}nav button.leader-problem-alert b{color:#4fe3ad}.leader-problem-count{margin-left:auto;min-width:20px;height:20px;border-radius:999px;display:grid;place-items:center;background:#27c98e;color:#052419;font-size:9px;font-style:normal;font-weight:950;box-shadow:0 0 15px #2bd99388}.leader-problems-page{display:grid;gap:16px}.leader-problems-head{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:24px;border:1px solid #278b68;border-radius:20px;background:linear-gradient(135deg,#102f2b,#09182d)}.leader-problems-head h2{font-size:30px;margin:7px 0}.leader-problems-head p{margin:0;color:#90b8aa;line-height:1.5}.leader-problem-live,.leader-problem-success{display:inline-flex;align-items:center;gap:7px;border:1px solid #2bd99366;border-radius:999px;padding:9px 12px;background:#2bd99318;color:#68e7b5;font-size:9px;font-weight:900;white-space:nowrap}.leader-problem-live i{width:8px;height:8px;border-radius:50%;background:#2bd993;box-shadow:0 0 11px #2bd993;animation:liveDot 1.3s infinite}.leader-problem-refresh,.leader-send-to,.leader-problem-close{border:1px solid #3bcea0;border-radius:11px;padding:10px 13px;background:#113b32;color:#8ef0ca;font-weight:900;cursor:pointer}.leader-problems-empty{min-height:170px;display:grid;place-items:center;color:#8ca6bf}.leader-problem-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.leader-problem-metrics>div{border:1px solid #285d51;border-radius:14px;padding:15px;background:#0b2528}.leader-problem-metrics span{display:block;color:#71a99a;font-size:8px;letter-spacing:.08em}.leader-problem-metrics strong{display:block;margin-top:6px;color:#76e6bc;font-size:22px}.leader-problem-list{display:grid;gap:8px;margin-top:13px}.leader-problem-row{display:grid;grid-template-columns:150px 120px minmax(150px,.8fr) minmax(220px,1.3fr) auto;gap:12px;align-items:center;border:1px solid #28765d;border-radius:14px;padding:13px;background:linear-gradient(135deg,#102f2b,#091a2e)}.leader-problem-row.active{border-color:#64e6b5;box-shadow:0 0 0 2px #2bd99322}.leader-problem-row>div>span,.leader-problem-row>div>strong,.leader-problem-row>div>small{display:block}.leader-problem-row>div>span{color:#74a997;font-size:8px}.leader-problem-row>div>strong{margin-top:4px;font-size:11px;overflow-wrap:anywhere}.leader-problem-row>div>small{margin-top:4px;color:#7894ad;font-size:8px}.leader-problem-ready{display:flex!important;align-items:center;gap:7px}.leader-problem-ready i{width:9px;height:9px;border-radius:50%;background:#2bd993;box-shadow:0 0 10px #2bd993}.leader-problem-ready span{color:#65e5b3!important;font-weight:900}.leader-problem-row>button{border:1px solid #35ca99;border-radius:10px;padding:9px 11px;background:#123d34;color:#82ecc3;font-weight:900;cursor:pointer}.leader-problem-detail{border-color:#2c8e6c}.leader-problem-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.leader-problem-detail-grid>div{border:1px solid #285748;border-radius:13px;padding:13px;background:#0a2028}.leader-problem-detail-grid span{display:block;color:#73a494;font-size:8px;letter-spacing:.07em}.leader-problem-detail-grid strong{display:block;margin-top:6px;line-height:1.45}.leader-problem-detail-grid small{display:block;margin-top:5px;color:#80a698}.leader-problem-detail-grid .resolution-highlight{grid-column:1/3;border-color:#35c994;background:#10362d}.resolution-highlight strong{color:#caffea}.leader-problem-detail-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:13px}.leader-problem-close{border-color:#37546e;background:#0d2036;color:#a9bfd5}.leader-send-to{background:linear-gradient(135deg,#0f8b5e,#2bd993);color:#fff}.leader-problem-success{padding:7px 10px}.leader-problems-page .live-orders-warning{border-color:#32c99066;background:#32c99014;color:#9aebca}
@media(max-width:1100px){.leader-problem-row{grid-template-columns:1fr 1fr}.leader-problem-ready{grid-column:1/3}.leader-problem-row>button{justify-self:start}.leader-problem-detail-grid{grid-template-columns:1fr}.leader-problem-detail-grid .resolution-highlight{grid-column:1}}
@media(max-width:720px){.approval-confirm-actions,.leader-problem-detail-actions{flex-direction:column}.approval-confirm-actions button,.leader-problem-detail-actions button{width:100%}.leader-problems-head{align-items:flex-start;flex-direction:column}.leader-problem-metrics,.leader-problem-row{grid-template-columns:1fr}.leader-problem-ready{grid-column:1}.operator-problem-head{grid-template-columns:42px 1fr}.operator-problem-head em{grid-column:2;justify-self:start}}

/* Statistiche personali operatore */
.operator-stat-row.paid .operator-stat-bar i{background:linear-gradient(90deg,#139066,#37d9a0)}
.operator-statistics-page{display:grid;gap:16px}.operator-statistics-head{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid #276089;border-radius:22px;padding:25px;background:linear-gradient(135deg,#0d2743,#08182d);box-shadow:0 18px 50px #0003}.operator-statistics-head h2{font-size:30px;margin:7px 0}.operator-statistics-head p{margin:0;color:#8fa9c5}.operator-statistics-live{display:grid;justify-items:end;gap:7px}.operator-statistics-live>span{display:flex;align-items:center;gap:7px;border:1px solid #2bd99366;border-radius:999px;padding:8px 11px;background:#2bd99314;color:#63e5aa;font-size:9px;font-weight:900}.operator-statistics-live>span i{width:8px;height:8px;border-radius:50%;background:#2bd993;box-shadow:0 0 11px #2bd993;animation:liveDot 1.3s infinite}.operator-statistics-live small{color:#7895b4}.operator-statistics-live button{border:1px solid #2d6690;border-radius:10px;padding:8px 11px;background:#0a213b;color:#9dccf2;font-weight:900;cursor:pointer}.operator-stat-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.operator-stat-kpis article{border:1px solid #285479;border-radius:17px;padding:18px;background:linear-gradient(145deg,#0b223d,#08172c)}.operator-stat-kpis article.positive{border-color:#268d68;background:linear-gradient(145deg,#10302a,#081b2e)}.operator-stat-kpis span,.operator-stat-kpis strong,.operator-stat-kpis small{display:block}.operator-stat-kpis span{color:#7997b5;font-size:8px;letter-spacing:.09em;font-weight:900}.operator-stat-kpis strong{margin-top:8px;font-size:27px}.operator-stat-kpis article.positive strong{color:#5ee4b0}.operator-stat-kpis small{margin-top:6px;color:#718da9}.operator-stat-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);gap:12px}.operator-stat-rows{display:grid;gap:11px;margin-top:17px}.operator-stat-row{display:grid;grid-template-columns:minmax(170px,.85fr) minmax(160px,1.4fr) 44px;align-items:center;gap:12px}.operator-stat-row>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.operator-stat-row span{color:#b5c7da;font-size:10px}.operator-stat-row strong{font-size:16px}.operator-stat-row em{color:#7895b4;font-style:normal;text-align:right}.operator-stat-bar{height:9px;border-radius:999px;background:#07172a;overflow:hidden;border:1px solid #1c3a58}.operator-stat-bar i{display:block;height:100%;min-width:0;border-radius:inherit;background:linear-gradient(90deg,#0f78dc,#22c5f2)}.operator-stat-row.confirmed .operator-stat-bar i,.operator-stat-row.sent .operator-stat-bar i{background:linear-gradient(90deg,#139066,#37d9a0)}.operator-stat-row.payment .operator-stat-bar i{background:linear-gradient(90deg,#b87713,#f2bd49)}.operator-stat-row.return .operator-stat-bar i{background:linear-gradient(90deg,#7c58d3,#b795ff)}.operator-stat-row.problem .operator-stat-bar i{background:linear-gradient(90deg,#c23f55,#ff7a8b)}.operator-callback-stat{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:17px}.operator-callback-stat>div{border:1px solid #284b6c;border-radius:13px;padding:14px;background:#081a31}.operator-callback-stat span,.operator-callback-stat strong{display:block}.operator-callback-stat span{color:#7895b4;font-size:8px}.operator-callback-stat strong{font-size:25px;margin-top:7px}.operator-callback-stat .danger{border-color:#88384a;background:#2a1421}.operator-callback-stat .danger strong{color:#ff7587}.operator-stat-note{margin:0;text-align:right;color:#6f8ca8;font-size:9px}.operator-statistics-page .panel{min-width:0}
@media(max-width:1050px){.operator-stat-kpis{grid-template-columns:repeat(2,1fr)}.operator-stat-grid{grid-template-columns:1fr}}
@media(max-width:680px){.operator-statistics-head{align-items:flex-start;flex-direction:column}.operator-statistics-live{justify-items:start}.operator-stat-kpis{grid-template-columns:1fr}.operator-stat-row{grid-template-columns:1fr 48px}.operator-stat-row>div:first-child{grid-column:1/3}.operator-callback-stat{grid-template-columns:1fr}.operator-stat-note{text-align:left}}

/* Waiting for payment · solo operatore autenticato */
nav button.payment-alert{border:1px solid #ff465f8a;background:linear-gradient(90deg,#ff465f30,#102a48);color:#ffd7dd;animation:paymentNavPulse 1.05s ease-in-out infinite}nav button.payment-alert b{color:#ff7184}.payment-count{margin-left:auto;min-width:20px;height:20px;border-radius:999px;display:grid;place-items:center;background:#e52746;color:#fff;font-size:9px;font-style:normal;font-weight:950;box-shadow:0 0 16px #ff405f}.waiting-payment-page{display:grid;gap:16px}.waiting-payment-head{display:flex;align-items:center;justify-content:space-between;gap:22px;border:1px solid #9a6530;border-radius:21px;padding:24px;background:linear-gradient(135deg,#312313,#09192e)}.waiting-payment-head h2{font-size:30px;margin:7px 0}.waiting-payment-head p{margin:0;color:#b9a487}.waiting-payment-metrics{display:grid;grid-template-columns:1fr 1fr;gap:9px}.waiting-payment-metrics>div{min-width:115px;border:1px solid #74502e;border-radius:14px;padding:14px;background:#2b1d10}.waiting-payment-metrics span,.waiting-payment-metrics strong{display:block}.waiting-payment-metrics span{color:#b38a5e;font-size:8px}.waiting-payment-metrics strong{margin-top:5px;font-size:25px;color:#ffd08e}.waiting-payment-metrics .danger{border-color:#bd3b52;background:#35131d;animation:paymentNavPulse 1.05s infinite}.waiting-payment-metrics .danger strong{color:#ff6d82}.waiting-payment-list{display:grid;gap:9px;margin-top:14px}.waiting-payment-row{display:grid;grid-template-columns:130px 120px 150px minmax(180px,1fr) auto;gap:12px;align-items:center;border:1px solid #65492d;border-radius:14px;padding:14px;background:linear-gradient(135deg,#211b17,#091a2e)}.waiting-payment-row.overdue{border-color:#ad3e53;background:linear-gradient(135deg,#32151e,#09192d);box-shadow:0 0 0 1px #ff49631c;animation:paymentRowPulse 1.4s ease-in-out infinite}.waiting-payment-row>div>span,.waiting-payment-row>div>strong,.waiting-payment-row>div>small{display:block}.waiting-payment-row>div>span{color:#a38160;font-size:8px}.waiting-payment-row>div>strong{margin-top:4px;font-size:13px}.waiting-payment-row>div>small{margin-top:4px;color:#7891aa;font-size:8px}.waiting-payment-state{display:flex!important;align-items:center;gap:8px}.waiting-payment-state i{width:9px;height:9px;border-radius:50%;background:#f2ae46;box-shadow:0 0 12px #f2ae46}.waiting-payment-row.overdue .waiting-payment-state i{background:#ff4f68;box-shadow:0 0 14px #ff4f68}.waiting-payment-state span{color:#ffd08e!important;font-weight:950}.waiting-payment-row.overdue .waiting-payment-state span{color:#ff8797!important}.waiting-payment-row>button{border:1px solid #d99a44;border-radius:11px;padding:10px 12px;background:#3b2915;color:#ffd08e;font-weight:900;cursor:pointer}.waiting-payment-row.overdue>button{border-color:#ff6177;background:#451522;color:#ffdce1}@keyframes paymentNavPulse{0%,100%{box-shadow:0 0 0 0 #ff405f00}50%{box-shadow:0 0 0 4px #ff405f32,0 0 22px #ff405f40}}@keyframes paymentRowPulse{0%,100%{filter:brightness(1)}50%{filter:brightness(1.13)}}

/* Interazione ordini live CEO / Team Leader */
.live-order-row{cursor:pointer;transition:.18s}.live-order-row:hover,.live-order-row.active{border-color:#55cdef;transform:translateY(-1px);box-shadow:0 8px 22px #168cff20}.live-order-total button{margin-top:6px;border:0;background:transparent;color:#67d9ff;font-size:8px;font-weight:900;cursor:pointer}.live-manager-editor{border-color:#2e8ab4}.live-manager-close{border:1px solid #385d7d;border-radius:10px;padding:9px 12px;background:#0b2037;color:#a9c6df;font-weight:900;cursor:pointer}.live-manager-form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:11px;margin-top:16px}.live-manager-form-grid label{display:block}.live-manager-form-grid label.full{grid-column:1/4}.live-manager-form-grid span,.live-manager-products>span{display:block;color:#7796b3;font-size:8px;letter-spacing:.07em;font-weight:900}.live-manager-form-grid input,.live-manager-form-grid select,.live-manager-form-grid textarea{width:100%;margin-top:6px;border:1px solid #315676;border-radius:11px;padding:11px;background:#07182c;color:#eef8ff;font:inherit}.live-manager-form-grid textarea{min-height:95px;resize:vertical}.live-manager-products{margin-top:12px;border:1px solid #2c4c69;border-radius:12px;padding:12px;background:#07182c}.live-manager-products strong{display:block;margin-top:6px}.live-manager-actions{display:flex;justify-content:flex-end;align-items:center;gap:13px;margin-top:13px}.live-manager-actions small{color:#7895b1}.live-manager-actions button{border:1px solid #54d8ff;border-radius:11px;padding:11px 15px;background:linear-gradient(135deg,#0e75ed,#19afe0);color:#fff;font-weight:950;cursor:pointer}.live-manager-actions button:disabled{opacity:.55;cursor:wait}

/* Consigli Nexus SV basati sui dati live */
.outcome-live-source{display:block;margin-top:9px;color:#7899b9;font-size:9px}.outcome-kpis div[data-state="success"]{border-color:#2aaa79;background:#0d2a25}.outcome-kpis div[data-state="success"] strong{color:#62e5b1}.outcome-kpis div[data-state="warning"]{border-color:#aa7431;background:#2a2114}.outcome-kpis div[data-state="warning"] strong{color:#ffd06f}.outcome-kpis div[data-state="danger"]{border-color:#a53d51;background:#2c141d}.outcome-kpis div[data-state="danger"] strong{color:#ff7789}
@media(max-width:1050px){.waiting-payment-row{grid-template-columns:1fr 1fr}.waiting-payment-state{grid-column:1/3}.live-manager-form-grid{grid-template-columns:1fr 1fr}.live-manager-form-grid label.full{grid-column:1/3}}@media(max-width:680px){.waiting-payment-head{align-items:flex-start;flex-direction:column}.waiting-payment-metrics{width:100%}.waiting-payment-row{grid-template-columns:1fr}.waiting-payment-state{grid-column:1}.live-manager-form-grid{grid-template-columns:1fr}.live-manager-form-grid label.full{grid-column:1}.live-manager-actions{align-items:stretch;flex-direction:column}.live-manager-actions button{width:100%}}

/* Tema adattivo Lormag limitato alla scheda cliente aperta dall'operatore */
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .content{
  background:#fff;
}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .callcenter-page{
  color:#1d1d1f;
}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .callcenter-page :is(
  .call-status,.idle-mini,.goal-mini,
  .customer-panel,.main-call-panel,.sv-panel,.offers-panel,.leadvertex-panel,.bottom-stats,
  .customer-grid>div,.customer-note,.history-item,.phase,.script-card,.sv-card,.sv-check,
  .objection-grid button,.offer-card,.objection-only-card>p,.order-source-card,.product-order-card,
  .record-total,.leadvertex-product-photo,.leadvertex-product-name,
  .operator-product-picker,.operator-product-row,.operator-product-empty,
  .goal-progress
){
  color:#1d1d1f;
  background-color:#fff!important;
  background-image:none!important;
  border-color:#d2d2d7!important;
  box-shadow:0 8px 28px rgb(0 0 0 / .06);
}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .callcenter-page :is(
  .record-fields input,.record-fields select,.record-fields textarea,
  .product-order-card input,.product-order-card select
){
  color:#1d1d1f!important;
  background-color:#f5f5f7!important;
  background-image:none!important;
  border-color:#d2d2d7!important;
}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .callcenter-page :is(
  .call-status span,.idle-mini span,.goal-mini span,
  .customer-head span,.customer-grid span,.history-item span,.history-item em,
  .sv-head span,.sv-card .label,.sv-card p,.sv-check span,
  .offer-card .tag,.offer-card span,.bottom-stats span,.record-head p,
  .record-fields label,.product-order-card label,.order-source-card small,.record-total span,
  .leadvertex-product-photo span,.leadvertex-product-name small
){
  color:#6e6e73!important;
}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .callcenter-page :is(
  .phase,.objection-grid button
){
  color:#424245;
}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .callcenter-page :is(
  .call-actions button,.call-control-row button,.save-record
){
  color:#fff;
}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .callcenter-page :is(
  .operator-product-picker button,.remove-cross-sell,.record-total.editable>button
){color:#fff!important}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .callcenter-page :is(
  .operator-product-identity span,.operator-product-identity small,.operator-product-empty span
){color:#6e6e73!important}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .callcenter-page .record-total.editable input{
  color:#087f58!important;
}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .callcenter-page :is(
  .history-item b,.sv-orb
){
  color:#fff!important;
}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .callcenter-page .practice-id-title{
  color:#000!important;
}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .callcenter-page .phase.active{
  background-color:#edf7ff!important;
  border-color:#2997ff!important;
  color:#0066cc!important;
}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .callcenter-page .phase.done{
  background-color:#effbf5!important;
  border-color:#75cfa8!important;
  color:#147a56!important;
}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .callcenter-page .goal-progress{
  background-color:#e5e5ea!important;
  box-shadow:none;
}
html.nexus-theme-ready body.operator-client-theme .content,
html.nexus-theme-ready body.operator-client-theme .callcenter-page :is(
  .call-status,.idle-mini,.goal-mini,
  .customer-panel,.main-call-panel,.sv-panel,.offers-panel,.leadvertex-panel,.bottom-stats,
  .customer-grid>div,.customer-note,.history-item,.phase,.script-card,.sv-card,.sv-check,
  .objection-grid button,.offer-card,.objection-only-card>p,.order-source-card,.product-order-card,
  .record-total,.leadvertex-product-photo,.leadvertex-product-name,
  .operator-product-picker,.operator-product-row,.operator-product-empty
){
  transition:background-color 60s linear,border-color 60s linear,box-shadow 60s linear;
}

/* Nexus AI · conoscenza aziendale approvata ed escalation responsabili */
.ai-body .msg{display:grid;gap:7px}.ai-body .msg span{white-space:pre-line}.ai-body .msg small{display:block;color:#7fa3c4;font-size:8px;line-height:1.4}.ai-body .msg.user{display:block}.ai-body .msg.pending{border-color:#a8732c;background:#2b2114}.ai-body .msg.pending small{color:#f0b85e}.ai-body .msg.welcome{border-color:#287059;background:#0d2b29}.ai-body .msg.welcome small{color:#65d9ad}.ai-body .msg.thinking{color:#9cc5e6;animation:aiThinking 1.1s ease-in-out infinite}.ai-body .msg.error{border-color:#9c3d51;background:#30141d;color:#ffd6dd}.nexus-ai-read-message{justify-self:start;border:1px solid #50dbb0;border-radius:10px;padding:8px 11px;background:linear-gradient(135deg,#147856,#1ebd91);color:#fff;font-size:10px;font-weight:900;cursor:pointer;box-shadow:0 7px 18px rgba(30,189,145,.2)}.nexus-ai-read-message:hover{filter:brightness(1.08)}.ai-input button:disabled,.ai-input input:disabled{opacity:.55;cursor:wait}.ai-fab{display:flex;align-items:center;gap:8px}.ai-fab i{min-width:20px;height:20px;border-radius:999px;display:grid;place-items:center;background:#e72746;color:#fff;font-size:9px;font-style:normal;box-shadow:0 0 15px #ff3e59}.ai-fab.ai-answer-ready{animation:aiFabReady 1.1s ease-in-out infinite}
nav button.ai-question-alert{border:1px solid #f1a83e88;background:linear-gradient(90deg,#f1a83e28,#102a48);color:#ffe2ad}.ai-question-count{margin-left:auto;min-width:20px;height:20px;border-radius:999px;display:grid;place-items:center;background:#e87f20;color:#fff;font-size:9px;font-style:normal;font-weight:950;box-shadow:0 0 15px #f69b35}
.ai-manager-page{display:grid;gap:15px}.ai-manager-head{display:flex;align-items:center;justify-content:space-between;gap:22px;border:1px solid #326da0;border-radius:22px;padding:24px;background:linear-gradient(135deg,#0d2a4d,#08182d)}.ai-manager-head h2{font-size:30px;margin:7px 0}.ai-manager-head p{margin:0;max-width:760px;color:#9bb4ce;line-height:1.55}.ai-manager-live{display:grid;justify-items:end;gap:8px}.ai-manager-live>span{display:flex;align-items:center;gap:7px;color:#68ddae;font-size:9px;font-weight:900}.ai-manager-live>i{width:9px;height:9px;border-radius:50%;background:#2bd993;box-shadow:0 0 12px #2bd993;animation:liveDot 1.3s infinite}.ai-manager-live button,.ai-manager-refresh{border:1px solid #36719f;border-radius:10px;padding:8px 11px;background:#0a213b;color:#a9d5f5;font-weight:900;cursor:pointer}.ai-manager-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.ai-manager-metrics article{border:1px solid #2a5378;border-radius:16px;padding:17px;background:#0a1d34}.ai-manager-metrics span,.ai-manager-metrics strong{display:block}.ai-manager-metrics span{color:#7898b6;font-size:8px;letter-spacing:.09em;font-weight:900}.ai-manager-metrics strong{margin-top:7px;font-size:24px}.ai-manager-metrics article:first-child{border-color:#a87332;background:#2b2014}.ai-manager-metrics article:first-child strong{color:#ffc76d}.ai-question-list{display:grid;gap:11px}.ai-question-card{display:grid;grid-template-columns:155px minmax(260px,.8fr) minmax(440px,1.2fr);gap:14px;border:1px solid #9f6d31;border-radius:17px;padding:17px;background:linear-gradient(135deg,#2b2015,#091a2f)}.ai-question-meta,.ai-question-copy{display:grid;align-content:start;gap:6px}.ai-question-meta span,.ai-question-copy>span{color:#eca84e;font-size:8px;letter-spacing:.09em;font-weight:950}.ai-question-meta strong{font-size:14px}.ai-question-meta small,.ai-question-copy p{color:#8ca6bf;font-size:9px}.ai-question-copy h3{margin:0;font-size:16px;line-height:1.45}.ai-question-copy p{margin:0;line-height:1.5}.ai-answer-form{display:grid;grid-template-columns:1fr 1.25fr auto;gap:9px;align-items:end}.ai-answer-form label{display:block;color:#7899b7;font-size:8px;font-weight:900}.ai-answer-form label.full{grid-column:1/4}.ai-answer-form input,.ai-answer-form textarea{width:100%;margin-top:5px;border:1px solid #355b7c;border-radius:10px;padding:10px;background:#07182b;color:#fff;font:inherit}.ai-answer-form textarea{min-height:78px;resize:vertical}.ai-answer-form button{border:1px solid #4ce0aa;border-radius:11px;padding:11px 13px;background:linear-gradient(135deg,#11895e,#2bd993);color:#fff;font-weight:950;cursor:pointer}.ai-answered-list{display:grid;gap:8px;margin-top:12px}.ai-answered-row{display:grid;grid-template-columns:150px minmax(0,1fr) 190px;gap:13px;align-items:start;border:1px solid #274968;border-radius:12px;padding:12px;background:#081a30}.ai-answered-row>div:first-child{display:grid;gap:5px}.ai-answered-row span,.ai-answered-row small{color:#7693af;font-size:8px}.ai-answered-row b{font-size:11px}.ai-answered-row p{margin:5px 0 0;color:#a9bfd3;font-size:10px;line-height:1.45}.ai-answered-row>small{text-align:right;color:#63d9ac}
@keyframes aiThinking{0%,100%{opacity:.55}50%{opacity:1}}@keyframes aiFabReady{0%,100%{box-shadow:0 12px 35px #0a7ee966}50%{box-shadow:0 0 0 6px #2bd99326,0 12px 38px #22d19c88}}
@media(max-width:1200px){.ai-question-card{grid-template-columns:150px 1fr}.ai-answer-form{grid-column:1/3}}@media(max-width:760px){.ai-manager-head{align-items:flex-start;flex-direction:column}.ai-manager-live{justify-items:start}.ai-manager-metrics{grid-template-columns:1fr}.ai-question-card{grid-template-columns:1fr}.ai-answer-form{grid-column:1;grid-template-columns:1fr}.ai-answer-form label.full{grid-column:1}.ai-answer-form button{width:100%}.ai-answered-row{grid-template-columns:1fr}.ai-answered-row>small{text-align:left}}

/* V28 — Portale affiliato personalizzato e isolato */
.affiliate-page{display:grid;gap:22px}.affiliate-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(135deg,var(--surface),var(--surface-soft));box-shadow:0 18px 45px rgba(0,0,0,.14)}.affiliate-hero h2{font-size:34px;margin:8px 0}.affiliate-hero p{max-width:760px;color:var(--muted);line-height:1.65}.affiliate-security{padding:12px 16px;border:1px solid rgba(34,197,94,.45);border-radius:999px;background:rgba(34,197,94,.1);font-weight:800;white-space:nowrap}.affiliate-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.affiliate-panel{overflow:hidden}.affiliate-panel .panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.affiliate-panel small{display:block;color:var(--muted);margin-top:5px}.affiliate-table-wrap{overflow:auto;margin-top:16px}.affiliate-table{width:100%;border-collapse:collapse;min-width:760px}.affiliate-table th,.affiliate-table td{padding:14px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}.affiliate-table th{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}.affiliate-table td strong{display:block}.affiliate-status,.affiliate-payout{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900;background:rgba(148,163,184,.14)}.affiliate-status.approved,.affiliate-status.shipped,.affiliate-status.delivered,.affiliate-status.paid,.affiliate-payout.approved{background:rgba(34,197,94,.14);color:#4ade80}.affiliate-status.rejected,.affiliate-status.returned,.affiliate-status.invalid,.affiliate-status.duplicate,.affiliate-payout.cancelled{background:rgba(239,68,68,.14);color:#fb7185}.affiliate-status.pending,.affiliate-payout.pending{background:rgba(245,158,11,.14);color:#fbbf24}.affiliate-privacy-note{padding:12px 14px;border-radius:14px;background:rgba(59,130,246,.1);color:var(--muted);line-height:1.55}.affiliate-section-head{display:flex;align-items:center;justify-content:space-between}.affiliate-offer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.affiliate-offer-card{padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--surface);box-shadow:0 14px 34px rgba(0,0,0,.12)}.affiliate-offer-card h3{font-size:24px;margin:10px 0}.affiliate-offer-card p{min-height:54px;color:var(--muted);line-height:1.55}.affiliate-offer-meta{display:flex;align-items:baseline;gap:8px;margin:18px 0}.affiliate-offer-meta b{font-size:26px}.affiliate-offer-meta span,.affiliate-muted{color:var(--muted)}.affiliate-primary-link{display:inline-flex;padding:11px 14px;border-radius:12px;background:#0b64d8;color:#fff!important;text-decoration:none;font-weight:900}.affiliate-integration-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:18px}.affiliate-integration-grid label{display:grid;gap:7px;margin:12px 0;color:var(--muted);font-weight:700}.affiliate-integration-grid input,.affiliate-integration-grid select,.affiliate-create-grid input{width:100%;box-sizing:border-box;padding:12px 13px;border:1px solid var(--line);border-radius:12px;background:var(--input);color:var(--text)}.affiliate-events{display:flex;flex-wrap:wrap;gap:10px}.affiliate-events label{display:flex;align-items:center;gap:6px;margin:0;padding:8px 10px;border:1px solid var(--line);border-radius:999px}.affiliate-events input{width:auto}.affiliate-actions{display:flex;gap:10px;margin-top:16px}.affiliate-link-list{display:grid;gap:12px;margin-top:16px}.affiliate-link-row{display:grid;grid-template-columns:190px 1fr auto;align-items:center;gap:12px;padding:13px;border:1px solid var(--line);border-radius:14px}.affiliate-link-row code{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:9px;border-radius:9px;background:var(--input)}.affiliate-link-row button,.affiliate-actions button{padding:10px 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);color:var(--text);cursor:pointer;font-weight:800}.affiliate-create-panel{margin-bottom:20px}.affiliate-create-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}.affiliate-create-grid label{display:grid;gap:7px;color:var(--muted);font-weight:700}
@media(max-width:1100px){.affiliate-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.affiliate-offer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.affiliate-create-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.affiliate-integration-grid{grid-template-columns:1fr}.affiliate-link-row{grid-template-columns:1fr}.affiliate-hero{align-items:flex-start;flex-direction:column}.affiliate-security{white-space:normal}}
@media(max-width:700px){.affiliate-metrics,.affiliate-offer-grid,.affiliate-create-grid{grid-template-columns:1fr}.affiliate-hero h2{font-size:28px}}

/* V29 — Catalogo offerte e link landing immediati */
.affiliate-launch-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.affiliate-offer-launch{padding:0;overflow:hidden}.affiliate-offer-visual{height:170px;position:relative;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 35%,rgba(30,124,232,.34),var(--surface-soft) 70%);border-bottom:1px solid var(--line)}.affiliate-offer-visual img{display:block!important;width:auto!important;height:auto!important;max-width:145px!important;max-height:145px!important;object-fit:contain!important;position:relative;z-index:1;filter:drop-shadow(0 14px 14px rgba(0,0,0,.24))}.affiliate-geo,.affiliate-ready{z-index:2}.affiliate-geo,.affiliate-ready{position:absolute;top:14px;padding:7px 10px;border-radius:999px;font-size:11px;font-weight:900;backdrop-filter:blur(10px)}.affiliate-geo{left:14px;background:rgba(4,18,34,.72);border:1px solid var(--line)}.affiliate-ready{right:14px;background:rgba(239,68,68,.14);border:1px solid rgba(239,68,68,.35);color:#fb7185}.affiliate-ready.is-ready{background:rgba(34,197,94,.14);border-color:rgba(34,197,94,.4);color:#4ade80}.affiliate-offer-body{padding:22px}.affiliate-offer-numbers{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.affiliate-offer-numbers>div{padding:15px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft)}.affiliate-offer-numbers small,.affiliate-offer-numbers strong,.affiliate-offer-numbers span,.affiliate-offer-numbers del{display:block}.affiliate-offer-numbers small,.affiliate-offer-numbers span,.affiliate-offer-numbers del{color:var(--muted)}.affiliate-offer-numbers strong{font-size:28px;margin:5px 0}.affiliate-offer-numbers del{font-size:12px}.affiliate-link-builder{margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:18px;background:rgba(3,13,25,.14)}.affiliate-link-builder h4{margin:0 0 12px}.affiliate-tracking-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.affiliate-tracking-fields label,.affiliate-generated-label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:800}.affiliate-tracking-fields input,.affiliate-generated-link{width:100%;box-sizing:border-box;padding:10px 11px;border:1px solid var(--line);border-radius:11px;background:var(--input);color:var(--text)}.affiliate-generated-label{margin-top:10px}.affiliate-generated-link{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.affiliate-offer-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}.affiliate-offer-actions button{padding:10px 13px;border:1px solid var(--line);border-radius:11px;background:var(--surface-soft);color:var(--text);cursor:pointer;font-weight:900}.affiliate-section-head p{max-width:850px;color:var(--muted);line-height:1.55}
.admin-offer-catalog{margin-bottom:20px}.admin-offer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}.admin-offer-card{padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--surface-soft)}.admin-offer-card-head,.admin-offer-footer{display:flex;justify-content:space-between;align-items:center;gap:14px}.admin-offer-card h3{margin:6px 0 0}.admin-offer-edit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}.admin-offer-edit-grid label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:800}.admin-offer-edit-grid label.wide{grid-column:span 2}.admin-offer-edit-grid input,.admin-offer-edit-grid select{width:100%;box-sizing:border-box;padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:var(--input);color:var(--text)}.admin-offer-edit-grid .admin-offer-toggle{display:flex;align-items:center;gap:8px;align-self:end;padding:10px}.admin-offer-edit-grid .admin-offer-toggle input{width:auto}.admin-offer-footer span{color:var(--muted);font-size:12px}.admin-affiliate-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;margin-bottom:12px}.admin-affiliate-card.disabled{opacity:.72}.admin-affiliate-card .admin-user-row{border:0;border-radius:0;margin:0}.admin-assignment-area{padding:14px 18px;border-top:1px solid var(--line);background:var(--surface-soft)}.admin-assignment-list{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}.admin-assignment-chip{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center;padding:9px 11px;border:1px solid var(--line);border-radius:13px;background:var(--surface);cursor:pointer}.admin-assignment-chip.assigned{border-color:rgba(34,197,94,.5);background:rgba(34,197,94,.08)}.admin-assignment-chip input{grid-row:1/3}.admin-assignment-chip span{font-weight:850}.admin-assignment-chip small{color:var(--muted)}
@media(max-width:1150px){.affiliate-launch-grid,.admin-offer-grid{grid-template-columns:1fr}.affiliate-tracking-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-offer-edit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.affiliate-offer-numbers,.affiliate-tracking-fields,.admin-offer-edit-grid{grid-template-columns:1fr}.admin-offer-edit-grid label.wide{grid-column:1}.affiliate-offer-actions button{width:100%}.admin-offer-card-head,.admin-offer-footer{align-items:flex-start;flex-direction:column}}

/* ===== NEXUS V30 ===== */
.nexus-language-control,.login-language-control{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--nexus-adaptive-muted)}
.nexus-language-control select,.login-language-control select{border:1px solid rgba(73,162,255,.35);background:var(--nexus-adaptive-input);color:var(--nexus-adaptive-text);border-radius:10px;padding:8px 10px;font:inherit;text-transform:none;letter-spacing:0;outline:none}
.login-language-control{margin-left:auto}.login-tech-line{gap:12px;flex-wrap:wrap}
#nav button.approval-alert,#nav button.finance-alert,#nav button.affiliate-lead-alert{position:relative;overflow:visible}
#nav button.approval-alert{border-color:#ffd54d!important;box-shadow:0 0 0 1px rgba(255,213,77,.25),0 0 22px rgba(255,193,7,.35);animation:nexusApprovalPulse 1.35s infinite}
#nav button.finance-alert{border-color:#ff982f!important;box-shadow:0 0 0 1px rgba(255,152,47,.28),0 0 24px rgba(255,124,24,.42);animation:nexusFinancePulse 1.1s infinite}
#nav button.affiliate-lead-alert{border-color:#32d583!important;box-shadow:0 0 0 1px rgba(50,213,131,.28),0 0 24px rgba(50,213,131,.38);animation:nexusAffiliatePulse 1.25s infinite}
.approval-alert-count,.finance-alert-count,.affiliate-lead-count{display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;color:#07131f;font-size:12px;font-weight:950;font-style:normal;margin-left:auto}
.approval-alert-count{background:#ffd54d}.finance-alert-count{background:#ff982f;color:#fff}.affiliate-lead-count{background:#32d583}
@keyframes nexusApprovalPulse{50%{filter:brightness(1.25)}}@keyframes nexusFinancePulse{50%{transform:translateX(2px);filter:brightness(1.25)}}@keyframes nexusAffiliatePulse{50%{filter:brightness(1.3)}}
.approval-review-page,.finance-request-page{display:grid;gap:20px}.approval-review-list,.finance-request-list{display:grid;gap:14px}
.approval-review-card,.finance-request-card{display:grid;grid-template-columns:minmax(120px,.7fr) minmax(280px,2fr) minmax(250px,1fr);gap:18px;align-items:center;padding:20px;border:1px solid rgba(72,162,255,.28);border-radius:20px;background:linear-gradient(145deg,rgba(10,29,52,.96),rgba(5,16,31,.94));box-shadow:0 16px 42px rgba(0,0,0,.22)}
.approval-review-card{border-left:6px solid #ffd54d}.finance-request-card{border-left:6px solid #ff982f}
.approval-review-id span,.approval-review-main p,.approval-review-meta span,.finance-request-card small{display:block;color:var(--nexus-adaptive-muted)}
.approval-review-id strong{display:block;font-size:28px;margin:6px 0}.approval-review-main h3,.finance-request-card h3{margin:0 0 6px}.approval-review-meta{display:flex;flex-wrap:wrap;gap:9px;margin-top:12px}.approval-review-meta span{padding:7px 10px;border-radius:999px;background:rgba(255,255,255,.06)}
.approval-review-actions,.finance-request-inputs{display:grid;gap:9px}.approval-review-actions textarea,.finance-request-inputs textarea,.finance-request-inputs input,.affiliate-payment-request-form input,.affiliate-profile-grid input,.affiliate-profile-grid select,.affiliate-stat-filter input{width:100%;box-sizing:border-box;border:1px solid rgba(90,170,255,.3);background:var(--nexus-adaptive-input);color:var(--nexus-adaptive-text);border-radius:12px;padding:11px 12px;outline:none}
.approval-review-actions textarea,.finance-request-inputs textarea{min-height:68px;resize:vertical}.approval-review-actions button,.finance-request-inputs button{border:0;border-radius:12px;padding:11px 13px;font-weight:900;cursor:pointer}.approve-final,.payment-paid{background:#32d583;color:#052015}.reject-public,.payment-reject{background:#ff6363;color:#fff}.finance-request-inputs>div{display:flex;gap:8px}.finance-request-card>strong{font-size:26px;color:#ffb067}
.payment-request-status{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:12px;font-weight:900}.payment-request-status.submitted{background:rgba(255,152,47,.18);color:#ffb067}.payment-request-status.paid{background:rgba(50,213,131,.18);color:#6ce6a7}.payment-request-status.rejected{background:rgba(255,99,99,.18);color:#ff8585}
.affiliate-payment-request-box{display:grid;grid-template-columns:minmax(220px,1fr) minmax(320px,1.8fr);gap:24px;align-items:end}.affiliate-payment-request-form{display:grid;grid-template-columns:1fr 1.5fr auto;gap:12px;align-items:end}.affiliate-payment-request-form label,.affiliate-profile-grid label,.affiliate-stat-filter label{display:grid;gap:7px;color:var(--nexus-adaptive-muted);font-size:12px;font-weight:800}.affiliate-payment-request-form button{height:43px}
.affiliate-profile-panel{max-width:980px}.affiliate-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.affiliate-stat-filter{display:flex;gap:14px;align-items:end;flex-wrap:wrap}.affiliate-stat-filter label{min-width:180px}.affiliate-stat-filter button{height:43px}
@media(max-width:1100px){.approval-review-card,.finance-request-card{grid-template-columns:1fr}.affiliate-payment-request-box{grid-template-columns:1fr}.affiliate-payment-request-form{grid-template-columns:1fr 1fr}.affiliate-payment-request-form button{grid-column:1/-1}.nexus-language-control span{display:none}}
@media(max-width:720px){.affiliate-profile-grid,.affiliate-payment-request-form{grid-template-columns:1fr}.top-controls{gap:7px}.nexus-language-control select{max-width:110px}.approval-review-card,.finance-request-card{padding:15px}}
/* ===== END NEXUS V30 ===== */

/* Nexus V30.1 — affiliate payouts in USD, minimum request validation, paid notification */
#nav button.affiliate-payment-paid-alert{position:relative;overflow:visible;border-color:#32d583!important;box-shadow:0 0 0 1px rgba(50,213,131,.3),0 0 25px rgba(50,213,131,.46);animation:nexusAffiliatePaidPulse 1.15s ease-in-out infinite}
.affiliate-payment-paid-count{display:grid;place-items:center;min-width:23px;height:23px;padding:0 6px;border-radius:999px;background:#32d583;color:#052015;font-size:12px;font-weight:950;font-style:normal;margin-left:auto;box-shadow:0 0 15px rgba(50,213,131,.58)}
@keyframes nexusAffiliatePaidPulse{0%,100%{filter:brightness(1);box-shadow:0 0 0 1px rgba(50,213,131,.2),0 0 12px rgba(50,213,131,.2)}50%{filter:brightness(1.18);box-shadow:0 0 0 4px rgba(50,213,131,.16),0 0 30px rgba(50,213,131,.58)}}
.affiliate-balance-only{grid-template-columns:minmax(240px,420px)!important}
.affiliate-payment-request-form{grid-template-columns:minmax(180px,1fr) auto!important;position:relative}
.affiliate-payment-request-box{transition:border-color .2s ease,box-shadow .2s ease,background .2s ease}
.affiliate-payment-request-box.has-error{border-color:#ff5b68!important;background:linear-gradient(135deg,rgba(105,18,31,.68),rgba(9,25,46,.96))!important;box-shadow:0 0 0 1px rgba(255,91,104,.25),0 0 30px rgba(255,56,76,.24)}
.affiliate-payment-request-box.has-error input{border-color:#ff6572!important;box-shadow:0 0 0 3px rgba(255,91,104,.12)}
.payment-validation-error{display:none;grid-column:1/-1;border:1px solid rgba(255,91,104,.65);border-radius:11px;padding:10px 12px;background:rgba(90,13,25,.7);color:#ffd9dd;font-size:12px;font-weight:850;line-height:1.45}
.payment-validation-error.visible,.affiliate-payment-request-box.has-error .payment-validation-error{display:block}
@media(max-width:720px){.affiliate-payment-request-form{grid-template-columns:1fr!important}}

/* ===== LORMAG NEXUS V31 — CEO LIVE / KPI / PRODUCT VISIBILITY ===== */
.leadvertex-product-photo{height:230px!important;padding:12px!important;overflow:hidden!important}
.leadvertex-product-photo img{display:block!important;width:auto!important;height:auto!important;max-width:96%!important;max-height:206px!important;object-fit:contain!important;padding:0!important;margin:auto!important;filter:drop-shadow(0 14px 18px rgba(0,0,0,.34))}
.ceo-priority-alert{border-color:#ffd15a!important;background:linear-gradient(90deg,#32280e,#09203a)!important;box-shadow:0 0 18px rgba(255,209,90,.22)}
.ceo-priority-count{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#ffd15a;color:#332300;display:grid;place-items:center;font-size:10px;font-style:normal;font-weight:950;animation:nexusPulseV31 1.3s infinite}
@keyframes nexusPulseV31{50%{box-shadow:0 0 0 7px rgba(255,209,90,0)}}
.ceo-real-hero{position:relative;min-height:270px}.hero-refresh{position:absolute;right:28px;top:28px}.live-data-warning{margin:0 0 14px;padding:12px 15px;border:1px solid #ffbf5670;background:#4b2b0cbd;border-radius:12px;color:#ffd99b;font-size:11px}.real-metrics .metric .value{font-size:27px}.ceo-grid-v31{align-items:start}.real-chart{min-height:235px}.real-chart .bar{min-width:18px}.ceo-priorities-panel{border-color:#365779}.priority-list-v31{display:grid;gap:10px;margin-top:14px}.ceo-priority-card{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:13px;align-items:center;border:1px solid #244865;background:linear-gradient(145deg,#0a1e35,#07172a);border-radius:15px;padding:13px}.ceo-priority-card.severity-high{border-color:#dc6672;background:linear-gradient(145deg,#35141e,#09192d)}.ceo-priority-card.severity-medium{border-color:#e1ae4b}.ceo-priority-rank{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:#102f52;color:#5fe0ff;font-weight:950}.severity-high .ceo-priority-rank{background:#4b1722;color:#ff8691}.severity-medium .ceo-priority-rank{background:#493713;color:#ffd770}.ceo-priority-top{display:flex;justify-content:space-between;gap:12px}.ceo-priority-top span{font-size:8px;color:#68d8ff;text-transform:uppercase;font-weight:900;letter-spacing:.08em}.ceo-priority-top em{font-size:10px;color:#ffd05a;font-style:normal;font-weight:900}.ceo-priority-copy h4{margin:4px 0;font-size:13px}.ceo-priority-copy p{margin:0;color:#8ea9c3;font-size:10px;line-height:1.5}.ceo-priority-actions{display:flex;flex-direction:column;gap:6px}.ceo-priority-actions button{border:1px solid #2b557a;background:#102946;color:#c7dcf0;border-radius:9px;padding:8px 10px;font-size:9px;font-weight:900;cursor:pointer}.ceo-priority-actions .resolve{border:0;background:linear-gradient(135deg,#14875f,#2bd993);color:white}.ceo-all-clear{display:flex;align-items:center;gap:12px;padding:20px;border:1px solid #2f876e;background:#0b372b;border-radius:14px}.ceo-all-clear.compact{padding:12px;margin-top:12px}.ceo-all-clear b{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#2bd993;color:#06261b}.ceo-all-clear strong,.ceo-all-clear span{display:block}.ceo-all-clear span{font-size:10px;color:#8ebcad;margin-top:3px}.ceo-resolved-history{margin-top:12px;border-top:1px solid #1f3e5d;padding-top:10px}.ceo-resolved-history summary{cursor:pointer;color:#7e9bb7;font-size:10px}.ceo-resolved-row{display:flex;gap:9px;align-items:center;padding:8px 0;border-bottom:1px solid #173450}.ceo-resolved-row>span{color:#63e5aa}.ceo-resolved-row strong,.ceo-resolved-row small{display:block}.ceo-resolved-row small{font-size:9px;color:#718da9;margin-top:2px}.real-forecast strong{font-size:14px!important}.ceo-live-dashboard .gauge{background:conic-gradient(#2bd993 calc(var(--score,0)*1%),#163451 0)!important}
.analytics-v31{display:grid;gap:16px}.kpi-connection-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:start;border-width:1px}.kpi-connection-card.connected{border-color:#2a9b76}.kpi-connection-card.stale{border-color:#d7a542}.kpi-connection-card.disconnected{border-color:#db6571}.kpi-connection-card h2{margin:6px 0}.kpi-connection-card p{color:#89a5c0;line-height:1.55}.kpi-connection-actions{display:flex;gap:8px}.kpi-connection-actions button,.kpi-settings-grid button,.analytics-filter-actions button{border:1px solid #2b5578;background:#0d2948;color:#e8f5ff;border-radius:9px;padding:10px 12px;font-size:9px;font-weight:900;cursor:pointer}.kpi-connection-card details{grid-column:1/-1;border-top:1px solid #1c3d5d;padding-top:10px}.kpi-connection-card summary{cursor:pointer;color:#77a0c3;font-size:10px}.kpi-settings-grid{display:grid;grid-template-columns:1fr 1.5fr auto;gap:10px;align-items:end;margin-top:12px}.kpi-settings-grid label,.analytics-filter-grid label{display:flex;flex-direction:column;gap:5px;color:#7f9db8;font-size:9px;font-weight:850}.kpi-settings-grid input,.analytics-filter-grid input,.analytics-filter-grid select{background:#06172b;border:1px solid #244a6f;border-radius:9px;color:white;padding:10px;font-size:10px}.kpi-setup-help{font-size:9px!important}.analytics-filters{padding-bottom:16px}.analytics-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));gap:10px;margin-top:14px}.analytics-filter-actions{display:flex;gap:8px;align-items:end}.analytics-real-metrics .metric .value{font-size:24px}.analytics-grid-v31{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.7fr);gap:16px}.reconciliation-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}.reconciliation-cards article{border:1px solid #224766;background:#091d34;border-radius:11px;padding:11px}.reconciliation-cards span,.reconciliation-cards strong{display:block}.reconciliation-cards span{font-size:8px;color:#7896b2;text-transform:uppercase}.reconciliation-cards strong{font-size:22px;margin-top:4px}.reconciliation-cards .matched{border-color:#2e8e6e}.reconciliation-cards .warning{border-color:#ba8735}.stock-live-grid{display:grid;gap:9px;margin-top:12px}.stock-live-card{border:1px solid #2f7d65;background:#0a3027;border-radius:12px;padding:12px}.stock-live-card.critical{border-color:#d85c6d;background:#381722}.stock-live-card span,.stock-live-card strong,.stock-live-card small{display:block}.stock-live-card strong{font-size:27px;margin:4px 0}.stock-live-card small{color:#8ea7bc}.cost-breakdown{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:13px}.cost-breakdown div{border:1px solid #1f405f;border-radius:9px;padding:9px;background:#07182c}.cost-breakdown span,.cost-breakdown strong{display:block}.cost-breakdown span{font-size:8px;color:#7391ae}.cost-breakdown strong{font-size:12px;margin-top:3px}.kpi-register{max-height:520px;overflow:auto}.kpi-register thead{position:sticky;top:0;background:#0b2039;z-index:2}
@media(max-width:1100px){.ceo-priority-card{grid-template-columns:38px 1fr}.ceo-priority-actions{grid-column:2;flex-direction:row}.analytics-grid-v31{grid-template-columns:1fr}.analytics-filter-grid{grid-template-columns:repeat(2,1fr)}.kpi-settings-grid{grid-template-columns:1fr}.hero-refresh{position:static;margin-top:15px}.kpi-connection-card{grid-template-columns:1fr}.kpi-connection-actions{grid-column:1}}
@media(max-width:700px){.ceo-priority-card{grid-template-columns:1fr}.ceo-priority-rank{display:none}.ceo-priority-actions{grid-column:1}.analytics-filter-grid,.reconciliation-cards,.cost-breakdown{grid-template-columns:1fr}.leadvertex-product-photo{height:205px!important}.leadvertex-product-photo img{max-height:180px!important}}
/* ===== END LORMAG NEXUS V31 ===== */

/* ===== LORMAG NEXUS V31.4 — OFFER GEO/CATEGORY FILTERS ===== */
.affiliate-offer-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(220px,1fr) auto auto;gap:12px;align-items:end;margin:0 0 18px;padding:16px;border:1px solid #244a6e;border-radius:15px;background:linear-gradient(145deg,rgba(8,28,50,.96),rgba(5,20,38,.96));box-shadow:0 12px 28px rgba(0,0,0,.18)}
.affiliate-offer-filters label{display:flex;flex-direction:column;gap:6px;color:#7fa2c2;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.affiliate-offer-filters select{width:100%;min-height:42px;border:1px solid #2a557d;border-radius:10px;background:#06182c;color:#f4fbff;padding:10px 12px;font-size:11px;font-weight:750;outline:none}
.affiliate-offer-filters select:focus{border-color:#39c8ff;box-shadow:0 0 0 3px rgba(57,200,255,.12)}
.affiliate-offer-filters button,.affiliate-no-offers button{min-height:42px;border:1px solid #2f6089;border-radius:10px;background:#102c4c;color:#eaf7ff;padding:10px 15px;font-size:10px;font-weight:900;cursor:pointer}
.affiliate-offer-filters>span{align-self:center;justify-self:end;color:#69d8ff;font-size:10px;font-weight:900;white-space:nowrap}
.affiliate-category-badge{position:absolute;left:13px;bottom:13px;z-index:3;border:1px solid rgba(91,225,255,.44);border-radius:999px;background:rgba(4,24,44,.88);backdrop-filter:blur(8px);color:#8eeaff;padding:6px 10px;font-size:9px;font-weight:950;text-transform:uppercase;letter-spacing:.06em}
.affiliate-no-offers{grid-column:1/-1;text-align:center;padding:35px}.affiliate-no-offers p{color:#88a4bf}.affiliate-no-offers button{margin-top:12px}
@media(max-width:900px){.affiliate-offer-filters{grid-template-columns:1fr 1fr}.affiliate-offer-filters>span{justify-self:start}}
@media(max-width:620px){.affiliate-offer-filters{grid-template-columns:1fr}.affiliate-offer-filters>span{justify-self:start}}
/* ===== END LORMAG NEXUS V31.4 ===== */

/* V31.5 — offer access authorization */
.affiliate-offer-card.is-locked{opacity:.92}.affiliate-offer-card.is-locked .affiliate-offer-visual img{filter:saturate(.65)}
.affiliate-offer-locked{margin-top:18px;padding:22px;border:1px dashed rgba(245,158,11,.65);border-radius:16px;background:rgba(120,53,15,.16);text-align:center}.offer-lock-icon{display:block;font-size:30px;margin-bottom:8px}.affiliate-offer-locked strong{display:block;color:#fbbf24;font-size:17px}.affiliate-offer-locked p{margin:8px auto 14px;max-width:420px}.affiliate-offer-locked button{background:#f59e0b;color:#1f1300;border:0;border-radius:10px;padding:11px 18px;font-weight:800}.affiliate-offer-locked button:disabled{opacity:.55;cursor:not-allowed}
.offer-access-admin-page{display:grid;gap:18px}.offer-access-request-list{display:grid;gap:14px}.offer-access-request-card{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(240px,1fr) auto;gap:18px;align-items:center;padding:20px;border:1px solid rgba(245,158,11,.7);border-radius:18px;background:linear-gradient(135deg,rgba(120,53,15,.25),rgba(8,25,48,.95));box-shadow:0 0 0 1px rgba(245,158,11,.12),0 0 24px rgba(245,158,11,.12);animation:offerAccessPulse 1.8s infinite}.offer-access-request-card textarea{width:100%;min-height:76px}.offer-access-actions{display:flex;gap:8px;flex-direction:column}.offer-access-actions button{border:0;border-radius:10px;padding:11px 16px;font-weight:800}.offer-access-actions .approve{background:#22c55e}.offer-access-actions .reject{background:#ef4444;color:white}@keyframes offerAccessPulse{50%{box-shadow:0 0 0 2px rgba(245,158,11,.28),0 0 34px rgba(245,158,11,.22)}}
@media(max-width:900px){.offer-access-request-card{grid-template-columns:1fr}}

/* V31.6 — Affiliate campaign workspace and multiple landings */
.affiliate-campaign-page .affiliate-launch-grid{grid-template-columns:1fr}
.affiliate-campaign-page .affiliate-offer-launch{display:grid;grid-template-columns:220px minmax(0,1fr)}
.affiliate-campaign-page .affiliate-offer-visual{height:100%;min-height:390px;border-bottom:0;border-right:1px solid var(--line)}
.affiliate-campaign-page .affiliate-offer-body{min-width:0}
.affiliate-campaign-workspace{margin-top:18px;border:1px solid var(--line);border-radius:18px;background:rgba(3,13,25,.16);overflow:hidden}
.affiliate-campaign-workspace>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 17px;cursor:pointer;list-style:none;font-weight:900}
.affiliate-campaign-workspace>summary::-webkit-details-marker{display:none}
.affiliate-campaign-workspace>summary b{color:var(--muted);font-size:11px}
.affiliate-campaign-workspace[open]>summary{border-bottom:1px solid var(--line)}
.affiliate-campaign-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:16px;padding:16px}
.affiliate-campaign-edit{min-width:0}
.affiliate-campaign-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:9px;align-items:end;margin-bottom:12px}
.affiliate-campaign-toolbar label,.affiliate-campaign-grid label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:800}
.affiliate-campaign-toolbar select,.affiliate-campaign-grid input,.affiliate-campaign-grid select{width:100%;box-sizing:border-box;padding:10px 11px;border:1px solid var(--line);border-radius:10px;background:var(--input);color:var(--text)}
.affiliate-campaign-toolbar button{height:40px;padding:0 13px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);color:var(--text);font-weight:850;cursor:pointer}
.affiliate-campaign-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.affiliate-campaign-grid .wide{grid-column:span 3}
.affiliate-campaign-check{display:flex!important;align-items:center;align-self:end;min-height:40px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft)}
.affiliate-campaign-check input{width:auto!important}
.affiliate-landing-list{display:grid;align-content:start;gap:9px;padding:13px;border:1px solid var(--line);border-radius:14px;background:var(--surface-soft)}
.affiliate-landing-list h4{margin:0 0 4px}
.affiliate-landing-list button{display:grid;grid-template-columns:28px 1fr;gap:2px 9px;text-align:left;padding:10px;border:1px solid var(--line);border-radius:10px;background:var(--input);color:var(--text);cursor:pointer}
.affiliate-landing-list button span{grid-row:1/3;display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:rgba(59,130,246,.15);font-weight:900}
.affiliate-landing-list button strong,.affiliate-landing-list button small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.affiliate-landing-list button small{color:var(--muted)}
.affiliate-offer-actions .danger{border-color:rgba(239,68,68,.45);color:#fb7185}
.admin-landing-manager{margin:16px 0;padding:14px;border:1px solid var(--line);border-radius:15px;background:var(--surface-soft)}
.admin-landing-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.admin-landing-head span{color:var(--muted);font-size:11px}
.admin-landing-row{display:grid;grid-template-columns:1fr .55fr 2fr 80px 90px auto auto;gap:8px;align-items:center;margin-top:8px}
.admin-landing-row input{width:100%;box-sizing:border-box;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:var(--input);color:var(--text)}
.admin-landing-row label{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}
.admin-landing-row label input{width:auto}
.admin-landing-row button{padding:9px 11px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--text);font-weight:800;cursor:pointer}
.admin-landing-row button.danger{border-color:rgba(239,68,68,.4);color:#fb7185}
.admin-landing-row.is-archived{opacity:.55}
.admin-landing-row.is-new{padding-top:10px;border-top:1px dashed var(--line)}
@media(max-width:1100px){.affiliate-campaign-page .affiliate-offer-launch{grid-template-columns:1fr}.affiliate-campaign-page .affiliate-offer-visual{min-height:210px;border-right:0;border-bottom:1px solid var(--line)}.affiliate-campaign-layout{grid-template-columns:1fr}.admin-landing-row{grid-template-columns:1fr 1fr}.admin-landing-row input:nth-child(3){grid-column:span 2}}
@media(max-width:700px){.affiliate-campaign-toolbar,.affiliate-campaign-grid{grid-template-columns:1fr}.affiliate-campaign-grid .wide{grid-column:1}.affiliate-campaign-toolbar button{width:100%}.affiliate-campaign-workspace>summary{align-items:flex-start;flex-direction:column}.admin-landing-row{grid-template-columns:1fr}.admin-landing-row input:nth-child(3){grid-column:1}}

/* ===== LORMAG NEXUS V31.7 — LIGHTWEIGHT LOGIN PERFORMANCE ===== */
html.login-route,html.login-route body{min-height:100%;background:#04101e;overflow:hidden}
html.login-route body:before,html.login-route body:after{display:none!important}
html.login-route .role-login-page{
  min-height:100svh;
  animation:none!important;
  filter:none!important;
  transition:none!important;
  background:linear-gradient(105deg,rgba(2,9,21,.96),rgba(6,21,47,.91) 48%,rgba(7,27,50,.9)),url("assets/mountain-bg.png") center/cover no-repeat;
  contain:layout paint style;
}
html.login-route .role-login-page:before{
  inset:0;
  animation:none!important;
  transform:none!important;
  background:radial-gradient(circle at 72% 32%,rgba(22,140,255,.14),transparent 28%),radial-gradient(circle at 18% 78%,rgba(88,217,255,.08),transparent 25%);
}
html.login-route .role-login-page:after{animation:none!important;background-size:64px 64px;opacity:.42}
html.login-route .role-login-shell{contain:layout paint;width:min(1120px,100%)}
html.login-route .role-login-brand,html.login-route .role-login-card{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  box-shadow:0 22px 60px rgba(0,0,0,.46);
}
html.login-route .role-login-brand{background:linear-gradient(110deg,#082a50f5,#07182df2)}
html.login-route .role-login-card{background:linear-gradient(145deg,#102845fa,#08182efa)}
html.login-route .role-login-brand:after,html.login-route .mountain-scan,html.login-route .access-live-dot,html.login-route .role-login-btn{animation:none!important}
html.login-route .access-live-dot{opacity:1;transform:none}
html.login-route .role-login-btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:45px;background-size:100% 100%;transition:transform .14s ease,box-shadow .14s ease,opacity .14s ease}
html.login-route .role-login-btn:active{transform:translateY(0) scale(.995)}
html.login-route .role-login-btn.loading{opacity:.82;cursor:wait}
.login-btn-spinner{display:none;width:16px;height:16px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%}
.role-login-btn.loading .login-btn-spinner{display:block;animation:loginSpinner .7s linear infinite}
.login-status{margin-top:12px;padding:10px 12px;border:1px solid rgba(255,108,125,.48);border-radius:10px;background:rgba(92,18,32,.5);color:#ffd7dc;font-size:11px;font-weight:750;line-height:1.4}
.login-status.success{border-color:rgba(43,217,147,.45);background:rgba(12,74,55,.45);color:#baf5db}
.login-status.hidden{display:none}
html.login-route .role-login-card input:focus,html.login-route .role-login-card select:focus{outline:none;border-color:#39c8ff;box-shadow:0 0 0 3px rgba(57,200,255,.12)}
@keyframes loginSpinner{to{transform:rotate(360deg)}}
@media(max-width:800px){html.login-route .role-login-page{padding:18px;background:linear-gradient(145deg,#020915,#071b32)}html.login-route .role-login-card{padding:28px 22px}}
@media(max-width:520px){html.login-route .role-login-card input,html.login-route .role-login-card select{font-size:16px}.login-tech-line{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){html.login-route *,html.login-route *:before,html.login-route *:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* ===== END LORMAG NEXUS V31.7 ===== */

/* ===== LORMAG NEXUS V31.12 — ACCOUNT LOCK + NEW DEVICE EMAIL OTP ===== */
.device-code-form{display:grid;gap:2px}.device-code-form.hidden{display:none!important}.device-security-icon{width:62px;height:62px;margin:8px auto 2px;border:1px solid #45d7ff;border-radius:20px;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#1ab7ff,#0a3162 62%,#07162c);box-shadow:0 14px 34px #0b8dca42;color:#dff8ff;font-size:25px;font-weight:950}.device-code-form>p{margin:0 0 5px;text-align:center;color:#9eb6ce;font-size:12px;line-height:1.55}.device-code-form>p strong{color:#eefaff}.device-code-form input{font-size:25px!important;letter-spacing:.34em;text-align:center;font-weight:900;padding-left:calc(13px + .34em)!important}.device-code-actions{display:flex;justify-content:center;gap:8px;margin-top:10px}.device-code-actions button{border:1px solid #315778;border-radius:10px;padding:9px 11px;background:#081a30;color:#a9bfd4;font-size:10px;font-weight:800;cursor:pointer}.device-code-actions button:first-child{border-color:#2c81aa;color:#8fe2ff}.device-code-actions button:disabled{opacity:.45;cursor:not-allowed}.device-code-form .role-login-btn.loading .login-btn-spinner{display:block;animation:loginSpinner .7s linear infinite}
.admin-users-metrics.security-metrics{grid-template-columns:repeat(4,1fr)}.admin-user-row.security-locked{border-color:#ff5d714d;background:linear-gradient(135deg,#321322,#081a31 52%);box-shadow:inset 3px 0 #ff526b}.user-state.locked{background:#ff526b22;color:#ff9cab;border:1px solid #ff526b66}.user-state.warning{background:#f5b9421f;color:#ffd47d;border:1px solid #f5b94255}.admin-user-role{display:inline-flex;margin-left:6px;padding:3px 6px;border:1px solid #315778;border-radius:999px;color:#8eb5d7;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.admin-user-actions{flex-wrap:wrap;justify-content:flex-end}.admin-user-actions button.security-email{border-color:#3cbbff66;color:#82dcff}.admin-user-actions button.revoke-devices{border-color:#f5b94266;color:#ffd47d}.admin-user-actions button.unlock-reset{border-color:#ff6c7d77;color:#ffb0ba;background:#351825}.security-empty-email{color:#ffbd72!important}.security-note{margin-top:12px;padding:12px 14px;border:1px solid #315778;border-radius:12px;background:#07172b;color:#8fa9c2;font-size:11px;line-height:1.55}
@media(max-width:1180px){.admin-users-metrics.security-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:700px){.admin-users-metrics.security-metrics{grid-template-columns:1fr}.device-code-actions{flex-direction:column}.device-code-actions button{width:100%}}

/* NEXUS V31.13 · CEO ORDINI LIVE OPERATIVI */
.live-order-table-head.admin,.live-order-row:has(.live-order-check){grid-template-columns:38px 78px minmax(170px,1.15fr) minmax(160px,1fr) minmax(130px,.8fr) minmax(190px,1.05fr) 105px}.live-order-row.selected{border-color:#26c98d;background:linear-gradient(135deg,#092a2a,#081a31);box-shadow:0 0 0 1px #26c98d55,0 10px 26px #0fb67c20}.live-order-check{width:25px;height:25px;display:grid;place-items:center;cursor:pointer}.live-order-check input{width:17px;height:17px;accent-color:#21c98b}.live-order-quick{display:grid;grid-template-columns:1fr auto;gap:6px}.live-order-quick select{min-width:0;border:1px solid #315676;border-radius:9px;padding:8px;background:#07182c;color:#eef8ff;font-size:9px}.live-order-quick button{border:1px solid #45c9f2;border-radius:9px;padding:8px 9px;background:#0d5a8b;color:#fff;font-size:8px;font-weight:900;cursor:pointer}.live-order-quick button:disabled{opacity:.55;cursor:wait}.live-bulk-toolbar{position:sticky;top:12px;z-index:12;display:grid;grid-template-columns:auto auto minmax(190px,1fr) auto auto auto;gap:10px;align-items:center;padding:13px 15px;border:1px solid #3a789f;border-radius:15px;background:#07192df2;box-shadow:0 14px 34px #0005;backdrop-filter:blur(14px)}.live-select-all{display:flex;align-items:center;gap:8px;color:#bad2e8;font-size:10px;font-weight:850;cursor:pointer}.live-select-all input{width:17px;height:17px;accent-color:#26c98d}.live-bulk-summary{display:flex;align-items:baseline;gap:5px;padding:8px 10px;border-radius:10px;background:#0d2a42}.live-bulk-summary strong{font-size:19px;color:#62e5b1}.live-bulk-summary span{font-size:8px;color:#83a3bf}.live-bulk-toolbar select,.live-bulk-toolbar button{border:1px solid #315676;border-radius:10px;padding:10px 11px;background:#0a2038;color:#eef8ff;font-size:9px;font-weight:850}.live-bulk-toolbar button{cursor:pointer}.live-bulk-toolbar button:not(:disabled):hover{border-color:#50d4ff}.live-bulk-toolbar button.invoice{border-color:#36c98c;background:#0d4938}.live-bulk-toolbar button.clear{background:transparent}.live-bulk-toolbar button:disabled{opacity:.42;cursor:not-allowed}.live-order-drawer-shell{position:fixed;inset:0;z-index:1000;display:flex;justify-content:flex-end;background:#020812cc;backdrop-filter:blur(7px)}.live-order-drawer{width:min(980px,96vw);height:100%;overflow:auto;padding:22px;background:linear-gradient(180deg,#081a31,#061321);border-left:1px solid #2d678e;box-shadow:-20px 0 60px #0008}.live-order-drawer-head{position:sticky;top:-22px;z-index:4;display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin:-22px -22px 18px;padding:20px 22px;border-bottom:1px solid #284b69;background:#07182cf2;backdrop-filter:blur(14px)}.live-order-drawer-head h2{margin:5px 0;font-size:28px}.live-order-drawer-head p{margin:0;color:#88a6c1}.live-order-drawer-actions{display:flex;gap:8px}.live-order-drawer-actions>button{border:1px solid #38698c;border-radius:10px;padding:10px 13px;background:#0a2845;color:#d9efff;font-weight:900;cursor:pointer}.live-editor-loading{min-height:75vh;display:grid;place-content:center;text-align:center;gap:9px}.live-editor-loading strong{font-size:22px}.live-editor-loading span{color:#87a5c0}.live-editor-sections{display:grid;gap:14px}.live-editor-sections>section{padding:18px;border:1px solid #264b6c;border-radius:16px;background:#081a30}.live-editor-sections h3{margin:0 0 13px;font-size:16px}.live-manager-form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.live-manager-form-grid label.wide{grid-column:span 2}.live-manager-form-grid label.full{grid-column:1/-1}.live-editor-readonly{padding:10px;border:1px solid #294d6c;border-radius:11px;background:#07182c}.live-editor-readonly span,.live-editor-product-row span{display:block;color:#7796b3;font-size:8px;letter-spacing:.07em;font-weight:900}.live-editor-readonly strong{display:block;margin-top:8px}.live-editor-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.live-editor-section-head>div{display:flex;gap:8px}.live-editor-section-head select,.live-editor-section-head button,.live-editor-recalculate{border:1px solid #315676;border-radius:10px;padding:9px 11px;background:#07182c;color:#eef8ff;font-weight:850}.live-editor-section-head button,.live-editor-recalculate{cursor:pointer}.live-editor-products-list{display:grid;gap:8px}.live-editor-product-row{display:grid;grid-template-columns:minmax(220px,1fr) 120px 150px auto;gap:10px;align-items:end;padding:12px;border:1px solid #2b526f;border-radius:12px;background:#07182c}.live-editor-product-row strong,.live-editor-product-row small{display:block}.live-editor-product-row small{margin-top:4px;color:#7897b2}.live-editor-product-row label input{width:100%;margin-top:6px;border:1px solid #315676;border-radius:9px;padding:9px;background:#061425;color:#fff}.live-editor-remove-product{border:1px solid #9a4255;border-radius:9px;padding:9px 10px;background:#341720;color:#ff9aaa;font-weight:850;cursor:pointer}.live-editor-recalculate{margin-top:10px}.live-manager-actions{position:sticky;bottom:-22px;margin:18px -22px -22px;padding:15px 22px;border-top:1px solid #294d6c;background:#07182cf2;backdrop-filter:blur(14px)}
@media(max-width:1300px){.live-bulk-toolbar{grid-template-columns:1fr 1fr 1fr}.live-order-table-head.admin{display:none}.live-order-row:has(.live-order-check){grid-template-columns:38px repeat(3,1fr)}.live-order-check{grid-row:1/3}.live-manager-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.live-bulk-toolbar{position:static;grid-template-columns:1fr}.live-order-row:has(.live-order-check){grid-template-columns:34px 1fr}.live-order-check{grid-row:auto}.live-order-drawer{width:100vw;padding:14px}.live-order-drawer-head{top:-14px;margin:-14px -14px 14px;padding:14px;flex-direction:column}.live-order-drawer-actions{width:100%}.live-order-drawer-actions>button{flex:1}.live-manager-form-grid{grid-template-columns:1fr}.live-manager-form-grid label.wide,.live-manager-form-grid label.full{grid-column:1}.live-editor-section-head{align-items:flex-start;flex-direction:column}.live-editor-section-head>div{width:100%;display:grid;grid-template-columns:1fr auto}.live-editor-product-row{grid-template-columns:1fr 1fr}.live-editor-product-row>div,.live-editor-remove-product{grid-column:1/-1}.live-manager-actions{bottom:-14px;margin:14px -14px -14px;padding:13px 14px}}


/* ===== LORMAG NEXUS V31.14 SUPPORT TICKETS ===== */
.login-support-trigger{width:100%;margin-top:10px;border:1px solid rgba(30,134,255,.45);background:rgba(30,134,255,.09);color:#2d91f2;border-radius:12px;padding:11px 14px;font-weight:800;cursor:pointer}.login-support-trigger.hidden{display:none}.login-support-form textarea{min-height:125px;resize:vertical}.login-support-honeypot{position:absolute!important;left:-9999px!important;opacity:0!important;pointer-events:none!important}.device-security-icon.support{background:linear-gradient(135deg,#1264b6,#27a5f4)}
.support-page{display:grid;gap:18px}.support-compose{display:grid;gap:14px}.support-compose-grid{display:grid;grid-template-columns:220px 1fr auto;gap:12px;align-items:end}.support-compose-grid label{display:grid;gap:7px;color:var(--nexus-adaptive-muted);font-size:12px;font-weight:800}.support-compose-grid input,.support-compose-grid select,.support-compose-grid textarea,.support-reply textarea,.admin-support-reply textarea,.support-admin-controls select{width:100%;box-sizing:border-box;border:1px solid var(--nexus-adaptive-line);background:var(--nexus-adaptive-input);color:var(--nexus-adaptive-text);border-radius:11px;padding:12px}.support-compose-grid .full{grid-column:1/-1}.support-compose-grid textarea{min-height:105px;resize:vertical}.support-layout{display:grid;grid-template-columns:minmax(280px,390px) minmax(0,1fr);gap:18px;align-items:start}.support-ticket-list{display:grid;gap:9px;max-height:760px;overflow:auto}.support-ticket-card{display:grid;gap:7px;text-align:left;width:100%;border:1px solid var(--nexus-adaptive-line);background:var(--nexus-adaptive-surface-soft);color:var(--nexus-adaptive-text);padding:13px;border-radius:13px;cursor:pointer}.support-ticket-card:hover,.support-ticket-card.active{border-color:#2298f3;box-shadow:0 0 0 2px rgba(34,152,243,.12)}.support-ticket-card.unread{border-color:#ff9d28}.support-ticket-card>span{display:flex;align-items:center;justify-content:space-between;gap:8px}.support-ticket-card b{font-size:13px}.support-ticket-card small{color:var(--nexus-adaptive-muted);font-size:11px}.support-ticket-card.priority-urgent{border-left:5px solid #ff4d57}.support-ticket-card.priority-high{border-left:5px solid #ff9d28}.support-status{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:10px;font-style:normal;font-weight:900;background:rgba(107,127,151,.16)}.support-status.open{background:rgba(255,157,40,.16);color:#ff9d28}.support-status.in_progress{background:rgba(32,151,244,.16);color:#2298f3}.support-status.waiting_affiliate{background:rgba(172,101,255,.15);color:#a96aff}.support-status.resolved,.support-status.closed{background:rgba(48,190,126,.16);color:#2cbd7c}.support-conversation{min-height:520px;display:grid;grid-template-rows:auto minmax(220px,1fr) auto;gap:15px}.support-conversation-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;border-bottom:1px solid var(--nexus-adaptive-line);padding-bottom:13px}.support-conversation-head h3{margin:4px 0}.support-conversation-head p{margin:0;color:var(--nexus-adaptive-muted)}.support-thread{display:flex;flex-direction:column;gap:11px;max-height:510px;overflow:auto;padding:4px}.support-message{max-width:82%;border:1px solid var(--nexus-adaptive-line);border-radius:14px;padding:12px 14px;background:var(--nexus-adaptive-surface-soft)}.support-message.admin{align-self:flex-end;background:rgba(25,135,230,.11);border-color:rgba(35,151,244,.4)}.support-message.affiliate{align-self:flex-start}.support-message>div{display:flex;justify-content:space-between;gap:14px;font-size:11px}.support-message>div span{color:var(--nexus-adaptive-muted)}.support-message p{margin:8px 0 0;line-height:1.5}.support-reply,.admin-support-reply{display:grid;gap:11px;border-top:1px solid var(--nexus-adaptive-line);padding-top:14px}.support-reply label,.admin-support-reply label,.support-admin-controls label{display:grid;gap:6px;color:var(--nexus-adaptive-muted);font-size:12px;font-weight:800}.support-reply textarea,.admin-support-reply textarea{min-height:92px;resize:vertical}.support-admin-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.support-metrics{margin:0}.support-ticket-alert,.affiliate-support-alert{box-shadow:inset 3px 0 #ff9d28,0 0 20px rgba(255,157,40,.15)!important}.support-ticket-alert-count,.affiliate-support-alert-count{margin-left:auto;min-width:22px;height:22px;border-radius:999px;display:grid;place-items:center;background:#ff8f1f;color:#08101d;font-size:11px;font-style:normal;font-weight:900;animation:supportBadgePulse 1.5s infinite}@keyframes supportBadgePulse{50%{transform:scale(1.08);box-shadow:0 0 0 7px rgba(255,143,31,0)}}
@media(max-width:980px){.support-layout{grid-template-columns:1fr}.support-compose-grid{grid-template-columns:1fr}.support-compose-grid .full{grid-column:auto}.support-ticket-list{max-height:420px}.support-message{max-width:94%}}
/* ===== END V31.14 ===== */
.support-account-action{display:grid;grid-template-columns:1fr auto;gap:6px 14px;align-items:center}.support-account-action strong,.support-account-action span{display:block}.support-account-action button{grid-column:2;grid-row:1/3}
@media(max-width:700px){.support-account-action{grid-template-columns:1fr}.support-account-action button{grid-column:auto;grid-row:auto}}

/* NEXUS V31.15 OPERATIONAL LOGIN COPY */
.login-system-state{display:inline-flex;align-items:center;gap:9px;margin-top:20px;padding:9px 13px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(4,19,45,.34);font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:rgba(255,255,255,.82)}
.login-system-state .access-live-dot{position:static;display:inline-block;flex:0 0 auto}

/* NEXUS V31.15 SECURITY MAIL STATUS */
.security-mail-status{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;padding:18px 20px}
.security-mail-status h3{margin:4px 0 6px}.security-mail-status p{margin:0;color:var(--muted,#68758a)}
.security-mail-status.warning{border-color:rgba(214,92,45,.45);box-shadow:0 0 0 1px rgba(214,92,45,.08) inset}
.admin-user-actions .security-mail-test{border-color:rgba(26,111,208,.28);background:rgba(26,111,208,.08)}
@media(max-width:720px){.security-mail-status{align-items:flex-start;flex-direction:column}}

/* NEXUS V31.16 PROFESSIONAL LOGIN SUPPORT MODAL */
.login-support-trigger{
  width:100%;margin-top:12px;border:1px solid rgba(66,166,226,.38);border-radius:13px;padding:10px 12px;
  display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;text-align:left;
  background:linear-gradient(145deg,rgba(14,52,87,.74),rgba(7,28,51,.82));color:#eaf7ff;cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);transition:border-color .16s ease,background .16s ease,transform .16s ease;
}
.login-support-trigger:hover{border-color:rgba(72,194,255,.72);background:linear-gradient(145deg,rgba(17,69,111,.86),rgba(8,34,61,.94));transform:translateY(-1px)}
.login-support-trigger.hidden{display:none!important}
.login-support-trigger-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;border:1px solid rgba(75,193,255,.5);background:rgba(35,142,211,.13);color:#76dcff;font-size:16px;font-weight:950}
.login-support-trigger-copy{min-width:0;display:block}
.login-support-trigger-copy strong{display:block;font-size:12px;line-height:1.25;color:#f5fbff}
.role-login-card .login-support-trigger-copy small{display:block;margin:3px 0 0;text-align:left;color:#88a7c2;font-size:9px;line-height:1.3;font-weight:600}
.login-support-trigger-arrow{color:#69d4ff;font-size:17px;font-weight:900}

body.login-support-modal-open{overflow:hidden}
.login-support-modal{position:fixed;inset:0;z-index:220;display:grid;place-items:center;padding:22px}
.login-support-modal.hidden{display:none!important}
.login-support-backdrop{position:absolute;inset:0;border:0;background:rgba(1,8,18,.84);backdrop-filter:blur(9px);cursor:default}
.login-support-dialog{position:relative;width:min(590px,100%);max-height:min(760px,calc(100vh - 44px));overflow:auto;border:1px solid rgba(76,167,224,.52);border-radius:24px;background:linear-gradient(155deg,#102a49 0%,#091c33 58%,#07172b 100%);box-shadow:0 34px 110px rgba(0,0,0,.58),inset 0 1px 0 rgba(255,255,255,.04);color:#f6fbff}
.login-support-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px;border-bottom:1px solid rgba(88,154,204,.18);background:rgba(5,20,37,.32)}
.login-support-dialog-header>div{display:flex;flex-direction:column;gap:5px}.login-support-dialog-header strong{font-size:12px;letter-spacing:.02em;color:#dceeff}
.login-support-close{width:36px;height:36px;border:1px solid rgba(98,157,202,.34);border-radius:11px;background:rgba(7,28,50,.78);color:#b9d4e8;font-size:22px;line-height:1;cursor:pointer;transition:.15s}
.login-support-close:hover{border-color:#5fd6ff;color:#fff;background:rgba(18,67,104,.85)}
.login-support-close:disabled{opacity:.4;cursor:not-allowed}
.login-support-dialog-body{padding:26px 28px 28px}
.login-support-dialog-icon{width:58px;height:58px;border-radius:17px;display:grid;place-items:center;margin:0 auto 14px;border:1px solid rgba(75,203,255,.62);background:linear-gradient(145deg,#1167a8,#123b68);box-shadow:0 14px 34px rgba(0,123,191,.25);font-size:23px;font-weight:950}
.login-support-dialog-heading{text-align:center;margin-bottom:21px}.login-support-dialog-heading h2{font-size:25px;line-height:1.15;margin:0 0 9px}.login-support-dialog-heading p{max-width:430px;margin:0 auto;color:#91adc5;font-size:12px;line-height:1.55}
.login-support-form{display:grid;gap:14px}.login-support-form label{display:flex;flex-direction:column;gap:7px;color:#b7cce0;font-size:10px;font-weight:800;letter-spacing:.02em}
.login-support-form input,.login-support-form textarea{width:100%;box-sizing:border-box;border:1px solid #315576;border-radius:12px;background:#06172b;color:#f7fbff;padding:13px 14px;font:inherit;outline:none;transition:border-color .15s ease,box-shadow .15s ease}
.login-support-form input[readonly]{color:#9eb7ca;background:#091a2e}
.login-support-form textarea{min-height:132px;resize:vertical;line-height:1.5}
.login-support-form input:focus,.login-support-form textarea:focus{border-color:#46c8ff;box-shadow:0 0 0 3px rgba(70,200,255,.12)}
.login-support-honeypot{position:absolute!important;left:-9999px!important;opacity:0!important;pointer-events:none!important}
.login-support-dialog-actions{display:grid;grid-template-columns:132px 1fr;gap:10px;margin-top:2px}
.login-support-cancel{border:1px solid #355775;border-radius:12px;background:#091c32;color:#a9c2d7;font-weight:850;cursor:pointer;padding:12px 14px}
.login-support-cancel:hover{border-color:#5082a8;color:#eef8ff}.login-support-cancel:disabled{opacity:.45;cursor:not-allowed}
.login-support-dialog .role-login-btn.login-support-submit{width:100%;min-height:45px;margin:0;animation:none!important}
.login-support-dialog .login-status{margin:0}
@media(max-width:620px){
  .login-support-modal{padding:12px;align-items:end}
  .login-support-dialog{width:100%;max-height:calc(100vh - 24px);border-radius:22px 22px 16px 16px}
  .login-support-dialog-body{padding:22px 18px 20px}
  .login-support-dialog-actions{grid-template-columns:1fr}
  .login-support-cancel{order:2}.login-support-submit{order:1}
}


/* ===== LORMAG NEXUS V31.18 TICKET RESOLUTION ===== */
.support-admin-action-row{display:grid;grid-template-columns:minmax(190px,1fr) minmax(230px,1.1fr);gap:12px;align-items:stretch;margin-top:12px}
.support-send-button{min-height:58px}
.support-resolve-button{display:flex;align-items:center;justify-content:center;gap:11px;min-height:58px;border:1px solid rgba(42,190,121,.68);border-radius:12px;background:linear-gradient(135deg,#168e5b,#2cc57e);color:#fff;padding:10px 15px;cursor:pointer;box-shadow:0 9px 24px rgba(24,151,94,.22);transition:transform .16s ease,box-shadow .16s ease,filter .16s ease}
.support-resolve-button:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(24,151,94,.3);filter:brightness(1.04)}
.support-resolve-button>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.2);font-size:17px;font-weight:900}
.support-resolve-button>div{display:grid;gap:2px;text-align:left}.support-resolve-button strong{font-size:13px}.support-resolve-button small{font-size:10px;color:rgba(255,255,255,.82)}
.support-resolved-confirmation{display:flex;align-items:center;justify-content:center;gap:11px;min-height:58px;border:1px solid rgba(42,190,121,.38);border-radius:12px;background:rgba(42,190,121,.12);color:#2cbd7c;padding:10px 15px}
.support-resolved-confirmation>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(42,190,121,.18);font-size:17px;font-weight:900}.support-resolved-confirmation>div{display:grid;gap:2px}.support-resolved-confirmation strong{font-size:13px}.support-resolved-confirmation small{font-size:10px;color:var(--nexus-adaptive-muted)}
.support-mail-note{margin:9px 0 0;color:var(--nexus-adaptive-muted);font-size:11px}
@media(max-width:760px){.support-admin-action-row{grid-template-columns:1fr}.support-resolve-button,.support-resolved-confirmation{width:100%}}
/* ===== END LORMAG NEXUS V31.18 ===== */


/* ===== LORMAG NEXUS V31.19 — PROFESSIONAL TICKET UI ===== */
.support-page-admin-pro{gap:20px}.support-layout-pro{grid-template-columns:minmax(320px,400px) minmax(0,1fr);gap:20px}.support-ticket-list-pro{padding:16px}.support-ticket-list-pro .panel-head.compact,.support-thread-wrap .panel-head.compact,.support-management-panel .panel-head.compact{padding-bottom:10px;border-bottom:1px solid var(--nexus-adaptive-line)}
.support-ticket-card-pro{padding:15px 16px;border-radius:16px;gap:8px;background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.015));transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.support-ticket-card-pro:hover{transform:translateY(-1px)}
.support-ticket-card-meta{display:flex;flex-wrap:wrap;gap:8px 10px}.support-ticket-card-meta em{font-style:normal;font-size:11px;color:var(--nexus-adaptive-muted);padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.04)}
.support-admin-detail{grid-template-rows:auto auto auto auto;gap:16px;padding:18px}.support-conversation-head.pro{padding-bottom:16px}.support-head-badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:8px}.support-source-badge{display:inline-flex;align-items:center;padding:6px 10px;border-radius:999px;background:rgba(34,152,243,.12);border:1px solid rgba(34,152,243,.28);font-size:11px;font-weight:800;color:#70c6ff;letter-spacing:.04em;text-transform:uppercase}
.support-detail-meta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.support-detail-meta-card{border:1px solid var(--nexus-adaptive-line);background:var(--nexus-adaptive-surface-soft);border-radius:14px;padding:14px;display:grid;gap:5px}.support-detail-meta-card span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--nexus-adaptive-muted);font-weight:800}.support-detail-meta-card strong{font-size:14px;line-height:1.35}.support-detail-meta-card small{color:var(--nexus-adaptive-muted);font-size:11px}
.support-thread-wrap{border:1px solid var(--nexus-adaptive-line);background:rgba(6,20,42,.28);border-radius:16px;padding:14px}.support-thread{max-height:420px;padding:6px 2px 2px}.support-message{position:relative;padding:14px 16px 14px 18px;border-radius:16px}.support-message.admin{background:linear-gradient(180deg,rgba(34,152,243,.15),rgba(34,152,243,.07));border-color:rgba(34,152,243,.35)}.support-message.affiliate{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.025))}.support-message:before{content:"";position:absolute;top:14px;left:-6px;width:10px;height:10px;border-radius:50%;background:#6f839b}.support-message.admin:before{left:auto;right:-6px;background:#2da8ff}.support-message>div strong{font-size:12px}.support-message>div span{font-size:11px}
.support-account-action.pro{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 18px;border-radius:16px;background:linear-gradient(90deg,rgba(255,157,40,.08),rgba(255,157,40,.04));border:1px solid rgba(255,157,40,.18)}.support-account-action.pro>div{display:grid;gap:4px}.support-account-action.pro strong{font-size:14px}.support-account-action.pro span{color:var(--nexus-adaptive-muted);font-size:12px}
.support-management-panel{padding-top:0;border-top:none;gap:14px}.support-admin-controls-pro{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.support-admin-action-row.pro{display:grid;grid-template-columns:minmax(240px,1fr) minmax(240px,1fr);gap:14px;align-items:stretch}.support-send-button,.support-resolve-button{display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:72px;border-radius:14px;padding:14px 16px}.support-send-button{background:linear-gradient(135deg,#1388f0,#2ca7ff);border:none}.support-send-button span,.support-resolve-button strong{font-weight:900}.support-send-button small,.support-resolve-button small{display:block;font-size:11px;line-height:1.4;opacity:.92;font-weight:700}
.support-resolve-button{width:100%;border:none;background:linear-gradient(135deg,#25a95e,#31c97a);color:#fff;cursor:pointer;text-align:left}.support-resolve-button>span{width:42px;height:42px;border-radius:12px;background:rgba(255,255,255,.16);display:grid;place-items:center;font-size:24px;font-weight:900;flex:0 0 auto}.support-resolve-button>div{display:grid;gap:4px}.support-resolved-confirmation{display:flex;align-items:center;gap:14px;border-radius:14px;padding:14px 16px;background:linear-gradient(135deg,rgba(49,201,122,.14),rgba(49,201,122,.07));border:1px solid rgba(49,201,122,.3)}.support-resolved-confirmation>span{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;background:#2fb86f;color:#fff;font-size:22px;font-weight:900}.support-resolved-confirmation small{display:block;color:var(--nexus-adaptive-muted);margin-top:3px}
.support-mail-note.pro{margin:0;color:var(--nexus-adaptive-muted);font-size:12px;background:rgba(255,255,255,.025);border:1px dashed rgba(255,255,255,.08);border-radius:12px;padding:11px 12px}
.support-metrics-pro>div{border-radius:16px;padding:18px 16px}
@media(max-width:1180px){.support-detail-meta-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.support-admin-action-row.pro{grid-template-columns:1fr}.support-layout-pro{grid-template-columns:1fr}}
@media(max-width:720px){.support-detail-meta-grid,.support-admin-controls-pro{grid-template-columns:1fr}.support-account-action.pro{flex-direction:column;align-items:flex-start}}


/* ===== LORMAG NEXUS V31.21 — SUPPORT TICKET CONTRAST FIX ===== */
.support-layout-pro .panel,
.support-layout-pro .support-ticket-list-pro,
.support-layout-pro .support-admin-detail{background:linear-gradient(180deg,rgba(7,19,41,.92),rgba(4,14,31,.9));backdrop-filter:blur(14px)}
.support-ticket-card-pro{position:relative;overflow:hidden;border:1px solid rgba(80,140,220,.16);box-shadow:0 10px 26px rgba(0,0,0,.18)}
.support-ticket-card-pro.active{background:linear-gradient(180deg,rgba(11,56,105,.46),rgba(8,31,62,.72));border-color:rgba(57,150,255,.7);box-shadow:0 0 0 1px rgba(57,150,255,.18),0 18px 32px rgba(0,0,0,.24)}
.support-ticket-card-pro b,.support-ticket-card-pro strong,.support-ticket-card-pro small,.support-ticket-card-pro em{position:relative;z-index:1}
.support-detail-meta-card{background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.support-detail-meta-card strong{color:#f4f8ff}.support-detail-meta-card small,.support-detail-meta-card span{color:#9fb0c5}
.support-thread-wrap{background:linear-gradient(180deg,rgba(5,16,35,.65),rgba(5,16,35,.42))}
.support-message{max-width:min(760px,92%);box-shadow:0 10px 18px rgba(0,0,0,.12)}
.support-message.affiliate{border:1px solid rgba(255,255,255,.08)}
.support-message.admin{margin-left:auto}
.support-admin-controls-pro label,
.support-management-panel label{display:grid;gap:8px;color:#aebcd0;font-size:12px;font-weight:800;letter-spacing:.03em}
.support-management-panel select,
.support-management-panel textarea{background:rgba(7,19,41,.88)!important;border:1px solid rgba(122,154,198,.22)!important;color:#eef5ff!important;border-radius:14px!important;box-shadow:none!important}
.support-management-panel textarea::placeholder{color:#7f93ab}
.support-management-panel select:focus,
.support-management-panel textarea:focus{outline:none;border-color:rgba(53,157,255,.78)!important;box-shadow:0 0 0 3px rgba(41,132,255,.14)!important}
.support-admin-action-row.pro{align-items:stretch}
.support-send-button,.support-resolve-button{flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;line-height:1.2}
.support-send-button span,.support-resolve-button strong{display:block;font-size:19px;line-height:1.15}
.support-send-button small,.support-resolve-button small{display:block;max-width:100%;white-space:normal;opacity:.96;margin-top:4px}
.support-send-button{box-shadow:0 10px 22px rgba(19,136,240,.22)}
.support-resolve-button{box-shadow:0 10px 22px rgba(49,201,122,.18)}
.support-resolve-button>span{margin-bottom:2px}
.support-mail-note.pro{color:#9db0c8;background:rgba(9,24,48,.72);border-color:rgba(122,154,198,.18)}
@media (max-width:860px){.support-send-button span,.support-resolve-button strong{font-size:17px}.support-send-button,.support-resolve-button{min-height:84px}}


/* ===== LORMAG NEXUS V31.22 — OPERATOR ORDER REVIEW ===== */
.approval-order-review-card{width:min(980px,calc(100vw - 36px));max-height:calc(100vh - 36px);overflow:auto;padding:28px;background:linear-gradient(180deg,#fff,#f7f9fc)}
.approval-review-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-right:44px}.approval-review-heading h2{margin:7px 0 4px}.approval-review-heading p{margin:0;color:#68717e}.approval-review-ready{display:flex;align-items:center;gap:9px;border:1px solid #bfead7;background:#eaf9f2;color:#087a50;border-radius:999px;padding:9px 13px;white-space:nowrap}.approval-review-ready>span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#20b978;color:#fff;font-weight:900}.approval-review-ready strong{font-size:12px}
.approval-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:22px}.approval-review-section{border:1px solid #dde3eb;border-radius:18px;background:#fff;padding:16px;box-shadow:0 8px 24px rgba(18,38,63,.055)}.approval-products-section{grid-column:1/-1}.approval-review-section-title{display:flex;align-items:center;gap:9px;padding-bottom:11px;margin-bottom:11px;border-bottom:1px solid #edf0f4}.approval-review-section-title span{width:27px;height:27px;border-radius:9px;display:grid;place-items:center;background:#eaf4ff;color:#0b7bdc;font-size:10px;font-weight:900}.approval-review-section-title strong{font-size:13px;color:#17202d}
.approval-confirm-summary{margin:0}.approval-customer-summary,.approval-delivery-summary,.approval-notes-summary{grid-template-columns:1fr 1fr}.approval-confirm-summary>div{min-height:62px}.approval-confirm-summary>div.wide{grid-column:1/-1}.approval-confirm-summary span{font-size:9px;font-weight:800}.approval-confirm-summary strong{font-size:13px;line-height:1.35;color:#18212e}
.approval-review-products{display:grid;gap:9px}.approval-review-product-row{display:grid;grid-template-columns:38px minmax(220px,1fr) 90px 125px 125px;gap:12px;align-items:center;border:1px solid #e4e8ee;border-radius:13px;padding:11px 13px;background:#fafbfd}.approval-review-product-index{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;background:#eaf4ff;color:#0a7bd8;font-size:11px;font-weight:900}.approval-review-product-name{display:grid;gap:3px}.approval-review-product-name strong{font-size:13px}.approval-review-product-name small{font-size:10px;color:#7b8490}.approval-review-product-row>div:not(.approval-review-product-index):not(.approval-review-product-name){display:grid;gap:4px}.approval-review-product-row>div span{font-size:9px;color:#7b8490;font-weight:800;text-transform:uppercase}.approval-review-product-row>div strong{font-size:12px;color:#1c2531}.approval-review-total{display:flex;align-items:center;justify-content:flex-end;gap:18px;margin-top:12px;padding:13px 15px;border-radius:13px;background:linear-gradient(135deg,#0d8059,#16ad78);color:#fff}.approval-review-total span{font-size:10px;letter-spacing:.1em;font-weight:900}.approval-review-total strong{font-size:24px}
.approval-review-actions{margin-top:18px;padding-top:16px;border-top:1px solid #e1e6ed}.approval-review-actions .approval-confirm-submit{min-width:260px;display:flex;align-items:center;justify-content:center;gap:11px;padding:13px 18px;text-align:left}.approval-review-actions .approval-confirm-submit>span{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.18);font-size:18px}.approval-review-actions .approval-confirm-submit>div{display:grid;gap:2px}.approval-review-actions .approval-confirm-submit strong{font-size:15px}.approval-review-actions .approval-confirm-submit small{font-size:10px;opacity:.88}
@media(max-width:780px){.approval-order-review-card{padding:20px}.approval-review-heading{display:grid}.approval-review-ready{justify-self:start}.approval-review-grid{grid-template-columns:1fr}.approval-products-section{grid-column:auto}.approval-customer-summary,.approval-delivery-summary,.approval-notes-summary{grid-template-columns:1fr}.approval-confirm-summary>div.wide{grid-column:auto}.approval-review-product-row{grid-template-columns:36px 1fr}.approval-review-product-row>div:not(.approval-review-product-index):not(.approval-review-product-name){grid-column:2;grid-template-columns:120px 1fr}.approval-review-actions{flex-direction:column-reverse}.approval-review-actions button,.approval-review-actions .approval-confirm-submit{width:100%;min-width:0}}

/* ===== LORMAG NEXUS — APPROVAZIONE: LOGISTICA E SMS NEL PASSAGGIO FINALE ===== */
.approval-optional-card{width:min(920px,100%);max-height:calc(100vh - 36px);overflow:auto;padding:27px}.approval-optional-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-right:30px}.approval-optional-heading h2{margin:7px 0 5px;font-size:25px}.approval-optional-heading p{max-width:650px;margin:0;color:#66717f;font-size:12px;line-height:1.55}.approval-optional-badge{flex:0 0 auto;padding:8px 11px;border:1px solid #e5bc55;border-radius:999px;background:#fff8df;color:#9b6800;font-size:9px;font-weight:900;letter-spacing:.09em}.approval-optional-logistics,.approval-optional-sms{margin-top:18px;border:1px solid #e1e6ed;border-radius:16px;padding:16px;background:#fafbfd}.approval-optional-logistics label{display:grid;gap:7px}.approval-optional-logistics label>span{color:#5f6976;font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}.approval-optional-logistics textarea{width:100%;min-height:112px;resize:vertical;box-sizing:border-box;border:1px solid #cfd6df;border-radius:12px;padding:13px 14px;background:#fff;color:#17202d;font:inherit;font-size:13px;line-height:1.5;outline:none}.approval-optional-logistics textarea:focus{border-color:#249ce8;box-shadow:0 0 0 4px rgba(36,156,232,.12)}.approval-optional-logistics small{color:#7e8792;font-size:10px}.approval-optional-hint{margin:-2px 0 11px;color:#697482;font-size:11px;line-height:1.5}.approval-optional-card .operator-sms-panel{margin-top:0}.approval-optional-card .operator-sms-history{display:none}.approval-optional-actions{display:flex;align-items:stretch;justify-content:flex-end;gap:9px;margin-top:18px;padding-top:16px;border-top:1px solid #e1e6ed}.approval-optional-actions>button{border:1px solid #d6dae0;border-radius:12px;padding:11px 15px;background:#f2f4f6;color:#222;font-weight:900;cursor:pointer}.approval-optional-actions .approval-optional-skip{border-color:#e8c36a;background:#fff8e5;color:#8b6300}.approval-optional-actions .approval-optional-submit{min-width:285px;display:flex;align-items:center;justify-content:center;gap:11px;border-color:#1dbb7c;background:linear-gradient(135deg,#0d8c5e,#26cf8d);color:#fff;text-align:left}.approval-optional-submit>span{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(255,255,255,.18);font-size:18px}.approval-optional-submit>div{display:grid;gap:2px}.approval-optional-submit strong{font-size:14px}.approval-optional-submit small{font-size:9px;opacity:.88}.approval-optional-card .outcome-close{color:#333;background:#edf0f4}
@media(max-width:780px){.approval-optional-card{padding:20px}.approval-optional-heading{display:grid;padding-right:24px}.approval-optional-badge{justify-self:start}.approval-optional-actions{flex-direction:column-reverse}.approval-optional-actions>button,.approval-optional-actions .approval-optional-submit{width:100%;min-width:0}.approval-optional-card .operator-sms-grid{grid-template-columns:1fr}.approval-optional-card .operator-sms-message{grid-column:1}}
/* ===== END APPROVAZIONE: LOGISTICA E SMS NEL PASSAGGIO FINALE ===== */

/* ===== LORMAG NEXUS V31.23 — NOTIFICATION CENTER ===== */
.notification-bell{position:relative;width:46px;height:46px;border:1px solid var(--nexus-adaptive-line);border-radius:14px;background:var(--nexus-adaptive-surface-soft);color:var(--nexus-adaptive-text);display:grid;place-items:center;cursor:pointer;font-size:20px}.notification-bell:hover,.notification-bell.has-unread{border-color:#2f9dff;box-shadow:0 0 0 3px rgba(47,157,255,.12)}.notification-bell b{position:absolute;top:-7px;right:-7px;min-width:23px;height:23px;padding:0 5px;border-radius:999px;background:#ef3e55;color:#fff;display:grid;place-items:center;font-size:11px;border:2px solid #08101e}.notification-backdrop{position:fixed;inset:0;background:rgba(0,8,20,.5);backdrop-filter:blur(3px);z-index:2998}.notification-backdrop.hidden{display:none}.notification-center{position:fixed;top:0;right:0;width:min(520px,96vw);height:100vh;background:linear-gradient(180deg,#0a1830,#061020);border-left:1px solid rgba(106,151,211,.2);box-shadow:-24px 0 70px rgba(0,0,0,.42);z-index:2999;transform:translateX(105%);transition:transform .25s ease;overflow:hidden}.notification-center.open{transform:translateX(0)}#notificationCenterContent{height:100%;display:grid;grid-template-rows:auto auto minmax(0,1fr)}.notification-center-head{display:flex;align-items:center;justify-content:space-between;padding:22px 22px 16px;border-bottom:1px solid rgba(109,151,204,.16)}.notification-center-head h3{margin:3px 0 0;font-size:24px}.notification-center-head button{width:38px;height:38px;border-radius:12px;border:1px solid rgba(132,164,205,.18);background:rgba(255,255,255,.04);color:#dce8f8;font-size:24px;cursor:pointer}.notification-center-tools{padding:14px 18px;border-bottom:1px solid rgba(109,151,204,.14);display:grid;gap:12px}.notification-filters{display:flex;gap:7px;overflow-x:auto;padding-bottom:3px}.notification-filters button,.notification-mark-all{white-space:nowrap;border:1px solid rgba(116,151,198,.17);border-radius:999px;background:rgba(255,255,255,.035);color:#aebfd4;padding:7px 11px;font-size:11px;font-weight:800;cursor:pointer}.notification-filters button.active{background:rgba(46,151,255,.17);border-color:rgba(46,151,255,.48);color:#79c4ff}.notification-mark-all{justify-self:start;border-radius:10px}.notification-list{overflow:auto;padding:14px 16px 30px;display:grid;gap:10px;align-content:start}.notification-item{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;padding:14px;border-radius:16px;border:1px solid rgba(119,151,193,.15);background:rgba(255,255,255,.035);position:relative}.notification-item.unread{background:linear-gradient(180deg,rgba(35,132,229,.13),rgba(17,68,123,.08));border-color:rgba(47,157,255,.35)}.notification-item.priority-critical{border-left:4px solid #ef3e55}.notification-item.priority-priority{border-left:4px solid #ff8f32}.notification-item.priority-important{border-left:4px solid #f2c14f}.notification-item-icon{width:42px;height:42px;border-radius:13px;background:rgba(255,255,255,.06);display:grid;place-items:center;font-size:20px}.notification-item-body{min-width:0}.notification-item-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.notification-item-top strong{font-size:14px;color:#f2f7ff}.notification-item-top span{font-size:10px;color:#8296ae;white-space:nowrap}.notification-item p{margin:7px 0 10px;color:#b5c3d5;font-size:12px;line-height:1.5}.notification-item-meta{display:flex;gap:6px}.notification-item-meta em{font-style:normal;font-size:9px;text-transform:uppercase;letter-spacing:.07em;border-radius:999px;padding:4px 7px;background:rgba(255,255,255,.045);color:#8fa4bd}.notification-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px}.notification-actions button{border:1px solid rgba(71,150,236,.25);border-radius:9px;background:rgba(34,137,235,.08);color:#8fcaff;padding:6px 9px;font-size:10px;font-weight:800;cursor:pointer}.notification-empty{padding:60px 20px;text-align:center;color:#8fa2b9;display:grid;gap:8px;place-items:center}.notification-empty span{font-size:34px}.notification-empty strong{color:#dce7f6}.notification-empty p{margin:0}.notification-toast-stack{position:fixed;right:22px;bottom:22px;z-index:3100;display:grid;gap:10px;width:min(380px,calc(100vw - 32px))}.notification-toast{transform:translateY(18px);opacity:0;transition:.22s ease;border:1px solid rgba(87,151,222,.3);border-radius:16px;background:linear-gradient(135deg,#0c203f,#08162c);box-shadow:0 18px 45px rgba(0,0,0,.36);color:#fff;padding:14px;display:grid;grid-template-columns:40px 1fr;gap:11px;text-align:left;cursor:pointer}.notification-toast.show{transform:translateY(0);opacity:1}.notification-toast>span{font-size:24px}.notification-toast div{display:grid;gap:4px}.notification-toast small{color:#a8b8cc;line-height:1.35}.notification-admin-page{display:grid;gap:18px}.notification-compose-panel{max-width:1050px}.notification-compose-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:end}.notification-compose-grid label{display:grid;gap:7px;color:var(--nexus-adaptive-muted);font-size:12px;font-weight:800}.notification-compose-grid .full{grid-column:1/-1}.notification-compose-grid input,.notification-compose-grid select,.notification-compose-grid textarea{width:100%;box-sizing:border-box;border:1px solid var(--nexus-adaptive-line);background:var(--nexus-adaptive-input);color:var(--nexus-adaptive-text);border-radius:12px;padding:12px}.notification-compose-grid textarea{min-height:150px;resize:vertical}.notification-publish-button{min-height:44px}@media(max-width:900px){.notification-compose-grid{grid-template-columns:1fr}.notification-compose-grid .full{grid-column:auto}.notification-center{width:100vw}.notification-toast-stack{right:16px;bottom:16px}}
/* ===== END LORMAG NEXUS V31.23 ===== */

/* ===== LORMAG NEXUS V31.24 — TICKET WHITE THEME + CLOSED NOTIFICATION DRAWER ===== */
/* Il pannello notifiche chiuso non deve lasciare filtri o pulsanti visibili nella pagina. */
#notificationCenter:not(.open){display:none!important}
#notificationCenter.open{display:block!important}
#notificationBackdrop.hidden{display:none!important}

/* Tema bianco limitato esclusivamente alle sezioni Ticket CEO e Affiliato. */
.support-page,
.support-page .panel,
.support-page .support-compose,
.support-page .support-ticket-list,
.support-page .support-conversation,
.support-page .support-thread-wrap,
.support-page .support-management-panel{
  background:#fff!important;
  color:#172033!important;
}
.support-page .panel,
.support-page .support-ticket-list,
.support-page .support-conversation,
.support-page .support-thread-wrap,
.support-page .support-management-panel,
.support-page .support-ticket-card,
.support-page .support-ticket-card-pro{
  border-color:#dce4ee!important;
  box-shadow:0 8px 24px rgba(15,23,42,.07)!important;
}
.support-page h2,.support-page h3,.support-page h4,
.support-page strong,.support-page b,
.support-page .support-ticket-card,
.support-page .support-ticket-card-pro,
.support-page .support-message p{
  color:#172033!important;
}
.support-page p,.support-page small,.support-page label,
.support-page .panel-head span,.support-page .support-conversation-head p,
.support-page .support-ticket-card small,.support-page .support-ticket-card-pro small,
.support-page .support-detail-meta-card span,.support-page .support-detail-meta-card small,
.support-page .support-message>div span{
  color:#667085!important;
}
.support-page .eyebrow{color:#1677d2!important}
.support-page input,.support-page select,.support-page textarea,
.support-page .support-compose-grid input,.support-page .support-compose-grid select,
.support-page .support-compose-grid textarea,.support-page .support-reply textarea,
.support-page .admin-support-reply textarea,.support-page .support-admin-controls select{
  background:#fff!important;
  color:#172033!important;
  border:1px solid #cfd8e3!important;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.03)!important;
}
.support-page input::placeholder,.support-page textarea::placeholder{color:#98a2b3!important}
.support-page input:focus,.support-page select:focus,.support-page textarea:focus{
  border-color:#268cf2!important;
  box-shadow:0 0 0 3px rgba(38,140,242,.14)!important;
  outline:none!important;
}
.support-page .support-ticket-card,
.support-page .support-ticket-card-pro{
  background:#fff!important;
}
.support-page .support-ticket-card:hover,
.support-page .support-ticket-card.active,
.support-page .support-ticket-card-pro:hover,
.support-page .support-ticket-card-pro.active{
  background:#f3f8ff!important;
  border-color:#268cf2!important;
}
.support-page .support-message{background:#f7f9fc!important;border-color:#dce4ee!important}
.support-page .support-message.admin{background:#eaf4ff!important;border-color:#b9d9fb!important}
.support-page .support-detail-meta-card{background:#f8fafc!important;border-color:#dce4ee!important}
.support-page .support-thread,.support-page .support-conversation-head,
.support-page .support-reply,.support-page .admin-support-reply,
.support-page .panel-head.compact{border-color:#e3e9f0!important}

/* Solo miglioramento grafico del pulsante esistente, senza cambiare funzione o flusso. */
.support-page .support-resolve-button{
  min-height:46px!important;
  padding:0 18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  border:0!important;
  border-radius:11px!important;
  background:#16a36a!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(22,163,106,.22)!important;
  cursor:pointer!important;
}
.support-page .support-resolve-button:hover{background:#11875a!important}
.support-page .support-resolve-button span,
.support-page .support-resolve-button strong{color:#fff!important;font-size:13px!important;font-weight:900!important}
/* ===== END LORMAG NEXUS V31.24 ===== */

/* ===== LORMAG NEXUS V31.25 — TICKET DARK SURFACE CONTRAST ===== */
/* Correzione limitata ai blocchi scuri della sezione Ticket. */
.support-page .admin-users-head{
  background:linear-gradient(135deg,#203b5d,#17304f)!important;
  border-color:#315579!important;
}
.support-page .admin-users-head .eyebrow{color:#68bdff!important}
.support-page .admin-users-head h2{color:#ffffff!important}
.support-page .admin-users-head p{color:#cbd7e6!important}
.support-page .support-metrics-pro>div{
  background:linear-gradient(180deg,#0a2342,#071a34)!important;
  border-color:#23496f!important;
}
.support-page .support-metrics-pro>div span,
.support-page .support-metrics-pro>div small{
  color:#b8c8da!important;
}
.support-page .support-metrics-pro>div strong{
  color:#ffffff!important;
}

/* Documentazione API/Postback: solo sezione Affiliato > API & Postback. */
.affiliate-api-page{display:grid;gap:18px}
.affiliate-api-page .affiliate-section-head{align-items:flex-start}
.affiliate-api-page .affiliate-section-head p{margin:6px 0 0;color:var(--nexus-adaptive-muted)}
.affiliate-doc-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}
.affiliate-doc-actions a,.affiliate-doc-link{
  display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 14px;
  border-radius:11px;border:1px solid rgba(38,140,242,.28);background:rgba(38,140,242,.09);
  color:#268cf2;text-decoration:none;font-size:12px;font-weight:900
}
.affiliate-api-credential-card>code{display:block;margin:5px 0 14px;padding:11px 12px;border-radius:10px;background:rgba(38,140,242,.08);word-break:break-all}
.affiliate-api-document,.affiliate-postback-document{display:grid;gap:18px}
.affiliate-api-guide-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.affiliate-api-guide-grid article{display:grid;grid-template-columns:34px 1fr;gap:11px;padding:15px;border:1px solid var(--nexus-adaptive-line);border-radius:14px;background:var(--nexus-adaptive-surface-soft)}
.affiliate-api-guide-grid article>span{width:30px;height:30px;border-radius:9px;background:#268cf2;color:#fff;display:grid;place-items:center;font-weight:900}
.affiliate-api-guide-grid h4{margin:0 0 6px}.affiliate-api-guide-grid p{margin:6px 0 0;color:var(--nexus-adaptive-muted);line-height:1.5}.affiliate-api-guide-grid code{display:block;word-break:break-all;color:#1677d2}
.affiliate-code-block{border:1px solid var(--nexus-adaptive-line);border-radius:14px;overflow:hidden;background:var(--nexus-adaptive-surface-soft)}
.affiliate-code-block>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 13px;border-bottom:1px solid var(--nexus-adaptive-line)}
.affiliate-code-block button{border:1px solid rgba(38,140,242,.28);background:rgba(38,140,242,.08);color:#268cf2;border-radius:8px;padding:6px 10px;font-weight:800;cursor:pointer}
.affiliate-code-block pre{margin:0;padding:16px;overflow:auto;white-space:pre-wrap;word-break:break-word;line-height:1.55;font-size:12px;color:var(--nexus-adaptive-text)}

/* ===== LORMAG NEXUS V89 — PRESENZE, TURNI E PAUSE ===== */
#nav button.attendance-locked{opacity:.42;cursor:not-allowed;filter:grayscale(.45)}
.attendance-page{display:grid;gap:18px;color:var(--nexus-adaptive-text)}.attendance-head{display:flex;align-items:center;justify-content:space-between;gap:18px}.attendance-head h2{margin:5px 0 7px;font-size:31px}.attendance-head p{margin:0;color:var(--nexus-adaptive-muted)}
.attendance-policy{border:1px solid var(--nexus-adaptive-line);border-radius:16px;background:var(--nexus-adaptive-surface);padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:16px;box-shadow:0 12px 34px rgba(0,0,0,.08)}.attendance-policy>div{display:flex;align-items:center;gap:12px}.attendance-policy b{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-size:20px}.attendance-policy span{display:grid;gap:3px}.attendance-policy strong{font-size:14px}.attendance-policy small{color:var(--nexus-adaptive-muted);line-height:1.45}.attendance-policy button,.attendance-policy em{border:0;border-radius:11px;padding:10px 14px;font-size:11px;font-weight:900;font-style:normal}.attendance-policy.success{border-color:rgba(36,181,119,.55);background:rgba(36,181,119,.09)}.attendance-policy.success b{background:#24b577;color:white}.attendance-policy.warning{border-color:rgba(235,174,43,.62);background:rgba(235,174,43,.11)}.attendance-policy.warning b{background:#e5a925;color:#241900}.attendance-policy.warning button{background:#f1bd3e;color:#211700;cursor:pointer}.attendance-policy.critical{border-color:rgba(239,62,85,.68);background:rgba(239,62,85,.1)}.attendance-policy.critical b{background:#ef3e55;color:#fff}.attendance-policy.critical button{background:#ef3e55;color:#fff;cursor:pointer}.attendance-policy.neutral b{background:rgba(42,153,111,.16);color:#2a996f}
.attendance-guidance{display:grid;grid-template-columns:minmax(270px,.8fr) minmax(520px,1.2fr);gap:18px;border:1px solid rgba(48,143,228,.35);border-radius:21px;padding:21px;background:linear-gradient(135deg,rgba(20,117,205,.16),rgba(21,186,139,.08)),var(--nexus-adaptive-surface)}.attendance-guidance h2{margin:6px 0 8px;font-size:24px}.attendance-guidance p{margin:0;color:var(--nexus-adaptive-muted);line-height:1.55}.attendance-guidance-metrics{display:grid;grid-template-columns:repeat(5,minmax(100px,1fr));gap:9px}.attendance-guidance-metrics article{border:1px solid var(--nexus-adaptive-line);border-radius:14px;background:var(--nexus-adaptive-surface);padding:13px;display:grid;gap:5px}.attendance-guidance-metrics span{font-size:9px;color:var(--nexus-adaptive-muted);text-transform:uppercase;font-weight:850}.attendance-guidance-metrics strong{font-size:20px}.attendance-guidance-metrics small{font-size:9px;color:var(--nexus-adaptive-muted)}
.attendance-shift-card{display:grid;grid-template-columns:auto minmax(240px,1fr) auto;align-items:center;gap:18px;border:1px solid rgba(42,174,112,.45);border-radius:20px;background:linear-gradient(135deg,rgba(23,145,91,.15),rgba(11,94,67,.08)),var(--nexus-adaptive-surface);padding:20px}.attendance-shift-orb{width:58px;height:58px;border-radius:18px;background:#1daf71;color:#fff;display:grid;place-items:center;font-size:25px;box-shadow:0 0 0 8px rgba(29,175,113,.1)}.attendance-shift-card h3{margin:5px 0;font-size:21px}.attendance-shift-card p,.attendance-shift-card small{margin:0;color:var(--nexus-adaptive-muted)}.attendance-start-shift{position:relative;overflow:hidden;min-width:210px;border:0;border-radius:15px;background:linear-gradient(135deg,#168e5c,#27c37f);color:#fff;padding:16px 20px;font-weight:950;font-size:14px;cursor:pointer;box-shadow:0 12px 32px rgba(26,174,111,.28);animation:attendancePulseV89 1.7s infinite}.attendance-start-shift i{display:inline-block;width:8px;height:8px;border-radius:50%;background:#d9ffe9;margin-right:8px}.attendance-start-shift:disabled{animation:none;opacity:.48;cursor:not-allowed;box-shadow:none}
@keyframes attendancePulseV89{0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(32,191,123,.35)}50%{transform:scale(1.018);box-shadow:0 0 0 10px rgba(32,191,123,0)}}
.attendance-shift-card.active{grid-template-columns:auto minmax(190px,.7fr) minmax(360px,1.2fr) auto}.attendance-shift-card.on-break{border-color:rgba(238,177,44,.6);background:linear-gradient(135deg,rgba(238,177,44,.16),rgba(138,91,8,.08)),var(--nexus-adaptive-surface)}.attendance-shift-card.on-break .attendance-shift-orb{background:#e3a622;color:#241800;box-shadow:0 0 0 8px rgba(227,166,34,.1)}.attendance-shift-copy{display:grid;gap:3px}.attendance-shift-copy>span{justify-self:start;border-radius:999px;background:#126c49;color:#fff;padding:5px 8px;font-size:10px;letter-spacing:.08em;font-weight:900}.attendance-shift-card.on-break .attendance-shift-copy>span{background:#f2c14f;color:#241900}.attendance-shift-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.attendance-shift-metrics article{border:1px solid var(--nexus-adaptive-line);border-radius:13px;background:var(--nexus-adaptive-surface);padding:11px;display:grid;gap:4px}.attendance-shift-metrics span{font-size:8px;color:var(--nexus-adaptive-muted);text-transform:uppercase;font-weight:850}.attendance-shift-metrics strong{font-size:18px}.attendance-next-break.due{border-color:#d29a18;background:#f2c14f;color:#241900}.attendance-next-break.due span,.attendance-next-break.due strong{color:#241900}.attendance-shift-actions{display:grid;gap:8px}.attendance-shift-actions button{min-width:135px;border-radius:11px;padding:11px 13px;font-size:10px;font-weight:900;cursor:pointer}.attendance-start-break{background:#f2c14f;border:0;color:#241900}.attendance-end-break{background:#24b577;border:0;color:#fff}.attendance-end-shift{background:#7c2435;border:1px solid #a53b4f;color:#fff}
.attendance-calendar-panel{overflow:hidden;background:var(--nexus-adaptive-surface);border-color:var(--nexus-adaptive-line);color:var(--nexus-adaptive-text)}.attendance-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.attendance-calendar-head h3{margin:4px 0;font-size:24px;text-transform:capitalize}.attendance-calendar-head small{color:var(--nexus-adaptive-muted)}.attendance-calendar-nav{display:flex;gap:7px;align-items:center}.attendance-calendar-nav button,.attendance-calendar-nav select{border:1px solid var(--nexus-adaptive-line);border-radius:10px;background:var(--nexus-adaptive-input);color:var(--nexus-adaptive-text);padding:9px 11px;font-weight:800}.attendance-calendar-nav button{font-size:20px;line-height:1;cursor:pointer}.attendance-month-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:12px 0 16px}.attendance-month-totals article{border:1px solid var(--nexus-adaptive-line);border-radius:12px;background:var(--nexus-adaptive-surface-soft);padding:12px}.attendance-month-totals span,.attendance-month-totals strong{display:block}.attendance-month-totals span{font-size:9px;color:var(--nexus-adaptive-muted);text-transform:uppercase}.attendance-month-totals strong{font-size:20px;margin-top:4px}.attendance-weekdays,.attendance-calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(90px,1fr));gap:7px}.attendance-weekdays{margin-bottom:7px}.attendance-weekdays span{text-align:center;font-size:9px;color:var(--nexus-adaptive-muted);font-weight:900;text-transform:uppercase}.attendance-day{min-height:132px;border:1px solid var(--nexus-adaptive-line);border-radius:13px;background:var(--nexus-adaptive-surface);padding:10px;display:grid;align-content:start;gap:8px}.attendance-day.weekend{background:rgba(86,120,154,.06)}.attendance-day header{display:flex;align-items:center;justify-content:space-between}.attendance-day header span{font-size:17px;font-weight:900}.attendance-day header small{font-size:8px;color:var(--nexus-adaptive-muted)}.attendance-day label{display:grid;gap:4px;font-size:8px;color:var(--nexus-adaptive-muted);text-transform:uppercase}.attendance-day input{width:100%;box-sizing:border-box;border:1px solid var(--nexus-adaptive-line);border-radius:8px;background:var(--nexus-adaptive-input);color:var(--nexus-adaptive-text);padding:7px;font-weight:850}.attendance-day input:disabled{opacity:.7}.attendance-day>div{display:flex;justify-content:space-between;gap:6px;align-items:center}.attendance-day>div span{font-size:8px;color:var(--nexus-adaptive-muted);text-transform:uppercase}.attendance-day>div strong{font-size:12px}.attendance-day-pause{font-size:8px;color:#d69a18}.attendance-calendar-blank{min-height:20px}.attendance-calendar-submit{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid var(--nexus-adaptive-line)}.attendance-calendar-submit p{margin:0;color:var(--nexus-adaptive-muted);font-size:11px}.attendance-calendar-submit button{border:0;border-radius:12px;background:linear-gradient(135deg,#168e5c,#27c37f);color:#fff;padding:13px 17px;font-weight:900;cursor:pointer}.attendance-calendar-readonly{margin-top:15px;padding:12px;border-radius:10px;background:var(--nexus-adaptive-surface-soft);color:var(--nexus-adaptive-muted);text-align:center;font-size:10px}
.attendance-coverage-totals{grid-template-columns:repeat(5,minmax(0,1fr))}
.attendance-day{min-height:205px;background:#fff;color:#10243a;border-color:#cad7e2}
.attendance-day.weekend{background:#edf4f8}
.attendance-day.has-planned{border-color:#229a6a;box-shadow:0 0 0 2px rgba(34,154,106,.1)}
.attendance-day header small{color:#5d6c7c}
.attendance-day .attendance-slot-title{display:flex;align-items:center;justify-content:space-between;gap:6px}
.attendance-day .attendance-slot-title span{font-size:8px;color:#536475;text-transform:uppercase;font-weight:850}
.attendance-day .attendance-slot-title strong{font-size:10px;color:#10243a;background:#e7eef4;border-radius:999px;padding:4px 7px}
.attendance-day.has-planned .attendance-slot-title strong{background:#d9f3e7;color:#0d6845}
.attendance-slot-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px!important}
.attendance-slot{min-width:0;border:1px solid #bdcbd7;border-radius:8px;background:#f3f7fa;color:#172b42;padding:7px 3px;font-size:9px;font-weight:900;cursor:pointer}
.attendance-slot:hover:not(:disabled){border-color:#229a6a;background:#e6f5ee}
.attendance-slot.selected{border-color:#126c49;background:#167c54;color:#fff;box-shadow:0 4px 10px rgba(22,124,84,.2)}
.attendance-slot:focus-visible{outline:3px solid rgba(32,137,228,.35);outline-offset:1px}
.attendance-slot:disabled{cursor:default;opacity:1}
.attendance-day .attendance-day-real{display:flex;justify-content:space-between;gap:6px;align-items:center;border-top:1px solid #dce5ec;padding-top:7px}
.attendance-day .attendance-day-real span{font-size:8px;color:#536475;text-transform:uppercase}
.attendance-day .attendance-day-real strong{font-size:11px;color:#10243a}
.attendance-day-pause{color:#835700;font-weight:800}
.nexus-runtime-alert-v89{position:fixed;z-index:3200;left:50%;top:18px;transform:translateX(-50%);width:min(720px,calc(100vw - 30px));display:flex;align-items:center;justify-content:space-between;gap:14px;border:1px solid rgba(239,62,85,.55);border-radius:17px;background:linear-gradient(135deg,#43121d,#28101a);color:#fff;padding:14px 16px;box-shadow:0 18px 55px rgba(0,0,0,.35)}.nexus-runtime-alert-v89.hidden{display:none}.nexus-runtime-alert-v89>div{display:flex;align-items:center;gap:12px}.nexus-runtime-alert-v89 b{width:38px;height:38px;border-radius:12px;background:#ef3e55;display:grid;place-items:center;font-size:20px}.nexus-runtime-alert-v89 span{display:grid;gap:3px}.nexus-runtime-alert-v89 small{color:#f2c8ce}.nexus-runtime-alert-v89 button{border:0;border-radius:11px;background:#fff;color:#331019;padding:10px 13px;font-weight:900;cursor:pointer}.nexus-runtime-alert-v89.break-due{border-color:#f0bd3d;background:linear-gradient(135deg,#493514,#2f2513)}.nexus-runtime-alert-v89.break-due b,.nexus-runtime-alert-v89.break-due button{background:#f0bd3d;color:#251900}.nexus-runtime-alert-v89.break-due small{color:#f6e4b7}.nexus-leader-operator-head .state-break{background:#e3a622;box-shadow:0 0 10px rgba(227,166,34,.65)}
@media(max-width:1150px){.attendance-guidance{grid-template-columns:1fr}.attendance-guidance-metrics{grid-template-columns:repeat(3,1fr)}.attendance-shift-card.active{grid-template-columns:auto 1fr}.attendance-shift-metrics,.attendance-shift-actions{grid-column:1/-1}.attendance-shift-actions{grid-template-columns:1fr 1fr}.attendance-weekdays,.attendance-calendar-grid{grid-template-columns:repeat(4,minmax(110px,1fr))}.attendance-weekdays{display:none}.attendance-calendar-blank{display:none}}
@media(max-width:720px){.attendance-head,.attendance-policy,.attendance-calendar-head,.attendance-calendar-submit{align-items:stretch;flex-direction:column}.attendance-guidance-metrics,.attendance-month-totals,.attendance-shift-metrics{grid-template-columns:1fr 1fr}.attendance-shift-card,.attendance-shift-card.active{grid-template-columns:1fr}.attendance-start-shift{width:100%}.attendance-weekdays,.attendance-calendar-grid{grid-template-columns:repeat(2,minmax(120px,1fr))}.attendance-calendar-nav{flex-wrap:wrap}.nexus-runtime-alert-v89{top:10px;align-items:stretch;flex-direction:column}.nexus-runtime-alert-v89 button{width:100%}}
.affiliate-postback-steps{display:grid;gap:10px}
.affiliate-postback-steps article{display:grid;grid-template-columns:34px 1fr;gap:11px;align-items:start;padding:13px 0;border-bottom:1px solid var(--nexus-adaptive-line)}
.affiliate-postback-steps article:last-child{border-bottom:0}.affiliate-postback-steps article>b{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#16a36a;color:#fff}.affiliate-postback-steps p{margin:4px 0 0;color:var(--nexus-adaptive-muted);line-height:1.5}
.affiliate-api-note{padding:14px 16px;border-radius:12px;border:1px solid rgba(38,140,242,.22);background:rgba(38,140,242,.07)}.affiliate-api-note p{margin:5px 0 0;color:var(--nexus-adaptive-muted)}
@media(max-width:900px){.affiliate-api-guide-grid{grid-template-columns:1fr}.affiliate-doc-actions{justify-content:flex-start}}
/* ===== END LORMAG NEXUS V31.25 ===== */

/* ===== LORMAG NEXUS V31.26 — CEO STAFF ACCOUNT CONFIGURATION ===== */
.admin-users-head-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.admin-users-head-actions button{min-height:42px;padding:0 16px;border-radius:12px;border:1px solid rgba(87,176,255,.28);background:rgba(8,28,50,.74);color:var(--nexus-adaptive-text,#fff);font-weight:800;cursor:pointer}
.admin-staff-config-panel{margin-bottom:18px;border:1px solid rgba(50,205,184,.32);background:linear-gradient(145deg,rgba(8,33,56,.94),rgba(6,24,44,.88));box-shadow:0 18px 45px rgba(0,0,0,.18)}
.admin-staff-config-panel .panel-head{align-items:flex-start;gap:18px}
.admin-staff-config-panel .panel-head p{margin:7px 0 0;color:var(--nexus-adaptive-muted,#b7cce0);max-width:760px}
.admin-staff-form{display:grid;gap:16px;margin-top:18px}
.admin-staff-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.admin-staff-form-grid label{display:grid;gap:7px;color:var(--nexus-adaptive-muted,#b7cce0);font-size:12px;font-weight:800;letter-spacing:.03em}
.admin-staff-form-grid input,.admin-staff-form-grid select{width:100%;min-height:44px;border:1px solid rgba(105,169,219,.3);border-radius:11px;background:var(--nexus-adaptive-input,#06172b);color:var(--nexus-adaptive-text,#fff);padding:0 12px;outline:none}
.admin-staff-form-grid input:focus,.admin-staff-form-grid select:focus{border-color:#39d6bd;box-shadow:0 0 0 3px rgba(57,214,189,.12)}
.admin-staff-options{display:flex;gap:22px;align-items:center;flex-wrap:wrap;padding:13px 14px;border-radius:11px;background:rgba(4,18,33,.45);border:1px solid rgba(105,169,219,.16)}
.admin-staff-options label{display:flex;gap:9px;align-items:center;color:var(--nexus-adaptive-text,#fff);font-size:13px;font-weight:700}
.admin-staff-options input{width:17px;height:17px;accent-color:#34d7bd}
.admin-staff-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.admin-staff-actions button{min-height:42px;padding:0 18px;border-radius:11px}
.admin-staff-actions small{color:var(--nexus-adaptive-muted,#b7cce0);max-width:760px;line-height:1.45}
.admin-user-actions .configure-staff{border-color:rgba(57,214,189,.42);background:rgba(20,130,115,.18);color:#7ff4df}
.admin-users-metrics.security-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}
@media (max-width:1200px){.admin-staff-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-users-metrics.security-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:720px){.admin-staff-form-grid{grid-template-columns:1fr}.admin-users-head-actions{width:100%}.admin-users-head-actions button{flex:1}.admin-users-metrics.security-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-staff-options{align-items:flex-start;flex-direction:column}.admin-staff-actions{align-items:stretch;flex-direction:column}.admin-staff-actions button{width:100%}}

/* CEO — payout webmaster principali ed esterni */
.admin-main-wm-list{display:grid;gap:12px;margin-top:14px}
.admin-main-wm-offer{display:grid;grid-template-columns:minmax(220px,1fr) minmax(170px,.45fr) auto;gap:12px;align-items:end;padding:14px;border:1px solid rgba(15,23,42,.1);border-radius:16px;background:rgba(255,255,255,.72)}
.admin-main-wm-offer label:not(.admin-assignment-chip){display:grid;gap:6px;font-size:12px;font-weight:800;color:#64748b}
.admin-main-wm-offer input[type="number"],.admin-external-default input[type="number"],.admin-external-wm-card td input[type="number"]{width:100%;box-sizing:border-box;border:1px solid rgba(15,23,42,.14);border-radius:10px;background:#fff;padding:10px 11px;color:#0f172a}
.admin-main-wm-offer button,.admin-external-wm-card td button{border:0;border-radius:10px;padding:10px 13px;font-weight:800;cursor:pointer;background:#111827;color:#fff}
.admin-external-wm-section{margin-top:24px}
.admin-external-wm-intro{margin:0 0 18px;color:#64748b}
.admin-external-wm-list{display:grid;gap:18px}
.admin-external-wm-card{border:1px solid rgba(15,23,42,.1);border-radius:20px;padding:18px;background:#fff}
.admin-external-wm-card.is-inactive{opacity:.72}
.admin-external-wm-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.admin-external-wm-head h3{margin:4px 0}
.admin-external-wm-head p{margin:0;color:#64748b}
.admin-external-wm-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0}
.admin-external-wm-metrics>div{padding:12px;border-radius:14px;background:#f8fafc;border:1px solid rgba(15,23,42,.07)}
.admin-external-wm-metrics span{display:block;font-size:12px;color:#64748b;margin-bottom:4px}
.admin-external-wm-metrics strong{font-size:18px;color:#0f172a}
.admin-external-default{display:grid;grid-template-columns:minmax(220px,320px) auto 1fr;gap:12px;align-items:end;margin-bottom:16px}
.admin-external-default label{display:grid;gap:6px;font-size:12px;font-weight:800;color:#64748b}
.admin-external-default small{align-self:center;color:#64748b}
.admin-payout-switch{display:flex;gap:7px;align-items:center;white-space:nowrap}
@media(max-width:900px){.admin-main-wm-offer{grid-template-columns:1fr}.admin-external-wm-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-external-default{grid-template-columns:1fr}.admin-external-wm-head{display:grid}}

/* V31.31 — Reparto Operatore: vista essenziale, storico stati e KPI giornalieri */
.cockpit{grid-template-columns:300px minmax(0,1fr)}
.leadvertex-panel,.bottom-stats{grid-column:1/3}
.call-topline{grid-template-columns:auto auto}
.customer-grid{grid-template-columns:repeat(3,1fr)}
.history-list{margin-top:14px}
.operator-history-empty{padding:13px;border:1px dashed #244d73;border-radius:11px;color:#7895b4;font-size:10px;text-align:center}
.operator-last-save{display:grid;grid-template-columns:1fr auto;gap:4px 12px;align-items:center;margin-top:10px;padding:11px 13px;border:1px solid #28557d;border-radius:11px;background:#081d35}
.operator-last-save span{grid-column:1/3;color:#7895b4;font-size:8px;text-transform:uppercase;letter-spacing:.08em}
.operator-last-save strong{font-size:11px;color:#eef7ff}
.operator-last-save em{font-size:9px;color:#63dfff;font-style:normal}
.bottom-stats.daily-only{grid-template-columns:repeat(5,1fr)}
.order-source-card{align-self:start}
.record-head>div{max-width:620px}
.record-fields datalist{display:none}
@media(max-width:1250px){.cockpit{grid-template-columns:260px 1fr}.leadvertex-panel,.bottom-stats{grid-column:1/3}.record-layout{grid-template-columns:1fr 1fr}.record-fields{grid-column:1/3}}
@media(max-width:900px){.cockpit{grid-template-columns:1fr}.leadvertex-panel,.bottom-stats{grid-column:1}.customer-grid{grid-template-columns:1fr}.bottom-stats.daily-only{grid-template-columns:repeat(2,1fr)}}

/* ===== LORMAG NEXUS V31.32 — CEO STORAGE ALERTS ===== */
.ceo-storage-alert{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:15px;align-items:center;margin:0 0 16px;padding:15px 17px;border:1px solid #d4a541;border-radius:16px;background:linear-gradient(135deg,rgba(92,63,8,.88),rgba(12,31,52,.96));box-shadow:0 12px 32px rgba(0,0,0,.18)}
.ceo-storage-alert.critical{border-color:#ee5d70;background:linear-gradient(135deg,rgba(88,18,31,.92),rgba(16,28,48,.97));box-shadow:0 0 0 3px rgba(238,93,112,.08),0 16px 38px rgba(0,0,0,.22)}
.ceo-storage-alert-icon{width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#ffd15a;color:#342300;font-size:19px;font-weight:950;box-shadow:0 0 18px rgba(255,209,90,.22)}
.ceo-storage-alert.critical .ceo-storage-alert-icon{background:#ef5f72;color:#fff;box-shadow:0 0 20px rgba(239,95,114,.3);animation:nexusStoragePulseV3132 1.5s ease-in-out infinite}
.ceo-storage-alert-copy>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.ceo-storage-alert-copy strong{font-size:14px}.ceo-storage-alert-copy span{font-size:10px;color:#ffd986;font-weight:850}.ceo-storage-alert.critical .ceo-storage-alert-copy span{color:#ff9daa}.ceo-storage-alert-copy p{margin:5px 0 10px;color:#b8c9da;font-size:10px;line-height:1.5}
.ceo-storage-meter{height:7px;border-radius:999px;background:rgba(0,0,0,.28);overflow:hidden}.ceo-storage-meter i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#f4b83c,#ffdc69)}.ceo-storage-alert.critical .ceo-storage-meter i{background:linear-gradient(90deg,#ef5f72,#ff9a6b)}
.ceo-storage-numbers{text-align:right}.ceo-storage-numbers b,.ceo-storage-numbers span{display:block}.ceo-storage-numbers b{font-size:17px}.ceo-storage-numbers span{margin-top:3px;font-size:9px;color:#8fa8bf}
@keyframes nexusStoragePulseV3132{0%,100%{transform:scale(1);box-shadow:0 0 14px rgba(239,95,114,.22)}50%{transform:scale(1.04);box-shadow:0 0 26px rgba(239,95,114,.42)}}
@media(max-width:720px){.ceo-storage-alert{grid-template-columns:42px 1fr}.ceo-storage-numbers{grid-column:2;text-align:left;display:flex;gap:6px;align-items:baseline}.ceo-storage-alert-copy>div{align-items:flex-start;flex-direction:column;gap:3px}}
/* ===== END LORMAG NEXUS V31.32 ===== */

/* V31.34 — Offerte e script operatore */
.operator-offers-page{display:grid;gap:18px}.operator-offers-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,var(--surface),var(--surface-soft));box-shadow:0 18px 42px rgba(0,0,0,.14)}.operator-offers-head h2{margin:7px 0 5px;font-size:30px}.operator-offers-head p{margin:0;color:var(--muted)}.operator-offers-private{padding:10px 13px;border:1px solid rgba(90,216,255,.38);border-radius:999px;background:rgba(15,113,255,.09);color:#70ddff;font-size:9px;font-weight:950;letter-spacing:.12em;white-space:nowrap}.operator-offer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.operator-offer-card{overflow:hidden;border:1px solid var(--line);border-radius:22px;background:linear-gradient(150deg,var(--surface),var(--surface-soft));box-shadow:0 18px 46px rgba(0,0,0,.16)}.operator-offer-product{position:relative;display:grid;place-items:center;min-height:280px;padding:24px;background:radial-gradient(circle at 50% 55%,rgba(24,140,224,.22),rgba(4,17,33,.05) 58%,transparent 74%);border-bottom:1px solid var(--line)}.operator-offer-product:after{content:"";position:absolute;left:14%;right:14%;bottom:24px;height:25px;border-radius:50%;background:radial-gradient(ellipse,rgba(81,210,255,.25),transparent 70%);filter:blur(2px)}.operator-offer-product img{position:relative;z-index:2;width:100%;height:235px;object-fit:contain;filter:drop-shadow(0 20px 22px rgba(0,0,0,.32))}.operator-offer-live{position:absolute;z-index:3;top:16px;left:16px;display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid rgba(34,197,94,.35);border-radius:999px;background:rgba(5,40,28,.62);color:#56e58c;font-size:9px;font-weight:950;letter-spacing:.08em}.operator-offer-live i{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.12)}.operator-offer-card-body{padding:22px}.operator-offer-title{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.operator-offer-title span{color:var(--muted);font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.operator-offer-title h3{margin:5px 0 0;font-size:25px}.operator-offer-title>strong{font-size:25px;white-space:nowrap}.operator-offer-info{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.operator-offer-info section{padding:15px;border:1px solid var(--line);border-radius:15px;background:var(--input)}.operator-offer-info h4{margin:0 0 9px;font-size:12px}.operator-offer-info ul{margin:0;padding-left:17px;color:var(--muted);font-size:11px;line-height:1.7}.operator-script-open{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;min-height:45px;border:1px solid #4acfff;border-radius:12px;background:linear-gradient(135deg,#0f71ff,#118ab6);color:#fff;font-weight:950;cursor:pointer;box-shadow:0 10px 24px rgba(15,113,255,.18)}.operator-script-open:hover{transform:translateY(-1px);filter:brightness(1.06)}body.operator-script-opened{overflow:hidden}.operator-script-modal.hidden{display:none}.operator-script-modal{position:fixed;inset:0;z-index:400;display:grid;place-items:center;padding:20px}.operator-script-backdrop{position:absolute;inset:0;border:0;background:rgba(1,7,15,.86);backdrop-filter:blur(10px);cursor:pointer}.operator-script-dialog{position:relative;z-index:2;width:min(1120px,100%);max-height:92vh;display:grid;grid-template-rows:auto auto minmax(0,1fr);overflow:hidden;border:1px solid #2d5e87;border-radius:22px;background:#07172b;box-shadow:0 40px 120px rgba(0,0,0,.68)}.operator-script-dialog header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px;border-bottom:1px solid #244867}.operator-script-dialog header h2{margin:5px 0 0;font-size:22px}.operator-script-dialog header button{width:38px;height:38px;border:1px solid #315b80;border-radius:50%;background:#0b223d;color:#fff;font-size:22px;cursor:pointer}.operator-script-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 20px;border-bottom:1px solid #183b5b;background:#081d35;color:#8eabc4;font-size:11px}.operator-script-toolbar a{color:#67dcff;font-weight:900;text-decoration:none}.operator-script-canvas{overflow:auto;padding:18px;background:linear-gradient(135deg,#061426,#091d32)}.operator-script-canvas img{display:block;width:min(100%,1024px);height:auto;margin:0 auto;border-radius:12px;background:#fff;box-shadow:0 18px 50px rgba(0,0,0,.38)}
@media(max-width:950px){.operator-offer-grid{grid-template-columns:1fr}.operator-offer-product{min-height:240px}.operator-offer-info{grid-template-columns:1fr}}
@media(max-width:650px){.operator-offers-head{align-items:flex-start;flex-direction:column}.operator-offers-head h2{font-size:25px}.operator-offer-product img{height:205px}.operator-offer-title{align-items:flex-start;flex-direction:column}.operator-offer-title>strong{font-size:22px}.operator-script-modal{padding:8px}.operator-script-dialog{max-height:96vh;border-radius:15px}.operator-script-toolbar{align-items:flex-start;flex-direction:column}.operator-script-canvas{padding:9px}}

/* V31.35 — storico cliente per numero telefonico, solo reparto Operatore */
.customer-history-card{margin-top:14px;border:1px solid #245075;border-radius:13px;background:linear-gradient(150deg,#081d35,#06172b);overflow:hidden}
.customer-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 13px;border-bottom:1px solid #1d4264;background:rgba(13,43,72,.72)}
.customer-history-head>div:first-child span,.current-order-history-title span{display:block;color:#6fdcff;font-size:8px;font-weight:900;letter-spacing:.12em}
.customer-history-head>div:first-child strong{display:block;margin-top:4px;color:#eef8ff;font-size:11px}
.customer-history-alerts{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.customer-history-alert{display:inline-flex;align-items:center;min-height:24px;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:900;white-space:nowrap}
.customer-history-alert.return{color:#ffd6d6;border:1px solid rgba(255,86,86,.55);background:rgba(145,25,25,.34)}
.customer-history-alert.open{color:#dfffc4;border:1px solid rgba(139,231,76,.48);background:rgba(38,99,30,.32)}
.customer-history-warning{margin:10px 12px 0;padding:9px 10px;border:1px solid #765c26;border-radius:9px;background:rgba(98,67,15,.25);color:#ffd98a;font-size:9px}
.customer-history-rows{display:grid;gap:7px;padding:10px}
.customer-history-row{display:grid;grid-template-columns:8px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid #1c3d5d;border-radius:10px;background:#07182c}
.customer-history-marker{width:7px;height:7px;border-radius:50%;background:#66839f;box-shadow:0 0 0 4px rgba(102,131,159,.1)}
.customer-history-row.current{border-color:#2f78a5;background:#09213a}.customer-history-row.current .customer-history-marker{background:#55d8ff;box-shadow:0 0 0 4px rgba(85,216,255,.13)}
.customer-history-row.returned{border-color:rgba(213,64,64,.6);background:rgba(65,18,27,.4)}.customer-history-row.returned .customer-history-marker{background:#ff5757;box-shadow:0 0 0 4px rgba(255,87,87,.13)}
.customer-history-row.open{border-color:rgba(109,204,73,.55);background:rgba(17,57,31,.38)}.customer-history-row.open .customer-history-marker{background:#8be74c;box-shadow:0 0 0 4px rgba(139,231,76,.13)}
.customer-history-main{min-width:0}.customer-history-main>div{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.customer-history-main strong{font-size:10px;color:#eef7ff}.customer-history-main span{font-size:8px;color:#7897b5}.customer-history-main p{margin:4px 0 0;color:#a9bfd4;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-history-state{text-align:right}.customer-history-state strong{display:block;font-size:9px;color:#e8f5ff}.customer-history-state span{display:block;margin-top:4px;font-size:8px;color:#7897b5;white-space:nowrap}
.current-order-history{margin-top:14px}.current-order-history-title{padding:0 2px 2px}.current-order-history .history-list{margin-top:8px}
@media(max-width:900px){.customer-history-head{flex-direction:column}.customer-history-alerts{justify-content:flex-start}.customer-history-row{grid-template-columns:8px 1fr}.customer-history-state{grid-column:2;text-align:left;display:flex;gap:8px;align-items:center;flex-wrap:wrap}.customer-history-state span{margin-top:0}}

/* ===== LORMAG NEXUS V31.37 — REPARTO LOGISTICA ===== */
.logistics-page{display:flex;flex-direction:column;gap:18px}
.logistics-page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;padding:24px 26px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,rgba(11,35,62,.96),rgba(5,18,34,.92));box-shadow:0 20px 50px rgba(0,0,0,.16)}
.logistics-page-head h2{margin:7px 0 5px;font-size:30px}.logistics-page-head p{margin:0;color:var(--muted)}
.logistics-head-actions{display:flex;flex-wrap:wrap;gap:9px}.logistics-head-actions button,.logistics-head-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:10px 14px;border:1px solid #2c5b83;border-radius:11px;background:#0a1d35;color:#e9f6ff;font:inherit;font-size:11px;font-weight:800;cursor:pointer;text-decoration:none}.logistics-head-actions a:last-child{border-color:#5ad8ff;background:linear-gradient(135deg,#0f71ff,#1589bd)}
.logistics-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.logistics-metrics article{padding:18px 19px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(150deg,var(--surface),var(--surface-soft));box-shadow:0 14px 34px rgba(0,0,0,.12)}.logistics-metrics span{display:block;color:var(--muted);font-size:9px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.logistics-metrics strong{display:block;margin-top:9px;font-size:27px}.logistics-metrics article.alert{border-color:rgba(255,176,65,.65);box-shadow:0 0 0 1px rgba(255,176,65,.08),0 14px 34px rgba(0,0,0,.12)}.logistics-metrics article.alert strong{color:#ffb041}
.logistics-filter-panel{padding:18px}.logistics-filters{display:grid;grid-template-columns:minmax(240px,1.6fr) repeat(4,minmax(130px,.7fr));gap:10px;margin-bottom:16px}.logistics-filters label{display:flex;flex-direction:column;gap:6px}.logistics-filters label>span{font-size:8px;font-weight:900;letter-spacing:.08em;color:var(--muted);text-transform:uppercase}.logistics-filters input,.logistics-filters select{width:100%;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:11px;background:var(--input);color:var(--text);font:inherit;font-size:11px;outline:none}.logistics-filters input:focus,.logistics-filters select:focus{border-color:#5ad8ff;box-shadow:0 0 0 3px rgba(90,216,255,.1)}
.logistics-order-list{display:flex;flex-direction:column;gap:9px}.logistics-order-card{display:grid;grid-template-columns:150px 1fr 1.5fr 1.25fr 1fr auto;gap:14px;align-items:center;padding:14px;border:1px solid var(--line);border-radius:15px;background:linear-gradient(145deg,var(--surface-soft),rgba(7,25,46,.88));transition:.18s ease}.logistics-order-card:hover{transform:translateY(-1px);border-color:#3a6d96}.logistics-order-card.needs-attention{border-color:rgba(255,176,65,.5)}.logistics-order-card>div{min-width:0}.logistics-order-card span{display:block;color:var(--muted);font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.logistics-order-card strong{display:block;margin-top:4px;overflow:hidden;text-overflow:ellipsis;font-size:12px;white-space:nowrap}.logistics-order-card small{display:block;margin-top:4px;color:var(--muted);font-size:9px;line-height:1.4}.logistics-order-card>button{min-height:38px;padding:9px 13px;border:1px solid #4a7aa3;border-radius:10px;background:#0d2c4d;color:#eef9ff;font:inherit;font-size:10px;font-weight:900;cursor:pointer}.logistics-order-card>button:hover{background:#12416e}.logistics-order-state>span{display:inline-flex;padding:6px 8px;border:1px solid #2f5f86;border-radius:999px;background:#0a223d;color:#aeeeff}.state-sent .logistics-order-state>span,.logistics-detail-summary .state-sent{color:#c7f52f}.state-problem .logistics-order-state>span,.logistics-detail-summary .state-problem{color:#ffb041}.state-return .logistics-order-state>span,.logistics-detail-summary .state-return{color:#ff7688}.logistics-warning{margin-top:5px!important;padding:4px 6px!important;border-radius:7px!important;font-size:7px!important;letter-spacing:.04em!important}.logistics-warning.stuck{background:rgba(255,176,65,.12);color:#ffc46d!important}.logistics-warning.delivery{background:rgba(255,82,105,.12);color:#ff8b9a!important}
.logistics-drawer-shell{position:fixed;inset:0;z-index:190;display:flex;justify-content:flex-end;background:rgba(2,8,17,.72);backdrop-filter:blur(8px)}.logistics-drawer{width:min(780px,94vw);height:100%;overflow:auto;padding:25px;background:linear-gradient(165deg,#0b2542,#06162a 72%);border-left:1px solid #315d83;box-shadow:-30px 0 80px rgba(0,0,0,.48)}.logistics-drawer>header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:18px;border-bottom:1px solid #244a6c}.logistics-drawer>header h2{margin:7px 0 5px;font-size:25px}.logistics-drawer>header p{margin:0;color:#9db7cf;font-size:11px}.logistics-drawer-close{width:40px;height:40px;border:1px solid #335e83;border-radius:50%;background:#07182d;color:#fff;font-size:22px;cursor:pointer}.logistics-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:18px 0}.logistics-detail-summary>div{padding:13px;border:1px solid #244a6c;border-radius:12px;background:#081a31}.logistics-detail-summary span{display:block;color:#8faac2;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.logistics-detail-summary strong{display:block;margin-top:6px;font-size:11px;line-height:1.45}.logistics-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}.logistics-form-grid label{display:flex;flex-direction:column;gap:6px}.logistics-form-grid label.wide{grid-column:1/-1}.logistics-form-grid label>span{color:#9ab5cc;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.logistics-form-grid input,.logistics-form-grid textarea{width:100%;padding:11px 12px;border:1px solid #294f72;border-radius:11px;background:#06182c;color:#eef8ff;font:inherit;font-size:12px;outline:none}.logistics-form-grid textarea{min-height:92px;resize:vertical}.logistics-form-grid input:focus,.logistics-form-grid textarea:focus{border-color:#5ad8ff;box-shadow:0 0 0 3px rgba(90,216,255,.1)}.logistics-tracking-state{display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;margin:12px 0;padding:11px 13px;border:1px solid #2d5d7f;border-radius:11px;background:#08213a}.logistics-tracking-state i{width:9px;height:9px;border-radius:50%;background:#c7f52f;box-shadow:0 0 0 5px rgba(199,245,47,.08)}.logistics-tracking-state.warning i{background:#ffb041;box-shadow:0 0 0 5px rgba(255,176,65,.08)}.logistics-tracking-state span{font-size:10px;font-weight:800}.logistics-tracking-state small{color:#8faac2;font-size:9px}.logistics-main-actions,.logistics-status-actions{display:flex;gap:9px;margin-top:11px}.logistics-main-actions button,.logistics-main-actions a,.logistics-status-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:10px 15px;border-radius:11px;font:inherit;font-size:10px;font-weight:900;cursor:pointer;text-decoration:none}.logistics-main-actions button{border:1px solid #5ad8ff;background:linear-gradient(135deg,#0f71ff,#1596bd);color:#fff}.logistics-main-actions button.dirty:after{content:" •";color:#c7f52f}.logistics-main-actions a{border:1px solid #365f83;background:#0a213a;color:#e8f5ff}.logistics-status-actions{padding-top:13px;border-top:1px solid #234663}.logistics-status-actions button{flex:1;border:1px solid transparent;color:#fff}.logistics-status-actions .sent{border-color:#88b836;background:rgba(117,159,45,.18);color:#dfff9b}.logistics-status-actions .problem{border-color:#a8752b;background:rgba(168,117,43,.18);color:#ffd18a}.logistics-status-actions .return{border-color:#a84052;background:rgba(168,64,82,.18);color:#ffadba}.logistics-status-actions button:disabled{opacity:.45;cursor:not-allowed}.logistics-history{margin-top:20px;padding-top:4px}.logistics-history article{display:grid;grid-template-columns:130px 1fr;gap:14px;padding:12px 0;border-bottom:1px solid #1e3d5b}.logistics-history article>span{color:#88a6bf;font-size:9px}.logistics-history article strong{display:block;font-size:11px}.logistics-history article small,.logistics-history article em{display:block;margin-top:4px;color:#93afc6;font-size:9px;font-style:normal}.logistics-history article p{margin:6px 0 0;color:#c7d9e8;font-size:10px;line-height:1.5}
@media(max-width:1250px){.logistics-order-card{grid-template-columns:130px 1fr 1.4fr 1fr auto}.logistics-order-tracking{display:none}.logistics-filters{grid-template-columns:1.5fr repeat(2,1fr);}.logistics-filters label:nth-child(4),.logistics-filters label:nth-child(5){grid-column:auto}}
@media(max-width:900px){.logistics-page-head{align-items:flex-start;flex-direction:column}.logistics-metrics{grid-template-columns:repeat(2,1fr)}.logistics-filters{grid-template-columns:1fr 1fr}.logistics-order-card{grid-template-columns:1fr 1fr}.logistics-order-card>button{grid-column:1/-1}.logistics-order-address,.logistics-order-products{grid-column:1/-1}.logistics-detail-summary{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.logistics-metrics,.logistics-filters,.logistics-detail-summary,.logistics-form-grid{grid-template-columns:1fr}.logistics-form-grid label.wide{grid-column:auto}.logistics-order-card{grid-template-columns:1fr}.logistics-order-address,.logistics-order-products,.logistics-order-card>button{grid-column:auto}.logistics-main-actions,.logistics-status-actions{flex-direction:column}.logistics-history article{grid-template-columns:1fr}.logistics-drawer{width:100vw;padding:18px}}
/* ===== END LORMAG NEXUS V31.37 ===== */


/* ===== LORMAG NEXUS V31.38 — FIX DETTAGLIO LOGISTICA ===== */
body.logistics-drawer-open{overflow:hidden}
body>.logistics-drawer-shell{position:fixed;inset:0;z-index:1000;width:100vw;height:100dvh;display:flex;justify-content:flex-end;background:rgba(2,8,17,.76);backdrop-filter:blur(9px)}
body>.logistics-drawer-shell .logistics-drawer{width:min(860px,100vw);height:100dvh;max-height:100dvh;overflow-y:auto;overscroll-behavior:contain;padding:26px 28px max(30px,env(safe-area-inset-bottom));background:linear-gradient(165deg,#0b2542,#06162a 72%);border-left:1px solid #315d83;box-shadow:-30px 0 80px rgba(0,0,0,.52)}
body>.logistics-drawer-shell .logistics-drawer>header{position:sticky;top:-26px;z-index:4;margin:-26px -28px 18px;padding:26px 28px 18px;background:linear-gradient(180deg,#0b2542 78%,rgba(11,37,66,.96));border-bottom:1px solid #244a6c}
body>.logistics-drawer-shell .logistics-detail-summary strong{overflow-wrap:anywhere}
@media(max-width:900px){body>.logistics-drawer-shell .logistics-drawer{width:100vw;padding:20px 20px max(26px,env(safe-area-inset-bottom))}body>.logistics-drawer-shell .logistics-drawer>header{top:-20px;margin:-20px -20px 16px;padding:20px 20px 16px}}
/* ===== END V31.38 ===== */

/* ===== LORMAG NEXUS V31.40 — NOTA LOGISTICA + STATISTICHE CEO ===== */
.operator-logistics-note-field{position:relative;padding:14px;border:1px solid rgba(51,155,255,.32);border-radius:14px;background:linear-gradient(145deg,rgba(9,39,69,.82),rgba(7,25,47,.62))}
.operator-logistics-note-field>span{display:block;margin-bottom:8px;color:#61d9ff;font-size:10px;font-weight:900;letter-spacing:.13em}
.operator-logistics-note-field textarea{min-height:104px;border-color:rgba(65,168,255,.38);background:rgba(4,20,38,.8)}
.operator-logistics-note-field small{display:block;margin-top:7px;color:#7f9bb5;font-size:10px;line-height:1.45}
.logistics-operator-note-card{display:grid;gap:9px;margin:18px 0;padding:16px 18px;border:1px solid rgba(94,217,255,.38);border-left:4px solid #58dcff;border-radius:14px;background:linear-gradient(135deg,rgba(8,42,72,.96),rgba(7,27,50,.9));box-shadow:0 14px 34px rgba(0,0,0,.18)}
.logistics-operator-note-card>div{display:grid;gap:8px}
.logistics-operator-note-card strong{color:#f4fbff;font-size:14px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}
.logistics-operator-note-card small{color:#8aa8c2;font-size:10px}
.logistics-operator-note-card.is-empty{border-color:rgba(125,151,176,.25);border-left-color:#58738e;background:rgba(7,27,48,.58)}
.logistics-operator-note-card.is-empty strong{color:#829db5;font-weight:600}
.ceo-statistics-page{display:grid;gap:18px}
.ceo-statistics-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:4px 2px}
.ceo-statistics-head h2{margin:4px 0 5px;font-size:30px;color:#f3f9ff}
.ceo-statistics-head p{margin:0;color:#8da7bf}
.ceo-statistics-head-actions{display:flex;gap:10px;flex-wrap:wrap}
.ceo-statistics-export-language{display:grid;gap:4px;min-width:128px;color:#8ba7c0;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.ceo-statistics-export-language select{min-height:42px;padding:9px 12px;border:1px solid #2a5276;border-radius:11px;background:#071b31;color:#eaf5ff;font:inherit;font-size:11px;font-weight:800;text-transform:none;letter-spacing:0;cursor:pointer}
.ceo-statistics-head-actions button,.ceo-statistics-filter-actions button{min-height:42px;padding:10px 16px;border:1px solid rgba(74,176,255,.48);border-radius:11px;background:linear-gradient(135deg,#0c6dde,#19a3cf);color:#fff;font:inherit;font-size:11px;font-weight:900;cursor:pointer}
.ceo-statistics-head-actions button+button,.ceo-statistics-filter-actions button+button{background:#0b243f;border-color:#2c5578;color:#dcecff}
.ceo-statistics-head-actions button:disabled{opacity:.42;cursor:not-allowed}
.ceo-statistics-filters{display:grid;grid-template-columns:repeat(6,minmax(145px,1fr));gap:12px;align-items:end;padding:16px}
.ceo-statistics-filters label{display:grid;gap:7px;color:#8ba7c0;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.ceo-statistics-filters input,.ceo-statistics-filters select{width:100%;min-height:42px;padding:10px 11px;border:1px solid #2a5276;border-radius:10px;background:#071b31;color:#eaf5ff;font:inherit;font-size:11px;text-transform:none;letter-spacing:0}
.ceo-statistics-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:9px}
.ceo-statistics-warning{padding:12px 15px;border:1px solid rgba(255,185,51,.42);border-left:4px solid #ffb72d;border-radius:10px;background:rgba(79,49,5,.34);color:#ffd893;font-size:11px;line-height:1.5}
.ceo-statistics-metrics{display:grid;grid-template-columns:repeat(6,minmax(130px,1fr));gap:11px}
.ceo-statistics-metric{min-height:96px;padding:15px;border:1px solid rgba(47,103,151,.5);border-radius:15px;background:linear-gradient(145deg,rgba(9,38,68,.96),rgba(7,24,45,.92));box-shadow:0 13px 30px rgba(0,0,0,.13)}
.ceo-statistics-metric span{display:block;color:#829db7;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.ceo-statistics-metric strong{display:block;margin-top:13px;color:#f5fbff;font-size:25px;line-height:1.05}
.ceo-statistics-metric.positive{border-color:rgba(36,210,139,.44)}
.ceo-statistics-metric.positive strong{color:#3ce7a4}
.ceo-statistics-metric.warning{border-color:rgba(255,181,44,.5)}
.ceo-statistics-metric.warning strong{color:#ffc34f}
.ceo-statistics-metric.danger{border-color:rgba(255,85,108,.5)}
.ceo-statistics-metric.danger strong{color:#ff7186}
.ceo-statistics-metric.money strong{font-size:21px;color:#63dcff}
.ceo-statistics-table-card{padding:0;overflow:hidden}
.ceo-statistics-table-card .panel-head{padding:17px 18px;border-bottom:1px solid rgba(42,86,124,.5)}
.ceo-statistics-table-card .panel-head h3{margin:3px 0 0}
.ceo-statistics-table-card .panel-head>span{max-width:46%;color:#7793ad;font-size:10px;text-align:right}
.ceo-statistics-table-wrap{width:100%;overflow:auto}
.ceo-statistics-table-wrap.detail{max-height:570px}
.ceo-statistics-table-wrap table{width:100%;min-width:850px;border-collapse:collapse}
.ceo-statistics-table-wrap.detail table{min-width:1250px}
.ceo-statistics-table-wrap th{position:sticky;top:0;z-index:2;padding:12px 13px;border-bottom:1px solid #275173;background:#0a223d;color:#7998b4;font-size:8px;font-weight:900;letter-spacing:.1em;text-align:left;text-transform:uppercase;white-space:nowrap}
.ceo-statistics-table-wrap td{padding:12px 13px;border-bottom:1px solid rgba(37,76,111,.42);color:#b9ccde;font-size:10px;line-height:1.45;vertical-align:top}
.ceo-statistics-table-wrap tbody tr:hover td{background:rgba(26,94,145,.12)}
.ceo-statistics-table-wrap td strong{color:#edf7ff}
.ceo-statistics-status{display:inline-flex;padding:5px 8px;border:1px solid rgba(74,161,224,.35);border-radius:999px;background:rgba(8,43,73,.72);color:#bde8ff;font-size:8px;font-weight:900;white-space:nowrap}
.ceo-statistics-empty{padding:28px!important;text-align:center;color:#7792aa!important}
.ceo-statistics-page.is-loading{opacity:.72;pointer-events:none}
@media(max-width:1450px){.ceo-statistics-filters{grid-template-columns:repeat(3,1fr)}.ceo-statistics-metrics{grid-template-columns:repeat(4,1fr)}}
@media(max-width:980px){.ceo-statistics-head{flex-direction:column}.ceo-statistics-filters{grid-template-columns:repeat(2,1fr)}.ceo-statistics-metrics{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.ceo-statistics-filters{grid-template-columns:1fr}.ceo-statistics-metrics{grid-template-columns:1fr 1fr}.ceo-statistics-head-actions,.ceo-statistics-head-actions button,.ceo-statistics-export-language,.ceo-statistics-export-language select{width:100%}.ceo-statistics-filter-actions{flex-direction:column}.ceo-statistics-filter-actions button{width:100%}.ceo-statistics-table-card .panel-head{align-items:flex-start;flex-direction:column}.ceo-statistics-table-card .panel-head>span{max-width:100%;text-align:left}}
/* ===== END LORMAG NEXUS V31.40 ===== */
.operator-logistics-note-field em{display:block;margin-top:6px;color:#b7d6ec;font-size:10px;font-style:normal;font-weight:700}

/* V31.42 — richieste autorizzazione offerte: badge CEO giallo lampeggiante */
nav button.offer-authorization-alert{
  color:#fff4ad;
  border:1px solid rgba(255,216,59,.72);
  background:linear-gradient(90deg,rgba(255,216,59,.20),#102a48);
  animation:offerAuthorizationNavPulse 1.15s ease-in-out infinite;
}
nav button.offer-authorization-alert b{color:#ffd83b}
.offer-authorization-count{
  margin-left:auto;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#ffd83b;
  color:#2d2500;
  font-size:10px;
  font-style:normal;
  font-weight:950;
  box-shadow:0 0 17px rgba(255,216,59,.72);
}
@keyframes offerAuthorizationNavPulse{
  0%,100%{box-shadow:0 0 0 0 rgba(255,216,59,0);filter:brightness(1)}
  50%{box-shadow:0 0 0 4px rgba(255,216,59,.18),0 0 24px rgba(255,216,59,.27);filter:brightness(1.12)}
}
@media(prefers-reduced-motion:reduce){nav button.offer-authorization-alert{animation:none}}

/* V31.44 — revoca autorizzazione offerte */
.affiliate-status.revoked{background:rgba(245,158,11,.16);color:#fbbf24}
.offer-access-revoke{border:1px solid rgba(245,158,11,.65);border-radius:9px;padding:8px 12px;background:rgba(120,53,15,.25);color:#fbbf24;font-weight:900;cursor:pointer;white-space:nowrap}
.offer-access-revoke:hover{background:rgba(245,158,11,.18);color:#fde68a}


/* V31.48 — pannello SMS operatore */
.operator-sms-panel{margin-top:16px;padding:17px;border:1px solid rgba(67,165,255,.34);border-radius:16px;background:linear-gradient(145deg,rgba(7,28,51,.96),rgba(6,20,38,.94));box-shadow:0 18px 46px rgba(0,0,0,.22)}
.operator-sms-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.operator-sms-head h3{margin:5px 0 3px;font-size:20px;color:#f4f8fc}.operator-sms-head p{margin:0;color:#b8cadb;font-size:10px;line-height:1.45}
.operator-sms-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.operator-sms-grid label{display:flex;flex-direction:column;gap:6px;color:#7895b4;font-size:8px;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.operator-sms-grid input,.operator-sms-grid select,.operator-sms-grid textarea{width:100%;border:1px solid #21476d;border-radius:9px;background:#06172b;color:#eef7ff;padding:10px;font:inherit;font-size:11px;letter-spacing:normal;text-transform:none}.operator-sms-grid input[readonly],.operator-sms-grid textarea[readonly]{background:#091d34;color:#c9dbea}.operator-sms-message{grid-column:1/-1}.operator-sms-message textarea{min-height:82px;resize:vertical;line-height:1.5}.operator-sms-message small{display:block;text-align:right;color:#7c99b5;font-size:9px;text-transform:none}.operator-sms-message b{color:#65dcff}.operator-sms-message b.limit{color:#ff6c7d}
.operator-sms-consent{display:flex;align-items:flex-start;gap:9px;margin-top:12px;padding:11px 12px;border:1px solid rgba(255,198,73,.23);border-radius:11px;background:rgba(65,45,12,.18);color:#b7c9da;font-size:10px;line-height:1.45}.operator-sms-consent input{margin-top:2px;accent-color:#21b7ff}
.operator-sms-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:12px}.operator-sms-actions button{min-height:38px;padding:9px 15px;border:1px solid #4fc9f4;border-radius:10px;background:linear-gradient(135deg,#0f72ff,#18b7ef);color:#fff!important;font-weight:900;cursor:pointer}.operator-sms-actions button.secondary{border-color:#28557b;background:#0a2039;color:#c8dcec!important}.operator-sms-actions button:disabled{opacity:.5;cursor:not-allowed}
.operator-sms-status{margin-top:11px;padding:10px 12px;border-radius:10px;font-size:10px;font-weight:800}.operator-sms-status.hidden{display:none}.operator-sms-status.loading,.operator-sms-status.info{border:1px solid rgba(76,189,255,.3);background:rgba(18,75,108,.25);color:#8bdcff}.operator-sms-status.success{border:1px solid rgba(48,224,151,.3);background:rgba(15,82,56,.28);color:#79edb5}.operator-sms-status.error{border:1px solid rgba(255,91,111,.32);background:rgba(91,24,35,.3);color:#ff9aa7}
.admin-order-result>.operator-sms-panel{margin-bottom:16px}
@media(max-width:1050px){.operator-sms-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.operator-sms-grid{grid-template-columns:1fr}.operator-sms-message{grid-column:1}.operator-sms-head,.operator-sms-actions{flex-direction:column}.operator-sms-actions button{width:100%}}


/* V31.50 — storico SMS operatore */
.operator-sms-history{margin-top:16px;padding-top:15px;border-top:1px solid rgba(67,165,255,.18)}
.operator-sms-history-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.operator-sms-history-head>div{display:flex;flex-direction:column;gap:3px}.operator-sms-history-head strong{font-size:12px;color:#ecf7ff}.operator-sms-history-head span{font-size:9px;color:#7896b3}
.operator-sms-history-head button{padding:7px 10px;border:1px solid #28557b;border-radius:9px;background:#0a2039;color:#c8dcec;font-size:9px;font-weight:900;cursor:pointer}
.operator-sms-history-list{display:grid;gap:8px;max-height:300px;overflow:auto;padding-right:3px}
.operator-sms-history-item{padding:11px 12px;border:1px solid rgba(68,165,255,.22);border-radius:11px;background:rgba(5,22,40,.66)}
.operator-sms-history-item.success{border-left:3px solid #31df97}.operator-sms-history-item.error{border-left:3px solid #ff6477}
.operator-sms-history-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.operator-sms-history-item-head strong{font-size:10px;color:#edf8ff}.operator-sms-history-item.success .operator-sms-history-item-head strong{color:#7bedba}.operator-sms-history-item.error .operator-sms-history-item-head strong{color:#ff9cab}.operator-sms-history-item-head span{font-size:8px;color:#7896b3;text-align:right;line-height:1.4}
.operator-sms-history-item p{margin:7px 0 0;color:#bdd0e2;font-size:10px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
.operator-sms-history-empty{padding:12px;border:1px dashed rgba(91,155,210,.25);border-radius:10px;color:#7896b3;font-size:10px;text-align:center}.operator-sms-history-empty.error{color:#ff9cab;border-color:rgba(255,100,119,.3)}
@media(max-width:650px){.operator-sms-history-item-head{flex-direction:column}.operator-sms-history-item-head span{text-align:left}}


/* V31.54 — sezione CEO Richieste e autorizzazioni. */
#nav button[data-page="adminRequestsAuthorizations"].problem-alert{color:#fff4ad;border-color:rgba(255,216,59,.78);background:linear-gradient(90deg,rgba(255,216,59,.22),#102a48)}
#nav button[data-page="adminRequestsAuthorizations"].problem-alert b{color:#ffd83b}
#nav button[data-page="adminRequestsAuthorizations"] .problem-count{background:#ffd83b;color:#2d2500}
.admin-requests-authorizations{display:grid;gap:18px}
.admin-requests-authorizations-head{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(135deg,var(--surface),var(--surface-soft))}
.admin-requests-authorizations-head h2{margin:7px 0;font-size:30px}.admin-requests-authorizations-head p{margin:0;color:var(--muted)}
.admin-requests-authorizations-head>strong{padding:10px 14px;border:1px solid var(--line);border-radius:999px;color:var(--muted);white-space:nowrap}
.admin-requests-authorizations-head>strong.has-pending{border-color:rgba(255,216,59,.72);background:rgba(255,216,59,.14);color:#ffe66d;box-shadow:0 0 20px rgba(255,216,59,.22)}
.admin-requests-authorizations-tabs{display:flex;flex-wrap:wrap;gap:9px;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--surface-soft)}
.admin-requests-authorizations-tabs button{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;padding:11px 13px;background:var(--surface);color:var(--text);font-weight:850;cursor:pointer}
.admin-requests-authorizations-tabs button.active{border-color:#4aa5ff;background:rgba(31,126,232,.18);box-shadow:0 0 0 2px rgba(31,126,232,.10)}
.admin-requests-authorizations-tabs button.has-pending{border-color:rgba(255,216,59,.62)}
.admin-requests-authorizations-tabs button i{display:grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:999px;background:#ffd83b;color:#2d2500;font-size:10px;font-style:normal;font-weight:950}
.admin-requests-authorizations-content{min-width:0}
@media(max-width:760px){.admin-requests-authorizations-head{align-items:flex-start;flex-direction:column}.admin-requests-authorizations-tabs{display:grid;grid-template-columns:1fr}.admin-requests-authorizations-tabs button{justify-content:space-between}}

/* V31.56 — Contrasto testi nelle schede payout su sfondo bianco */
.admin-main-wm-offer,
.admin-external-wm-card{color:#0f172a}
.admin-main-wm-offer h3,
.admin-main-wm-offer span,
.admin-main-wm-offer strong,
.admin-main-wm-offer label,
.admin-main-wm-offer th,
.admin-main-wm-offer td,
.admin-external-wm-card h3,
.admin-external-wm-card span,
.admin-external-wm-card strong,
.admin-external-wm-card label,
.admin-external-wm-card th,
.admin-external-wm-card td,
.admin-external-wm-card b,
.admin-external-wm-card .eyebrow{color:#0f172a}
.admin-main-wm-offer small,
.admin-external-wm-card p,
.admin-external-wm-card small{color:#334155}

/* ===== LORMAG NEXUS V32 — GENIO DIGITALE + GUIDA OPERATIVA ===== */
.ai-fab{
  position:fixed!important;right:22px!important;bottom:22px!important;z-index:45!important;
  display:flex;align-items:center;gap:11px;min-height:62px;padding:8px 18px 8px 8px!important;
  overflow:visible;border:1px solid rgba(111,229,255,.78)!important;border-radius:999px!important;
  background:
    radial-gradient(circle at 21% 20%,rgba(255,255,255,.32),transparent 24%),
    linear-gradient(120deg,#102a8c 0%,#3140cb 35%,#167fcf 67%,#09b8d3 100%)!important;
  color:#fff!important;box-shadow:0 18px 48px rgba(21,78,210,.42),0 0 0 4px rgba(50,213,255,.08),inset 0 1px 0 rgba(255,255,255,.3)!important;
  isolation:isolate;transform-origin:85% 85%;transition:transform .2s ease,box-shadow .2s ease,filter .2s ease;
}
.ai-fab:hover{transform:translateY(-3px) scale(1.02);filter:saturate(1.12);box-shadow:0 22px 58px rgba(34,83,228,.52),0 0 30px rgba(35,219,255,.25),inset 0 1px 0 rgba(255,255,255,.38)!important}
.ai-fab:focus-visible{outline:3px solid #ffd66b;outline-offset:4px}
.ai-fab::before,.ai-fab::after{content:"";position:absolute;pointer-events:none;z-index:-1;border-radius:50%;filter:blur(8px);opacity:.7}
.ai-fab::before{width:42px;height:22px;left:12px;bottom:-9px;background:linear-gradient(90deg,rgba(53,223,255,.2),rgba(121,66,255,.9));animation:nexusGenieMistV32 3.8s ease-in-out infinite}
.ai-fab::after{width:25px;height:25px;left:26px;top:-12px;border:2px solid rgba(138,103,255,.52);border-left-color:transparent;background:transparent;animation:nexusGenieCurlV32 4.6s linear infinite}
.ai-genie-orb{position:relative;display:grid;place-items:center;width:46px;height:46px;flex:0 0 46px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#fff 0 4%,#77efff 16%,#278aff 44%,#4430c9 72%,#171454 100%);box-shadow:0 0 18px rgba(90,233,255,.92),inset 0 -8px 14px rgba(15,8,77,.45);border:1px solid rgba(255,255,255,.72)}
.ai-genie-orb::before{content:"";position:absolute;inset:6px;border-radius:50%;border:1px solid rgba(255,214,107,.62);animation:nexusGenieOrbitV32 4s linear infinite}
.ai-genie-orb b{font-size:19px;color:#fff4b4;text-shadow:0 0 9px #fff,0 0 17px #ffd766;font-weight:900;animation:nexusGenieStarV32 1.9s ease-in-out infinite}
.ai-genie-smoke{position:absolute;left:21px;bottom:-15px;width:20px;height:26px;border-radius:60% 40% 70% 30%;background:linear-gradient(180deg,rgba(53,227,255,.84),rgba(98,58,232,.18));filter:blur(3px);transform:rotate(12deg);z-index:-1;animation:nexusGenieSmokeV32 3.2s ease-in-out infinite}
.ai-fab-copy{display:grid;text-align:left;line-height:1.05;white-space:nowrap}.ai-fab-copy strong{font-size:14px;letter-spacing:.02em}.ai-fab-copy small{margin-top:5px;color:#d9f9ff;font-size:9px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.ai-fab i{position:absolute!important;right:-3px!important;top:-5px!important;display:grid!important;place-items:center!important;min-width:22px!important;height:22px!important;padding:0 5px!important;border:2px solid #fff7ce!important;border-radius:999px!important;background:linear-gradient(135deg,#ffe98a,#e7a929)!important;color:#17234d!important;font-size:9px!important;font-style:normal!important;font-weight:950!important;box-shadow:0 0 0 3px rgba(255,202,65,.15),0 4px 14px rgba(60,39,0,.3)!important}
.ai-fab i.hidden{display:none!important}
.ai-fab.ai-answer-ready{animation:nexusGenieReadyV32 1.8s ease-in-out infinite!important}
.ai-drawer{border:1px solid rgba(94,217,255,.38)!important;background:linear-gradient(165deg,rgba(8,18,58,.98),rgba(16,30,83,.98) 56%,rgba(21,20,72,.98))!important;box-shadow:0 28px 90px rgba(4,10,42,.72),0 0 45px rgba(32,158,255,.18)!important}
.ai-drawer::before{content:"";position:absolute;inset:0 0 auto;height:5px;border-radius:inherit;background:linear-gradient(90deg,#27ddff,#7559ff,#f1c85b,#27ddff);background-size:200% 100%;animation:nexusAiShimmerV32 6s linear infinite}
.ai-head .ai-orb{background:radial-gradient(circle at 35% 25%,#fff,#68e8ff 18%,#2f78ff 48%,#5035c8 78%)!important;color:#fff7c0!important;border-color:#8cefff!important;box-shadow:0 0 25px rgba(57,214,255,.6)!important}
.ai-body .msg{border-color:rgba(89,167,255,.28);background:rgba(10,28,74,.74)}.ai-body .msg.bot{border-left:3px solid #3fd7ff}.ai-body .msg.user{background:linear-gradient(135deg,#3046bb,#176ea7);border-color:rgba(121,230,255,.6)}
.ai-body .msg.pending{border-color:#d6ab42!important;background:rgba(77,58,17,.58)!important}.ai-body .msg.error{border-color:#a84d68!important;background:rgba(66,19,39,.64)!important}.ai-body .msg.thinking{animation:aiThinking 1.1s ease-in-out infinite}
.quick button{border-color:rgba(78,209,255,.3);background:rgba(25,57,132,.62);color:#dffaff}.quick button:hover{border-color:#f1c85b;color:#fff7c7;background:rgba(54,63,148,.8)}
.ai-input{border-top-color:rgba(81,202,255,.26)!important}.ai-input input{border-color:rgba(85,206,255,.32)!important;background:#071839!important}.ai-input button{background:linear-gradient(135deg,#3862e8,#18bfd0)!important;box-shadow:0 8px 22px rgba(28,127,222,.34)}

.operator-address-field{grid-column:span 2}.operator-address-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.operator-address-control button{height:43px;padding:0 14px;border:1px solid rgba(65,211,255,.5);border-radius:10px;background:linear-gradient(135deg,#213fa9,#149bbf);color:#fff;font-size:10px;font-weight:900;white-space:nowrap}.operator-address-verification{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:7px;padding:9px 11px;border:1px solid rgba(96,150,198,.2);border-radius:9px;background:rgba(7,26,50,.45);color:#9eb9d1;font-size:10px;line-height:1.5}.operator-address-verification.confirmed{border-color:rgba(47,207,151,.5);background:rgba(11,79,63,.32);color:#8cf3c9}.operator-address-verification.plausible,.operator-address-verification.loading{border-color:rgba(235,187,74,.48);background:rgba(82,62,17,.3);color:#f2cd73}.operator-address-verification.not_found,.operator-address-verification.error{border-color:rgba(205,83,113,.5);background:rgba(82,23,42,.3);color:#ffb8c8}.operator-address-verification span{flex:1 1 100%}.operator-address-verification button{border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;padding:6px 9px;font-size:9px;font-weight:900}.operator-address-verification small{opacity:.78}

.nexus-leader-room,.nexus-ai-operations{display:grid;gap:16px}.nexus-leader-hero{background:linear-gradient(135deg,rgba(20,65,144,.92),rgba(25,24,91,.95))!important}.nexus-leader-operator-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}.nexus-leader-operator{display:grid;gap:13px;padding:17px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(155deg,rgba(12,35,68,.86),rgba(8,22,43,.92));box-shadow:0 12px 28px rgba(0,0,0,.16)}.nexus-leader-operator.alert{border-color:#e5a641;box-shadow:0 0 0 3px rgba(229,166,65,.08),0 12px 28px rgba(0,0,0,.16)}.nexus-leader-operator-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.nexus-leader-operator-head>div{display:flex;align-items:center;gap:8px}.nexus-leader-operator-head i{width:9px;height:9px;border-radius:50%;background:#6c8298;box-shadow:0 0 10px currentColor}.nexus-leader-operator-head i.state-calling{background:#38d69a}.nexus-leader-operator-head i.state-aftercall{background:#efba4d}.nexus-leader-operator-head span{font-size:10px;color:var(--muted)}.nexus-leader-operator-metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.nexus-leader-operator-metrics span{display:flex;justify-content:space-between;padding:8px;border-radius:9px;background:rgba(40,83,129,.2);font-size:10px}.nexus-leader-operator p{margin:0;color:#efc56e;font-size:10px;line-height:1.5}.nexus-ai-readonly,.nexus-ai-executive{align-self:center;padding:7px 10px;border:1px solid #e3bd59;border-radius:999px;color:#f0cc70;font-size:9px;font-weight:900;letter-spacing:.12em}.nexus-ai-question-list{display:grid;gap:11px}.nexus-ai-question-card{display:grid;gap:9px;padding:15px;border:1px solid var(--line);border-radius:13px;background:rgba(10,31,59,.62)}.nexus-ai-question-card>div{display:grid;gap:5px}.nexus-ai-question-card span{font-size:9px;color:var(--muted)}.nexus-ai-question-card p{margin:0;color:#a9c4dc;font-size:11px}.nexus-ai-action-list{display:grid;gap:9px}.nexus-ai-action-list article{display:grid;grid-template-columns:30px 1fr;gap:10px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:11px;background:rgba(16,44,80,.5)}.nexus-ai-action-list article b{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#254fc0;color:#fff}

.nexus-payout-budget{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:16px;padding:14px;border:1px solid rgba(61,214,255,.32);border-radius:16px;background:linear-gradient(135deg,rgba(22,63,145,.46),rgba(39,31,116,.38))}.nexus-payout-budget>div{display:grid;gap:5px;padding:10px}.nexus-payout-budget span{color:#78dff5;font-size:9px;font-weight:900;letter-spacing:.08em}.nexus-payout-budget strong{font-size:23px}.nexus-payout-budget small{color:var(--muted);font-size:9px}.nexus-authorization-state{display:inline-flex;width:max-content;margin-bottom:7px;padding:5px 8px;border-radius:999px;font-size:8px;font-weight:950;letter-spacing:.09em}.nexus-authorization-state.ready{background:rgba(35,179,122,.17);border:1px solid rgba(61,221,157,.45);color:#72e8b5}.nexus-authorization-state.waiting{background:rgba(210,157,55,.15);border:1px solid rgba(238,190,87,.48);color:#f1ca70}.nexus-uncovered{border-color:rgba(226,174,70,.48)!important}.approve-final:disabled,.payment-paid:disabled{opacity:.38;cursor:not-allowed;filter:grayscale(.65)}.finance-request-card>strong small{display:block;margin-top:4px;color:var(--muted);font-size:9px}

.nexus-ceo-guide{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.nexus-ceo-alert{display:grid;align-content:start;gap:11px;min-height:160px;padding:17px;border:1px solid rgba(70,147,215,.28);border-radius:17px;background:linear-gradient(155deg,rgba(10,34,68,.9),rgba(8,24,48,.94));box-shadow:0 14px 34px rgba(0,0,0,.14)}.nexus-ceo-alert.level-success{border-color:rgba(48,210,151,.42)}.nexus-ceo-alert.level-warning,.nexus-ceo-alert.level-order_now,.nexus-ceo-alert.level-plan{border-color:rgba(233,181,68,.48)}.nexus-ceo-alert.level-critical{border-color:rgba(221,80,112,.56)}.nexus-ceo-alert-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.nexus-ceo-alert-head span{color:#5edbf3;font-size:9px;font-weight:950;letter-spacing:.1em}.nexus-ceo-alert-head strong{font-size:16px;text-align:right}.nexus-ceo-alert p{margin:0;color:#b9cee0;font-size:11px;line-height:1.55}.nexus-ceo-alert>small{color:var(--muted);font-size:9px}.nexus-ceo-alert>button{justify-self:start;border:1px solid rgba(81,208,255,.42);border-radius:9px;background:rgba(32,80,170,.46);color:#fff;padding:8px 11px;font-size:9px;font-weight:900}.nexus-progress{height:8px;overflow:hidden;border-radius:999px;background:rgba(82,118,154,.22)}.nexus-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#23c9e9,#6554e8,#e6bb51);box-shadow:0 0 14px rgba(59,218,255,.44)}.nexus-cycle-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px}.nexus-cycle-grid span{display:grid;gap:3px;padding:8px;border-radius:9px;background:rgba(43,86,139,.2);color:var(--muted);font-size:9px}.nexus-cycle-grid b{color:var(--text);font-size:13px}.nexus-inventory-suggestions{display:grid;gap:7px}.nexus-inventory-suggestions>div{display:grid;grid-template-columns:minmax(100px,1fr) minmax(130px,1.4fr) auto;gap:8px;align-items:center;padding:8px;border-radius:9px;background:rgba(44,83,127,.2);font-size:9px}.nexus-inventory-suggestions span{color:var(--muted)}.nexus-inventory-suggestions strong{text-align:right;color:#efd075}.nexus-ceo-guide.compact{margin:0 0 16px}.nexus-ceo-guide.compact .nexus-ceo-alert{min-height:145px}

.nexus-ai-admin-panel{display:grid;gap:18px;margin-top:16px}.nexus-ai-settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.nexus-ai-settings-grid label{display:grid;gap:6px;color:var(--muted);font-size:9px;font-weight:800}.nexus-ai-settings-grid input{height:42px;border:1px solid var(--line);border-radius:9px;background:var(--input);color:var(--text);padding:0 10px}.nexus-ai-settings-grid button{align-self:end;height:42px}.nexus-ai-admin-questions{display:grid;gap:11px}.nexus-ai-admin-questions>article{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;border:1px solid var(--line);border-radius:13px;background:rgba(11,32,60,.56)}.nexus-ai-admin-questions>article>div,.nexus-ai-admin-questions .full{grid-column:1/-1}.nexus-ai-admin-questions>article>div{display:grid;gap:5px}.nexus-ai-admin-questions span{color:var(--muted);font-size:9px}.nexus-ai-admin-questions label{display:grid;gap:5px;color:var(--muted);font-size:9px}.nexus-ai-admin-questions input,.nexus-ai-admin-questions textarea{border:1px solid var(--line);border-radius:9px;background:var(--input);color:var(--text);padding:9px}.nexus-ai-admin-questions textarea{min-height:90px;resize:vertical}.nexus-ai-admin-questions .nexus-ai-scope-help{margin:5px 0 0;color:#75cfe5;font-size:9px}.nexus-ai-question-heading{padding-right:42px}.nexus-ai-shared-fields{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px;border:1px dashed rgba(70,154,205,.35);border-radius:10px;background:rgba(11,48,78,.32)}.nexus-ai-answer-actions{display:flex!important;flex-wrap:wrap;gap:8px;align-items:center}.nexus-ai-admin-questions .nexus-ai-answer-actions button{justify-self:start;border:1px solid transparent;border-radius:9px;color:#fff;padding:10px 13px;font-weight:900;cursor:pointer}.nexus-ai-answer-actions .shared{background:linear-gradient(135deg,#3155d4,#16aebf)}.nexus-ai-answer-actions .private{border-color:rgba(71,218,171,.55)!important;background:linear-gradient(135deg,#157552,#1ab68c)}.nexus-ai-answer-actions .dismiss{border-color:rgba(218,171,79,.5)!important;background:rgba(116,78,24,.72);color:#ffe0a1!important}.nexus-ai-answer-actions .delete{border-color:rgba(232,87,112,.55)!important;background:rgba(116,31,49,.78);color:#ffd2da!important}.nexus-ai-answer-actions button:hover{filter:brightness(1.09)}

/* V43 — controllo CEO del profilo OpenAI */
.nexus-ai-settings-form-v43{display:grid;gap:15px}
.nexus-openai-control-v43{display:grid;gap:14px;padding:17px;border:1px solid rgba(73,207,255,.36);border-radius:16px;background:radial-gradient(circle at 92% 0,rgba(80,73,225,.24),transparent 34%),linear-gradient(145deg,rgba(11,39,83,.9),rgba(11,25,58,.95));box-shadow:inset 0 1px 0 rgba(255,255,255,.05)}
.nexus-openai-control-head-v43{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}
.nexus-openai-control-head-v43 h3{margin:4px 0 6px}
.nexus-openai-control-head-v43 p{margin:0;max-width:720px;color:#a9c5de;font-size:10px;line-height:1.55}
.nexus-openai-connection-v43{flex:0 0 auto;padding:7px 10px;border:1px solid currentColor;border-radius:999px;font-size:8px;font-weight:950;letter-spacing:.08em}
.nexus-openai-connection-v43.connected{color:#68e1b1;background:rgba(26,129,91,.17)}
.nexus-openai-connection-v43.disconnected{color:#ffb2c0;background:rgba(144,41,66,.2)}
.nexus-openai-selector-v43{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(280px,1.4fr);gap:14px;align-items:end}
.nexus-openai-selector-v43 label{display:grid;gap:7px;color:#8ddff0;font-size:9px;font-weight:900;letter-spacing:.04em}
.nexus-openai-selector-v43 select{width:100%;height:44px;border:1px solid rgba(84,203,244,.42);border-radius:10px;background:#091d3d;color:#fff;padding:0 11px;font-weight:800;outline:none}
.nexus-openai-selector-v43 select:focus{border-color:#62e3fb;box-shadow:0 0 0 3px rgba(51,206,240,.12)}
.nexus-openai-selector-v43 p{margin:0;padding:10px 12px;border-left:3px solid #39cde8;border-radius:0 9px 9px 0;background:rgba(30,83,139,.24);color:#c2d7e8;font-size:10px;line-height:1.5}
.nexus-openai-runtime-v43{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.nexus-openai-runtime-v43 article{display:grid;gap:5px;padding:11px 12px;border:1px solid rgba(92,154,210,.24);border-radius:11px;background:rgba(7,27,61,.58)}
.nexus-openai-runtime-v43 span{color:#7fa2c1;font-size:8px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
.nexus-openai-runtime-v43 strong{color:#edf9ff;font-size:13px}
.nexus-openai-maximum-warning-v43{display:flex;gap:10px;align-items:center;padding:11px 13px;border:1px solid rgba(242,190,75,.46);border-radius:11px;background:rgba(108,72,17,.28);color:#ffe29a}
.nexus-openai-maximum-warning-v43.hidden{display:none}
.nexus-openai-maximum-warning-v43 strong{font-size:10px;white-space:nowrap}
.nexus-openai-maximum-warning-v43 span{font-size:9px;line-height:1.45}
.nexus-ai-save-v43{justify-self:start;min-width:250px;height:44px}

@keyframes nexusGenieMistV32{0%,100%{transform:translateX(-4px) scale(.85);opacity:.4}50%{transform:translateX(13px) scale(1.15);opacity:.82}}
@keyframes nexusGenieCurlV32{to{transform:rotate(360deg) scale(.82)}}
@keyframes nexusGenieOrbitV32{to{transform:rotate(360deg)}}
@keyframes nexusGenieStarV32{0%,100%{transform:scale(.86) rotate(-8deg);opacity:.74}50%{transform:scale(1.16) rotate(8deg);opacity:1}}
@keyframes nexusGenieSmokeV32{0%,100%{transform:translate(0,4px) rotate(8deg) scale(.85);opacity:.35}50%{transform:translate(7px,-8px) rotate(-12deg) scale(1.18);opacity:.8}}
@keyframes nexusGenieReadyV32{0%,100%{box-shadow:0 18px 48px rgba(21,78,210,.42),0 0 0 4px rgba(50,213,255,.08),inset 0 1px 0 rgba(255,255,255,.3)}50%{box-shadow:0 20px 55px rgba(54,75,232,.6),0 0 0 8px rgba(255,210,80,.12),0 0 34px rgba(58,221,255,.35),inset 0 1px 0 rgba(255,255,255,.36)}}
@keyframes nexusAiShimmerV32{to{background-position:200% 0}}

@media(max-width:900px){.nexus-ceo-guide{grid-template-columns:1fr}.nexus-ai-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nexus-payout-budget{grid-template-columns:1fr}.nexus-inventory-suggestions>div{grid-template-columns:1fr}.nexus-inventory-suggestions strong{text-align:left}.nexus-openai-selector-v43{grid-template-columns:1fr}}
@media(max-width:640px){.ai-fab{right:12px!important;bottom:12px!important;min-height:56px;padding-right:13px!important}.ai-genie-orb{width:40px;height:40px;flex-basis:40px}.ai-fab-copy small{display:none}.operator-address-field{grid-column:auto}.operator-address-control{grid-template-columns:1fr}.operator-address-control button{width:100%}.nexus-ai-settings-grid,.nexus-ai-admin-questions>article,.nexus-ai-shared-fields,.nexus-openai-runtime-v43{grid-template-columns:1fr}.nexus-ai-admin-questions>article>div,.nexus-ai-admin-questions .full{grid-column:auto}.nexus-ai-answer-actions{display:grid!important}.nexus-ai-answer-actions button{width:100%}.nexus-ceo-alert-head,.nexus-openai-control-head-v43{display:grid}.nexus-ceo-alert-head strong{text-align:left}.nexus-openai-connection-v43{justify-self:start}.nexus-openai-maximum-warning-v43{align-items:flex-start;flex-direction:column}.nexus-ai-save-v43{width:100%;min-width:0}}
@media(prefers-reduced-motion:reduce){.ai-fab,.ai-fab::before,.ai-fab::after,.ai-genie-orb::before,.ai-genie-orb b,.ai-genie-smoke,.ai-drawer::before{animation:none!important;transition:none!important}}
/* ===== END LORMAG NEXUS V32 ===== */

/* ===== LORMAG NEXUS V47 — OPENAI ADDRESS VERIFY + ADAPTIVE GENIE UI ===== */
.operator-address-control{grid-template-columns:minmax(0,1fr) minmax(235px,270px);gap:11px}
.operator-address-control .operator-address-genie-button{
  position:relative;isolation:isolate;overflow:visible;display:flex;align-items:center;justify-content:flex-start;gap:10px;
  min-height:52px;height:52px;padding:5px 15px 5px 7px;border:1px solid rgba(118,232,255,.72);border-radius:15px;
  background:linear-gradient(120deg,#172b8e 0%,#3149d4 39%,#168bcc 72%,#12b7c7 100%);color:#fff;
  box-shadow:0 12px 30px rgba(27,74,197,.3),0 0 0 3px rgba(56,214,255,.08),inset 0 1px 0 rgba(255,255,255,.35);
  cursor:pointer;transform:translateZ(0);transition:transform .2s ease,box-shadow .2s ease,filter .2s ease
}
.operator-address-control .operator-address-genie-button:before{
  content:"";position:absolute;z-index:0;inset:1px;border-radius:13px;pointer-events:none;
  background:radial-gradient(circle at 18% 15%,rgba(255,255,255,.35),transparent 22%),linear-gradient(105deg,transparent 25%,rgba(255,255,255,.12) 48%,transparent 68%);
  background-size:auto,220% 100%;animation:nexusAddressButtonShineV47 5.2s linear infinite
}
.operator-address-genie-button:hover{transform:translateY(-2px);filter:saturate(1.12);box-shadow:0 17px 38px rgba(29,79,215,.4),0 0 24px rgba(45,218,255,.24),inset 0 1px 0 rgba(255,255,255,.42)!important}
.operator-address-genie-button:focus-visible{outline:3px solid #f5c957;outline-offset:4px}
.operator-address-genie-orb{
  position:relative;z-index:2;display:grid;place-items:center;flex:0 0 39px;width:39px;height:39px;border:1px solid rgba(255,255,255,.76);border-radius:50%;
  background:radial-gradient(circle at 35% 24%,#fff 0 5%,#83f3ff 17%,#308fff 46%,#4f36ce 73%,#191357 100%);
  color:#fff2af;font-size:17px;font-weight:950;text-shadow:0 0 8px #fff,0 0 17px #f3c95e;box-shadow:0 0 17px rgba(93,235,255,.88),inset 0 -7px 12px rgba(13,8,70,.48);
  animation:nexusAddressStarV47 2.1s ease-in-out infinite
}
.operator-address-genie-orb:after{content:"";position:absolute;inset:5px;border:1px solid rgba(255,217,107,.58);border-radius:50%;animation:nexusGenieOrbitV32 4.5s linear infinite}
.operator-address-genie-copy{position:relative;z-index:2;display:grid;min-width:0;text-align:left;line-height:1.05}.operator-address-genie-copy strong{color:#fff;font-size:12px;font-weight:950;letter-spacing:.01em;white-space:nowrap}.operator-address-genie-copy small{margin-top:5px;color:#d9f8ff;font-size:8px;font-weight:800;letter-spacing:.09em;text-transform:uppercase;white-space:nowrap}
.operator-address-genie-smoke{
  position:absolute;z-index:1;left:18px;bottom:-12px;width:34px;height:20px;border-radius:60% 40% 65% 35%;pointer-events:none;
  background:linear-gradient(90deg,rgba(57,229,255,.62),rgba(111,61,239,.4),transparent);filter:blur(5px);
  animation:nexusAddressSmokeV47 3.3s ease-in-out infinite
}

.operator-address-verification{
  --address-card-bg:linear-gradient(145deg,#0a1d3b,#101c4a);
  --address-card-text:#f7fbff;--address-card-muted:#b7c9dc;--address-card-line:rgba(107,184,255,.28);--address-card-accent:#68dcf4;--address-card-chip:#18376a;
  position:relative;isolation:isolate;overflow:hidden;display:block!important;margin-top:10px;padding:13px 15px!important;border:1px solid var(--address-card-line)!important;border-radius:16px!important;
  background:var(--address-card-bg)!important;color:var(--address-card-text)!important;font-size:11px!important;line-height:1.5!important;
  box-shadow:0 12px 30px rgba(4,14,39,.18),inset 0 1px 0 rgba(255,255,255,.05)
}
.operator-address-verification.rich:before{content:"";position:absolute;z-index:0;inset:-50% -12% auto 58%;height:170px;border-radius:50%;background:radial-gradient(circle,rgba(74,197,255,.16),transparent 66%);pointer-events:none}
.operator-address-verification.rich{padding:0!important}
.operator-address-verification.confirmed{--address-card-bg:linear-gradient(145deg,#071e2d,#0d3a40);--address-card-line:rgba(89,232,190,.48);--address-card-accent:#71e6bd;--address-card-chip:#124c40;color:#f5fffb!important}
.operator-address-verification.plausible,.operator-address-verification.loading{--address-card-bg:linear-gradient(145deg,#0b1b39,#26214c);--address-card-line:rgba(239,197,91,.48);--address-card-accent:#f0cb68;--address-card-chip:#4b3c1c;color:#f8fbff!important}
.operator-address-verification.not_found,.operator-address-verification.error{--address-card-bg:linear-gradient(145deg,#251329,#431b32);--address-card-line:rgba(239,114,143,.5);--address-card-accent:#ff9db4;--address-card-chip:#5b2135;color:#fff8fa!important}
.nexus-address-card-v47,.nexus-address-loading-v47{position:relative;z-index:1;color:var(--address-card-text)}
.nexus-address-card-v47{display:grid;gap:13px;padding:16px}
.nexus-address-head-v47{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center}
.nexus-address-orb-v47{position:relative;display:grid;place-items:center;width:42px;height:42px;border:1px solid rgba(255,255,255,.48);border-radius:14px;background:radial-gradient(circle at 34% 20%,#fff 0 5%,var(--address-card-accent) 17%,#3153ca 68%,#171451 100%);color:#fff;font-size:18px;font-weight:950;box-shadow:0 0 18px color-mix(in srgb,var(--address-card-accent) 44%,transparent),inset 0 1px 0 rgba(255,255,255,.36)}
.nexus-address-head-v47>div{display:grid;gap:3px}.nexus-address-head-v47>div>strong{color:var(--address-card-text);font-size:14px;line-height:1.2}.nexus-address-head-v47>div>small{color:var(--address-card-muted);font-size:9px}.nexus-address-head-v47>em{padding:6px 8px;border:1px solid color-mix(in srgb,var(--address-card-accent) 56%,transparent);border-radius:999px;background:var(--address-card-chip);color:var(--address-card-accent);font-size:8px;font-style:normal;font-weight:950;letter-spacing:.08em;white-space:nowrap}
.nexus-address-format-v47{display:grid;gap:5px;padding:13px 14px;border:1px solid var(--address-card-line);border-radius:12px;background:rgba(255,255,255,.055)}.nexus-address-format-v47 span{color:var(--address-card-accent);font-size:8px;font-weight:950;letter-spacing:.12em}.nexus-address-format-v47 strong{color:var(--address-card-text);font-size:13px;line-height:1.45;overflow-wrap:anywhere}
.nexus-address-confidence-v47{display:grid;grid-template-columns:auto minmax(90px,1fr) auto;gap:9px;align-items:center}.nexus-address-confidence-v47>span{color:var(--address-card-muted);font-size:9px}.nexus-address-confidence-v47>div{height:6px;overflow:hidden;border-radius:999px;background:rgba(255,255,255,.1)}.nexus-address-confidence-v47 i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#36bfe7,var(--address-card-accent));box-shadow:0 0 10px var(--address-card-accent)}.nexus-address-confidence-v47>strong{color:var(--address-card-text);font-size:10px}
.nexus-address-components-v47{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.nexus-address-components-v47>div{display:grid;gap:4px;padding:9px;border:1px solid var(--address-card-line);border-radius:10px;background:rgba(255,255,255,.045);min-width:0}.nexus-address-components-v47 span{color:var(--address-card-muted);font-size:8px}.nexus-address-components-v47 strong{color:var(--address-card-text);font-size:10px;overflow-wrap:anywhere}
.nexus-address-note-v47{display:grid;grid-template-columns:25px minmax(0,1fr);gap:9px;align-items:start;padding:10px 11px;border-left:3px solid var(--address-card-accent);border-radius:0 10px 10px 0;background:rgba(255,255,255,.045)}.nexus-address-note-v47>span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:var(--address-card-chip);color:var(--address-card-accent);font-size:10px}.nexus-address-note-v47 p{margin:1px 0 0;color:var(--address-card-text);font-size:10px;line-height:1.5}
.nexus-address-alert-v47{display:grid;gap:6px;padding:10px 12px;border:1px solid var(--address-card-line);border-radius:10px;background:rgba(255,255,255,.04)}.nexus-address-alert-v47 strong{color:var(--address-card-text);font-size:9px}.nexus-address-alert-v47 span,.nexus-address-alert-v47 li{color:var(--address-card-muted);font-size:9px;line-height:1.45}.nexus-address-alert-v47 ul{display:grid;gap:3px;margin:0;padding-left:17px}
.nexus-address-footer-v47{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding-top:2px}.nexus-address-apply-v47{flex:0 0 auto;min-height:38px!important;height:38px!important;padding:0 14px!important;border:1px solid color-mix(in srgb,var(--address-card-accent) 70%,#fff)!important;border-radius:10px!important;background:linear-gradient(135deg,#2857d4,#13aabe)!important;color:#fff!important;font-size:9px!important;font-weight:950!important;box-shadow:0 8px 18px rgba(24,89,199,.24)!important;cursor:pointer}.nexus-address-apply-v47:hover{filter:brightness(1.1)}
.nexus-address-sources-v47{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px 9px;min-width:0}.nexus-address-sources-v47>span{flex:1 1 100%;color:#fff;font-family:Roboto,sans-serif;font-size:12px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:1.2;text-align:right;white-space:nowrap}.nexus-address-sources-v47 a{color:var(--address-card-accent)!important;font-size:8px!important;font-weight:800;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.nexus-address-loading-v47{display:flex;align-items:center;gap:12px;padding:14px 16px}.nexus-address-loading-v47>div{display:grid;gap:3px}.nexus-address-loading-v47 strong{color:var(--address-card-text);font-size:12px}.nexus-address-loading-v47 small{color:var(--address-card-muted);font-size:9px}.nexus-address-loading-v47 .nexus-address-orb-v47{animation:nexusAddressLoadingV47 1.8s ease-in-out infinite}

html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .operator-address-genie-button{box-shadow:0 12px 28px rgba(34,78,180,.22),0 0 0 3px rgba(42,177,213,.08),inset 0 1px 0 rgba(255,255,255,.42)}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .operator-address-verification{
  --address-card-bg:linear-gradient(145deg,#ffffff,#f2f7fd);--address-card-text:#14233a;--address-card-muted:#52677d;--address-card-line:rgba(38,111,179,.2);--address-card-accent:#126eac;--address-card-chip:#e5f3fd;
  color:var(--address-card-text)!important;box-shadow:0 12px 30px rgba(46,80,116,.11),inset 0 1px 0 #fff
}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .operator-address-verification.confirmed{--address-card-bg:linear-gradient(145deg,#ffffff,#ecfbf5);--address-card-text:#102b25;--address-card-muted:#426c61;--address-card-line:rgba(30,143,105,.22);--address-card-accent:#087a58;--address-card-chip:#dff7ed}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .operator-address-verification.plausible,
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .operator-address-verification.loading{--address-card-bg:linear-gradient(145deg,#ffffff,#fff9e9);--address-card-text:#272315;--address-card-muted:#6d6247;--address-card-line:rgba(169,123,19,.23);--address-card-accent:#8a5b00;--address-card-chip:#fff0bf}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .operator-address-verification.not_found,
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .operator-address-verification.error{--address-card-bg:linear-gradient(145deg,#ffffff,#fff1f4);--address-card-text:#381823;--address-card-muted:#805565;--address-card-line:rgba(181,57,91,.22);--address-card-accent:#a72d50;--address-card-chip:#ffe1e9}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .nexus-address-format-v47,
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .nexus-address-components-v47>div,
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .nexus-address-note-v47,
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .nexus-address-alert-v47{background:rgba(255,255,255,.72)}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .nexus-address-confidence-v47>div{background:rgba(38,74,105,.12)}
html:is([data-nexus-theme="morning"],[data-nexus-theme="transition"]) body.operator-client-theme .nexus-address-sources-v47>span{color:#5e5e5e}

@keyframes nexusAddressButtonShineV47{to{background-position:0,220% 0}}
@keyframes nexusAddressStarV47{0%,100%{transform:scale(.92) rotate(-5deg)}50%{transform:scale(1.04) rotate(5deg)}}
@keyframes nexusAddressSmokeV47{0%,100%{transform:translate(-4px,3px) scale(.85);opacity:.35}50%{transform:translate(12px,-5px) scale(1.15);opacity:.8}}
@keyframes nexusAddressLoadingV47{0%,100%{transform:scale(.9);filter:saturate(.9)}50%{transform:scale(1.06);filter:saturate(1.25)}}
@media(max-width:980px){.nexus-address-components-v47{grid-template-columns:repeat(2,minmax(0,1fr))}.nexus-address-footer-v47{align-items:stretch;flex-direction:column}.nexus-address-sources-v47{justify-content:flex-start}.nexus-address-sources-v47>span{text-align:left}}
@media(max-width:640px){.operator-address-control{grid-template-columns:1fr}.operator-address-control .operator-address-genie-button{width:100%;max-width:none}.nexus-address-head-v47{grid-template-columns:42px minmax(0,1fr)}.nexus-address-head-v47>em{grid-column:1/-1;justify-self:start}.nexus-address-components-v47{grid-template-columns:1fr}.nexus-address-apply-v47{width:100%}.operator-address-genie-copy strong,.operator-address-genie-copy small{white-space:normal}}
@media(prefers-reduced-motion:reduce){.operator-address-genie-button:before,.operator-address-genie-orb,.operator-address-genie-orb:after,.operator-address-genie-smoke,.nexus-address-loading-v47 .nexus-address-orb-v47{animation:none!important}}
/* ===== END LORMAG NEXUS V47 ===== */
/* ===== LORMAG NEXUS V31.35 — CEO NETTO INCASSATO 14 GIORNI ===== */
.ceo-net-chart{
  position:relative;display:grid!important;grid-template-columns:repeat(14,minmax(28px,1fr));
  align-items:stretch!important;gap:7px;height:255px!important;padding:18px 4px 28px!important;overflow:visible
}
.ceo-net-chart::before{
  content:"";position:absolute;left:4px;right:4px;top:50%;height:1px;background:rgba(113,173,221,.34);box-shadow:0 0 10px rgba(43,164,245,.12)
}
.ceo-net-day{position:relative;height:100%;min-width:0}
.ceo-net-bar{
  position:absolute;left:18%;width:64%;height:var(--net-height);border-radius:7px 7px 3px 3px;
  background:linear-gradient(180deg,#4fd7ff,#167fff);box-shadow:0 0 14px rgba(22,140,255,.18)
}
.ceo-net-day.positive .ceo-net-bar{bottom:50%}
.ceo-net-day.negative .ceo-net-bar{top:50%;border-radius:3px 3px 7px 7px;background:linear-gradient(180deg,#ff6f7f,#d93b52);box-shadow:0 0 14px rgba(217,59,82,.18)}
.ceo-net-day.zero .ceo-net-bar{top:calc(50% - 1px);height:2px;background:#527899;box-shadow:none;border-radius:3px}
.ceo-net-value{position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:8px;font-weight:900;color:#d8ebff;z-index:2}
.ceo-net-day.positive .ceo-net-value{bottom:calc(50% + var(--net-height) + 5px)}
.ceo-net-day.negative .ceo-net-value{top:calc(50% + var(--net-height) + 5px);color:#ff9ba6}
.ceo-net-day.zero .ceo-net-value{top:calc(50% - 17px);color:#7695b3}
.ceo-net-date{position:absolute;left:50%;bottom:-22px;transform:translateX(-50%);font-size:8px;color:#6f8eac;white-space:nowrap}
@media(max-width:900px){.ceo-net-chart{gap:4px;overflow-x:auto;grid-template-columns:repeat(14,minmax(38px,1fr))}.ceo-net-value{font-size:7px}}
/* ===== END LORMAG NEXUS V31.35 ===== */

/* ===== LORMAG NEXUS V51 — GRAFICO PREVISTO / INCASSATO ===== */
.ceo-net-section-v51{display:grid;gap:16px}
.ceo-net-head-v51{align-items:flex-start}
.ceo-net-head-v51>div{display:grid;gap:7px}
.ceo-net-head-v51 h3{margin:0}
.ceo-net-legend-v51{display:flex;flex-wrap:wrap;gap:7px 14px}
.ceo-net-legend-v51 span{display:flex;align-items:center;gap:6px;color:#829fba;font-size:8px;font-weight:850;letter-spacing:.035em}
.ceo-net-legend-v51 span::before{content:"";width:8px;height:8px;border-radius:3px;box-shadow:0 0 10px currentColor}
.ceo-net-legend-v51 .provisional::before{background:#f59e0b;color:#f59e0b}
.ceo-net-legend-v51 .actual::before{background:#168cff;color:#168cff}
.ceo-net-legend-v51 .negative::before{background:#e63e59;color:#e63e59}
.ceo-net-section-v51 .ceo-net-chart{height:340px!important;padding:24px 8px 30px!important;gap:10px}
.ceo-net-section-v51 .ceo-net-bar{left:14%;width:72%}
.ceo-net-section-v51 button.ceo-net-day{display:block;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:inherit;cursor:pointer;appearance:none;-webkit-appearance:none}
.ceo-net-section-v51 button.ceo-net-day:focus-visible{outline:2px solid #62d7ff;outline-offset:4px;border-radius:8px}
.ceo-net-section-v51 button.ceo-net-day.selected{filter:brightness(1.12)}
.ceo-net-section-v51 button.ceo-net-day.selected::after{content:"";position:absolute;inset:-5px 3px -25px;border:1px solid rgba(98,215,255,.4);border-radius:9px;pointer-events:none}
.ceo-net-day.state-provisional .ceo-net-bar{background:linear-gradient(180deg,#ffc24d,#ed8612);box-shadow:0 0 17px rgba(245,158,11,.26)}
.ceo-net-day.state-actual .ceo-net-bar{background:linear-gradient(180deg,#50d8ff,#167fff);box-shadow:0 0 17px rgba(22,140,255,.24)}
.ceo-net-day.state-mixed .ceo-net-bar{background:linear-gradient(180deg,#50d8ff 0 var(--actual-share),#ffc24d var(--actual-share) 100%);box-shadow:0 0 17px rgba(37,151,238,.2),0 0 12px rgba(245,158,11,.14)}
.ceo-net-day.state-expense .ceo-net-bar{background:linear-gradient(180deg,#ff7181,#d93b52);box-shadow:0 0 14px rgba(217,59,82,.2)}
.ceo-net-day.state-empty .ceo-net-bar{background:#527899;box-shadow:none}
.ceo-net-day.state-provisional .ceo-net-value{color:#ffd58a}
.ceo-net-day.state-actual .ceo-net-value{color:#c8edff}
.ceo-net-day.state-mixed .ceo-net-value{color:#e7f3ff}
.ceo-net-day.negative .ceo-net-bar,.ceo-net-day.negative.state-provisional .ceo-net-bar,.ceo-net-day.negative.state-actual .ceo-net-bar,.ceo-net-day.negative.state-mixed .ceo-net-bar{background:linear-gradient(180deg,#ff7181,#d93b52);box-shadow:0 0 16px rgba(217,59,82,.24)}
.ceo-net-day.negative .ceo-net-value,.ceo-net-day.negative.state-provisional .ceo-net-value,.ceo-net-day.negative.state-actual .ceo-net-value,.ceo-net-day.negative.state-mixed .ceo-net-value{color:#ff9ba6}
.ceo-net-day.zero .ceo-net-bar,.ceo-net-day.zero.state-provisional .ceo-net-bar,.ceo-net-day.zero.state-actual .ceo-net-bar,.ceo-net-day.zero.state-mixed .ceo-net-bar{top:calc(50% - 1px);height:2px;background:#527899;box-shadow:none;border-radius:3px}
.ceo-net-day.zero .ceo-net-value{color:#7695b3}
.ceo-net-explain-v52{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 14px;align-items:center;margin-top:12px;padding:11px 13px;border:1px solid #294f70;border-left:4px solid #4c789a;border-radius:11px;background:rgba(5,20,37,.72)}
.ceo-net-explain-v52>span{grid-row:1/3;padding:5px 8px;border-radius:7px;background:#15324e;color:#9fbcd5;font-size:8px;font-weight:950;letter-spacing:.07em;white-space:nowrap}
.ceo-net-explain-v52>strong{color:#eff8ff;font-size:12px}.ceo-net-explain-v52>small{color:#88a5be;font-size:9px}
.ceo-net-explain-v52.negative{border-left-color:#ed5067;background:rgba(69,18,32,.52)}.ceo-net-explain-v52.negative>span{background:#5c1f2e;color:#ffadba}
.ceo-net-explain-v52.provisional{border-left-color:#f59e0b}.ceo-net-explain-v52.provisional>span{background:#51370d;color:#ffd17c}
.ceo-net-explain-v52.actual{border-left-color:#168cff}.ceo-net-explain-v52.actual>span{background:#123d67;color:#a9e5ff}
.ceo-net-explain-v52.mixed{border-left-color:#43bfe8}.ceo-net-explain-v52.mixed>span{background:linear-gradient(90deg,#144b75,#573b0c);color:#e8f6ff}
.ceo-support-grid-v51{align-items:stretch;margin-top:0}
.ceo-support-grid-v51>.panel,.ceo-support-grid-v51>.ai-insight{margin:0;min-height:100%}
@media(max-width:980px){.ceo-net-head-v51{display:grid;gap:9px}.ceo-net-section-v51 .ceo-net-chart{height:310px!important;grid-template-columns:repeat(15,minmax(42px,1fr))!important;overflow-x:auto}.ceo-support-grid-v51{grid-template-columns:1fr}}
@media(max-width:640px){.ceo-net-section-v51 .ceo-net-chart{height:285px!important;padding-top:22px!important}.ceo-net-section-v51 .ceo-net-bar{left:18%;width:64%}.ceo-net-legend-v51{display:grid}.ceo-net-value{font-size:7px}.ceo-net-explain-v52{grid-template-columns:1fr;gap:5px}.ceo-net-explain-v52>span{grid-row:auto;justify-self:start}.ceo-net-explain-v52>strong{font-size:11px}}
/* ===== END LORMAG NEXUS V51 ===== */

/* ===== LORMAG NEXUS V43 — SCALA CONTROLLATA CRM + KPI ===== */
.ceo-scale-panel{margin:16px 0;border-color:#2f6387;background:linear-gradient(145deg,rgba(8,31,54,.98),rgba(5,21,38,.98))}
.ceo-scale-panel .panel-head>div h3{margin:0}.ceo-scale-panel .panel-head>div span{display:block;margin-top:4px;color:#809cb6;font-size:9px}
.ceo-scale-sync{padding:7px 10px;border-radius:999px;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.ceo-scale-sync.ok{color:#52ebb0;background:#0d4937}.ceo-scale-sync.pending{color:#ffd873;background:#4c3811}
.ceo-scale-metrics{display:grid;grid-template-columns:repeat(5,minmax(100px,1fr)) minmax(220px,1.8fr);gap:9px;margin-top:14px}.ceo-scale-metrics>div{padding:11px 12px;border:1px solid #214665;border-radius:11px;background:#06182b}.ceo-scale-metrics span{display:block;color:#7f9ab4;font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.ceo-scale-metrics strong{display:block;margin-top:5px;color:#f1f8ff;font-size:15px}.ceo-scale-metrics .action{border-color:#326d93;background:#09243d}.ceo-scale-metrics .action strong{font-size:10px;line-height:1.45;color:#bfe8ff}
.ceo-scale-advice-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:10px}.ceo-scale-advice{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:10px;align-items:start;padding:12px;border:1px solid #2b506e;border-radius:12px;background:#071a2d}.ceo-scale-advice>i{width:9px;height:9px;margin-top:3px;border-radius:50%;background:#ffd354;box-shadow:0 0 12px currentColor}.ceo-scale-advice.level-green{border-color:#26775c}.ceo-scale-advice.level-green>i{background:#39dda0;color:#39dda0}.ceo-scale-advice.level-yellow{border-color:#8c6b25}.ceo-scale-advice.level-yellow>i{background:#ffd354;color:#ffd354}.ceo-scale-advice.level-red{border-color:#8c3543}.ceo-scale-advice.level-red>i{background:#ff6f7e;color:#ff6f7e}.ceo-scale-advice strong,.ceo-scale-advice span,.ceo-scale-advice b{display:block}.ceo-scale-advice strong{font-size:11px;color:#f4f9ff}.ceo-scale-advice span{margin-top:4px;color:#91a9c0;font-size:9px;line-height:1.4}.ceo-scale-advice b{margin-top:5px;color:#c4e8ff;font-size:9px;line-height:1.4}.ceo-scale-advice em{color:#ffd66f;font-size:9px;font-style:normal;font-weight:900;white-space:nowrap}
@media(max-width:1200px){.ceo-scale-metrics{grid-template-columns:repeat(3,1fr)}.ceo-scale-metrics .action{grid-column:span 2}.ceo-scale-advice-list{grid-template-columns:1fr}}
@media(max-width:700px){.ceo-scale-metrics{grid-template-columns:repeat(2,1fr)}.ceo-scale-metrics .action{grid-column:1/-1}.ceo-scale-advice{grid-template-columns:10px minmax(0,1fr)}.ceo-scale-advice em{grid-column:2}}
/* ===== END LORMAG NEXUS V43 ===== */

/* ===== LORMAG NEXUS V31.56 — CICLO LOGISTICO COMPLETO ===== */
.state-hold .logistics-order-state>span,.logistics-detail-summary .state-hold{color:#ffd36d}
.state-delivered .logistics-order-state>span,.logistics-detail-summary .state-delivered{color:#55efb0}
.state-hold .logistics-order-state>span{border-color:rgba(255,190,65,.5);background:rgba(92,60,5,.28)}
.state-delivered .logistics-order-state>span{border-color:rgba(49,221,151,.48);background:rgba(0,82,57,.26)}
.logistics-cycle-card{display:grid;gap:14px;margin-top:16px;padding:16px;border:1px solid #294f72;border-radius:15px;background:linear-gradient(145deg,#09213c,#07182c);color:#eef8ff;box-shadow:0 12px 28px rgba(0,0,0,.12)}
.logistics-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:11px;border-bottom:1px solid #244a6c}
.logistics-section-head>div{display:flex;align-items:center;gap:9px}.logistics-section-head>div>span{display:grid;place-items:center;width:28px;height:28px;border:1px solid #3974a1;border-radius:9px;background:#0b3154;color:#72dcff;font-size:9px;font-weight:900}.logistics-section-head h3{margin:0;color:#f4fbff;font-size:13px}.logistics-section-head small{color:#8faac2;font-size:9px;text-align:right}
.logistics-shipment-reference{display:grid;grid-template-columns:1fr 1fr;gap:10px}.logistics-shipment-reference>div{padding:11px 12px;border:1px solid #244866;border-radius:11px;background:#06182c}.logistics-shipment-reference span,.logistics-cod-summary span,.logistics-event-fields label>span{display:block;color:#8faac2;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.logistics-shipment-reference strong{display:block;margin-top:5px;color:#f2f9ff;font-size:11px;overflow-wrap:anywhere}
.logistics-shipment-actions,.logistics-milestone-actions{display:flex;flex-wrap:wrap;gap:8px}.logistics-shipment-actions button,.logistics-shipment-actions a,.logistics-milestone-actions button,.logistics-cod-summary button{display:inline-flex;align-items:center;justify-content:center;min-height:39px;padding:9px 12px;border:1px solid #376a91;border-radius:10px;background:#0b2947;color:#eef9ff;font:inherit;font-size:9px;font-weight:900;text-decoration:none;cursor:pointer}.logistics-shipment-actions button{border-color:#55d8ff;background:linear-gradient(135deg,#116de7,#168fb7);color:#fff}.logistics-shipment-actions a:hover,.logistics-milestone-actions button:hover{border-color:#63dfff;background:#103b61}.logistics-shipment-actions .muted{opacity:.72}.logistics-shipment-actions button:disabled,.logistics-milestone-actions button:disabled,.logistics-cod-summary button:disabled{opacity:.45;cursor:not-allowed}
.logistics-event-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.logistics-event-fields label{display:grid;gap:6px}.logistics-event-fields input,.logistics-cod-summary input{width:100%;min-height:40px;padding:10px 11px;border:1px solid #294f72;border-radius:10px;background:#06182c;color:#eef8ff;font:inherit;font-size:11px;outline:none}.logistics-event-fields input:focus,.logistics-cod-summary input:focus{border-color:#5ad8ff;box-shadow:0 0 0 3px rgba(90,216,255,.1)}
.logistics-milestone-actions button{flex:1 1 120px}.logistics-milestone-actions .hold{border-color:#a9782d;background:rgba(158,105,24,.2);color:#ffd98c}.logistics-milestone-actions .delivered{border-color:#299d71;background:rgba(29,145,99,.2);color:#9dffd6}.logistics-milestone-actions .problem{border-color:#a8752b;background:rgba(168,117,43,.18);color:#ffd18a}.logistics-milestone-actions .return{border-color:#a84052;background:rgba(168,64,82,.18);color:#ffadba}
.logistics-cod-summary{display:grid;grid-template-columns:.7fr 1fr 1.3fr auto;gap:9px;align-items:end}.logistics-cod-summary>div,.logistics-cod-summary label{display:grid;gap:6px}.logistics-cod-summary>div{padding:10px 11px;border:1px solid #244866;border-radius:10px;background:#06182c}.logistics-cod-summary strong{color:#54efb0;font-size:15px}.logistics-cod-summary button{border-color:#44d6a4;background:linear-gradient(135deg,#0b8c63,#13b184);color:#fff}.cod-reconciled{color:#55efb0!important}.cod-pending,.cod-partial{color:#ffd36d!important}.cod-mismatch{color:#ff8292!important}
.logistics-timeline{display:grid}.logistics-timeline article{display:grid;grid-template-columns:145px 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #1f405d}.logistics-timeline article:last-child{border-bottom:0}.logistics-timeline time{color:#88a6bf;font-size:9px}.logistics-timeline strong{display:block;color:#eef8ff;font-size:11px}.logistics-timeline small{display:block;margin-top:4px;color:#91adc4;font-size:9px}
.logistics-ledger{display:grid}.logistics-ledger article{display:grid;grid-template-columns:1fr auto 82px;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #1f405d}.logistics-ledger article:last-child{border-bottom:0}.logistics-ledger strong{display:block;color:#eef8ff;font-size:11px}.logistics-ledger small{display:block;margin-top:4px;color:#91adc4;font-size:9px}.logistics-ledger b{font-size:15px}.logistics-ledger b.positive{color:#55efb0}.logistics-ledger b.negative{color:#ff8292}.logistics-ledger article>span{padding:5px 7px;border:1px solid #315c7e;border-radius:999px;color:#a8c1d6;font-size:8px;text-align:center;text-transform:uppercase}
@media(max-width:760px){.logistics-shipment-reference,.logistics-event-fields,.logistics-cod-summary{grid-template-columns:1fr}.logistics-section-head{align-items:flex-start;flex-direction:column}.logistics-section-head small{text-align:left}.logistics-timeline article{grid-template-columns:1fr}.logistics-ledger article{grid-template-columns:1fr auto}.logistics-ledger article>span{grid-column:1/-1;width:max-content}.logistics-shipment-actions>*{flex:1 1 100%}}
/* ===== END LORMAG NEXUS V31.56 ===== */

/* ===== LORMAG NEXUS V31.58 — CONSIGLIO OBBLIGATORIO PRIMA DELLA PRATICA ===== */
.operator-guidance-card{width:100%;margin:22px auto 18px;padding:17px 18px;border:1px solid rgba(99,166,218,.38);border-left:4px solid #62b9ef;border-radius:16px;background:linear-gradient(145deg,rgba(5,23,43,.92),rgba(8,34,59,.86));text-align:left;box-shadow:0 16px 40px rgba(0,0,0,.2)}
.operator-guidance-card.level-success{border-left-color:#36df9b;border-color:rgba(54,223,155,.36)}
.operator-guidance-card.level-warning{border-left-color:#ffbd4a;border-color:rgba(255,189,74,.4)}
.operator-guidance-card.level-critical{border-left-color:#ff657b;border-color:rgba(255,101,123,.44)}
.operator-guidance-head{display:grid;gap:5px}.operator-guidance-head span{color:#7fa4c4;font-size:8px;font-weight:950;letter-spacing:.13em}.operator-guidance-head strong{color:#f3f9ff;font-size:16px;line-height:1.25}
.operator-guidance-card>p{max-width:none;margin:11px 0 6px;color:#f0f7fd;font-size:13px;font-weight:800;line-height:1.45}.operator-guidance-card>small{margin:0;color:#a8bfd2;font-size:10px;font-weight:700;line-height:1.45}
.operator-guidance-targets{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:13px 0}.operator-guidance-targets span{padding:9px 10px;border:1px solid rgba(75,126,169,.42);border-radius:10px;background:rgba(4,18,34,.62);color:#7897b2;font-size:7px;font-weight:950;letter-spacing:.08em;text-align:center}.operator-guidance-targets b{display:block;margin-top:4px;color:#eef8ff;font-size:11px;letter-spacing:0}
.operator-guidance-ack,.operator-guidance-acknowledged{width:100%;min-height:42px;border-radius:11px;font:inherit;font-size:11px;font-weight:950}.operator-guidance-ack{border:1px solid #59d79f;background:linear-gradient(135deg,#0c7854,#1bbd7d);color:#fff;cursor:pointer;box-shadow:0 10px 24px rgba(27,189,125,.2)}.operator-guidance-ack:hover{filter:brightness(1.06)}.operator-guidance-ack:disabled{cursor:wait;opacity:.62}
.operator-guidance-acknowledged{display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid rgba(54,223,155,.43);background:rgba(23,133,91,.2);color:#c9ffe7}.operator-guidance-acknowledged i{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#27c889;color:#052116;font-style:normal}
.callcenter-ready-card .lormag-pulse-start:disabled{cursor:not-allowed;opacity:.46;filter:saturate(.55);animation:none}.callcenter-ready-card .lormag-pulse-start:disabled:before{animation:none;opacity:.12}.callcenter-ready-card .lormag-pulse-start:disabled i{animation:none}
@media(max-width:620px){.callcenter-ready-card{padding:28px 18px}.operator-guidance-targets{grid-template-columns:1fr}.operator-guidance-targets span{display:flex;align-items:center;justify-content:space-between;text-align:left}.operator-guidance-targets b{display:inline;margin:0}.operator-guidance-card>p{font-size:12px}}
/* ===== END V31.58 ===== */

/* ===== LORMAG NEXUS V31.59 — DIFESA CAPITALE WM PER DATA ===== */
.wm-capital-panel{display:grid;gap:14px;margin-bottom:18px;overflow:hidden}
.wm-capital-panel .panel-head{align-items:center}.wm-capital-panel .panel-head h3{margin:4px 0 0}
.wm-capital-summary{display:grid;min-width:112px;padding:10px 13px;border:1px solid rgba(58,211,151,.32);border-radius:12px;background:rgba(20,127,88,.13);text-align:right}.wm-capital-summary b{color:#42e5a5;font-size:24px;line-height:1}.wm-capital-summary span{margin-top:4px;color:#8ea9bd;font-size:8px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.wm-capital-rule{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.wm-capital-rule span{padding:10px 11px;border:1px solid rgba(91,134,168,.28);border-radius:10px;background:rgba(10,29,47,.38);color:#9eb5c7;font-size:9px;line-height:1.4}.wm-capital-rule b{display:inline-grid;place-items:center;width:19px;height:19px;margin-right:5px;border-radius:50%;background:#173b58;color:#74d8ff;font-size:8px}
.wm-capital-table-wrap{border:1px solid rgba(86,130,163,.28);border-radius:12px}.wm-capital-table{min-width:1180px}.wm-capital-table th{white-space:nowrap}.wm-capital-table td{vertical-align:middle}.wm-capital-table td strong{color:inherit}.wm-capital-table td small{display:block;margin-top:3px;color:#7894aa;font-size:8px}.wm-capital-table tr.level-ready td{background:rgba(34,167,111,.055)}.wm-capital-table tr.level-initial td{background:rgba(42,135,218,.055)}.wm-capital-table tr.level-waiting td{background:rgba(180,111,37,.035)}
.wm-capital-advice{display:inline-flex;max-width:250px;padding:6px 8px;border:1px solid rgba(119,151,174,.28);border-radius:8px;background:rgba(12,29,45,.42);color:#b9cbd8;font-size:8px;font-weight:850;line-height:1.35}.wm-capital-advice.ready{border-color:rgba(56,213,151,.4);background:rgba(23,130,88,.16);color:#8ff0c2}.wm-capital-advice.initial{border-color:rgba(73,169,238,.42);background:rgba(37,112,171,.16);color:#9edcff}.wm-capital-advice.complete{color:#829cad}
.wm-capital-source{color:#728da1;font-size:8px}
.wm-approval-date-block{display:grid;gap:10px;margin-bottom:17px}.wm-approval-date-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;padding:10px 13px;border:1px solid rgba(74,125,163,.3);border-radius:12px;background:linear-gradient(135deg,rgba(8,31,53,.72),rgba(13,45,72,.55))}.wm-approval-date-head>div{display:flex;align-items:center;gap:10px}.wm-approval-date-head span{color:#75a8c9;font-size:9px;font-weight:900;letter-spacing:.08em}.wm-approval-date-head strong{color:#f1f8fd;font-size:14px}.wm-approval-date-head small{color:#91aabd;font-size:9px;text-align:right}.wm-approval-reason{display:block;margin-top:8px;color:#7f9aaf;font-size:8px;line-height:1.4}
.approval-review-card.nexus-covered{border-color:rgba(52,213,151,.38)}.approval-review-card.nexus-uncovered{border-color:rgba(203,139,64,.28)}.approval-review-card.nexus-uncovered .approve-final:disabled{opacity:.42;cursor:not-allowed;filter:saturate(.45)}
@media(max-width:900px){.wm-capital-rule{grid-template-columns:1fr}.wm-capital-panel .panel-head,.wm-approval-date-head{align-items:flex-start;flex-direction:column}.wm-capital-summary{width:100%;text-align:left}.wm-approval-date-head small{text-align:left}}
/* ===== END V31.59 ===== */

/* v61 · saldi WM e approvazione CEO sempre manuale */
.wm-approved-balances{display:grid;gap:12px;margin-bottom:18px;padding:16px;border:1px solid rgba(67,183,255,.28);border-radius:18px;background:linear-gradient(145deg,rgba(8,32,57,.94),rgba(5,20,38,.92));box-shadow:0 14px 38px rgba(0,0,0,.18)}
.wm-approved-balances-head{display:flex;align-items:flex-end;justify-content:space-between;gap:14px}.wm-approved-balances-head h3{margin:4px 0 0}.wm-approved-balances-head small{color:#7f9db3;font-size:9px}
.wm-approved-balance-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.wm-approved-balance-card{display:grid;gap:8px;padding:13px;border:1px solid rgba(79,150,199,.25);border-radius:14px;background:rgba(7,25,43,.72)}
.wm-approved-balance-card>div:first-child{display:flex;align-items:baseline;justify-content:space-between;gap:8px}.wm-approved-balance-card>div:first-child strong{color:#e5f6ff;font-size:13px}.wm-approved-balance-card>div:first-child span{color:#7794aa;font-size:9px;text-align:right}.wm-approved-balance-card>b{color:#58e8ac;font-size:25px;line-height:1}.wm-approved-balance-card>small{color:#86a2b6;font-size:8px;text-transform:uppercase;letter-spacing:.06em}.wm-approved-balance-card>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:7px}.wm-approved-balance-card>div:last-child span{display:grid;gap:3px;padding:7px;border-radius:9px;background:rgba(22,55,78,.48);color:#7896ab;font-size:8px}.wm-approved-balance-card>div:last-child strong{color:#d7ecf7;font-size:11px}
.approve-final.manual-risk{background:linear-gradient(135deg,#e5b94f,#c99028);color:#211604;box-shadow:0 0 0 1px rgba(255,210,96,.35),0 8px 20px rgba(184,122,24,.18)}.approve-final.manual-risk:hover{filter:brightness(1.08)}
.approval-review-card.nexus-uncovered{border-left-color:#d6a33d!important;box-shadow:inset 0 0 0 1px rgba(215,167,69,.07),0 16px 42px rgba(0,0,0,.22)}
@media(max-width:720px){.wm-approved-balances-head{align-items:flex-start;flex-direction:column}.wm-approved-balance-grid{grid-template-columns:1fr}}

/* ===== NEXUS V82 — PRATICHE DA RISCALDARE ===== */
#nav button.warming-alert{position:relative;border-color:rgba(255,145,41,.8);box-shadow:0 0 0 1px rgba(255,145,41,.22),0 0 22px rgba(255,117,31,.28);animation:nexusWarmingMenuPulse 1.45s ease-in-out infinite}
#nav button.warming-alert::before{content:"";position:absolute;inset:3px;border-radius:inherit;border:1px solid rgba(255,190,88,.38);pointer-events:none}
#nav button.warming-due{animation-duration:.85s;box-shadow:0 0 0 1px rgba(255,77,46,.45),0 0 28px rgba(255,68,35,.48)}
.warming-count{margin-left:auto;min-width:24px;height:24px;padding:0 7px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#ff5a2c,#ffb128);color:#fff;font-size:12px;font-style:normal;font-weight:900;box-shadow:0 5px 14px rgba(255,91,34,.35)}
@keyframes nexusWarmingMenuPulse{0%,100%{transform:translateZ(0);filter:brightness(1)}50%{transform:translateX(2px);filter:brightness(1.18)}}
.warming-page{display:grid;gap:18px}.warming-page-head{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid rgba(255,145,41,.28);background:linear-gradient(135deg,rgba(255,247,228,.96),rgba(255,255,255,.98))}.warming-page-head h2{margin:5px 0 8px}.warming-page-head p{margin:0;color:#5d6675}.warming-page-kpis{display:flex;gap:12px}.warming-page-kpis article{min-width:130px;padding:15px 18px;border-radius:16px;background:#fff;border:1px solid rgba(255,137,32,.22);box-shadow:0 9px 22px rgba(103,69,25,.08)}.warming-page-kpis span{display:block;font-size:10px;letter-spacing:.11em;color:#846434}.warming-page-kpis strong{display:block;margin-top:4px;font-size:27px;color:#a94816}.warming-practice-list{display:grid;gap:12px}.warming-practice-row{display:grid;grid-template-columns:1.05fr 1.25fr 1.45fr 1.25fr auto;gap:15px;align-items:center;padding:17px;border-radius:18px;background:var(--nexus-adaptive-surface,#fff);border:1px solid rgba(255,145,41,.23);box-shadow:0 10px 25px rgba(44,64,87,.08)}.warming-practice-row.attention{border-color:rgba(239,74,43,.65);box-shadow:0 0 0 2px rgba(239,74,43,.08),0 12px 28px rgba(239,74,43,.15)}.warming-practice-row span{display:block;font-size:10px;letter-spacing:.08em;color:var(--nexus-adaptive-muted,#68778a);text-transform:uppercase}.warming-practice-row strong{display:block;margin-top:4px;color:var(--nexus-adaptive-text,#142033)}.warming-practice-row small{display:block;margin-top:4px;color:var(--nexus-adaptive-muted,#68778a)}.warming-practice-id strong{font-size:20px;color:#b64f16}.warming-practice-callback.due strong{color:#d63b2b}.warming-open-btn{border:0;border-radius:14px;padding:13px 17px;background:linear-gradient(135deg,#c95d18,#ff9a24);color:#fff;font-weight:900;cursor:pointer;box-shadow:0 9px 20px rgba(208,89,18,.24)}.warming-callcenter .customer-panel,.warming-callcenter .main-call-panel{border-color:rgba(255,145,41,.32)}.warming-call-banner{display:grid;grid-template-columns:minmax(260px,.8fr) 1.4fr;gap:20px;align-items:center;margin:0 0 18px;padding:18px 22px;border-radius:19px;background:linear-gradient(115deg,#7a2f0e,#d86417 58%,#ffae35);color:#fff;box-shadow:0 14px 34px rgba(145,62,14,.25)}.warming-call-banner span{display:block;font-size:10px;letter-spacing:.16em;opacity:.8}.warming-call-banner strong{display:block;margin-top:5px;font-size:18px}.warming-call-banner ol{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:0;padding:0;list-style:none;counter-reset:warming-step}.warming-call-banner li{counter-increment:warming-step;padding:11px 11px 11px 37px;position:relative;border-radius:13px;background:rgba(255,255,255,.13);font-size:12px;line-height:1.35}.warming-call-banner li::before{content:counter(warming-step);position:absolute;left:10px;top:10px;width:19px;height:19px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;color:#a44413;font-weight:900}.warming-history-card{margin:15px 0;border:1px solid rgba(255,145,41,.26);border-radius:17px;background:linear-gradient(145deg,rgba(255,250,238,.98),rgba(255,255,255,.98));overflow:hidden}.warming-history-head{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid rgba(255,145,41,.18)}.warming-history-head span{display:block;font-size:10px;letter-spacing:.12em;color:#9c551e}.warming-history-head strong{display:block;margin-top:3px;color:#773310}.warming-history-head em{align-self:center;padding:6px 9px;border-radius:999px;background:#fff1d7;color:#9b4a17;font-size:9px;font-style:normal;font-weight:900}.warming-history-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:rgba(220,156,83,.15)}.warming-history-grid article{padding:12px 14px;background:rgba(255,255,255,.9)}.warming-history-grid span,.warming-history-comment span{display:block;font-size:9px;letter-spacing:.08em;color:#956940;text-transform:uppercase}.warming-history-grid strong{display:block;margin-top:4px;font-size:12px;color:#49301e}.warming-history-comment{padding:12px 14px}.warming-history-comment p{margin:5px 0 0;color:#5d493a;font-size:12px;line-height:1.45}
@media(max-width:1180px){.warming-practice-row{grid-template-columns:1fr 1fr}.warming-open-btn{width:100%}.warming-call-banner{grid-template-columns:1fr}.warming-call-banner ol{grid-template-columns:1fr}.warming-history-grid{grid-template-columns:1fr 1fr}}
@media(max-width:720px){.warming-page-head{align-items:flex-start;flex-direction:column}.warming-page-kpis{width:100%}.warming-page-kpis article{flex:1;min-width:0}.warming-practice-row{grid-template-columns:1fr}.warming-history-grid{grid-template-columns:1fr}}
/* ===== END NEXUS V82 ===== */

/* ===== NEXUS V32.1 — RUNTIME PERFORMANCE ===== */
/*
 * I valori del filtro adattivo sono neutri (= 1), ma applicarlo a contenitori
 * grandi forza comunque una costosa composizione fuori schermo a ogni scroll
 * e a ogni carattere digitato.
 */
html.portal-route .main,
html.portal-route .sidebar{
  filter:none!important;
  transition:none!important;
}

/* Evita una transizione continua di 60 secondi su decine di pannelli. Il tema
 * conserva gli stessi colori e viene aggiornato con il normale tick al minuto. */
html.portal-route.nexus-theme-ready body.operator-client-theme .content,
html.portal-route.nexus-theme-ready body.operator-client-theme .callcenter-page :is(
  .call-status,.idle-mini,.goal-mini,
  .customer-panel,.main-call-panel,.sv-panel,.offers-panel,.leadvertex-panel,.bottom-stats,
  .customer-grid>div,.customer-note,.history-item,.phase,.script-card,.sv-card,.sv-check,
  .objection-grid button,.offer-card,.objection-only-card>p,.order-source-card,.product-order-card,
  .record-total,.leadvertex-product-photo,.leadvertex-product-name,
  .operator-product-picker,.operator-product-row,.operator-product-empty
){
  transition:none!important;
}

/* Le superfici sotto sono già quasi opache: eliminare il blur mantiene la resa
 * visiva, evitando ridisegni continui dei pixel retrostanti durante l'uso. */
html.portal-route :is(
  .sidebar,.topbar,.ai-drawer,.approval-confirm-modal,
  .live-bulk-toolbar,.live-order-drawer-shell,.live-order-drawer-head,.live-manager-actions,
  .notification-backdrop,.operator-script-backdrop,.logistics-drawer-shell
),
html.portal-route .support-layout-pro :is(.support-ticket-list-pro,.support-admin-detail),
html.portal-route body>.logistics-drawer-shell{
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

html.portal-route .sidebar{background-color:#05101ff5}
html.portal-route .topbar{background-color:#061326f5}
/* ===== END NEXUS V32.1 ===== */

/* ===== NEXUS V33 — FONDI DISPONIBILI KPI LIVE ===== */
.ceo-funds-manager{display:grid;gap:18px;border-color:rgba(45,217,147,.32);background:linear-gradient(145deg,rgba(7,25,43,.98),rgba(6,20,36,.98))}
.ceo-funds-title{display:flex;align-items:center;justify-content:space-between;gap:22px}.ceo-funds-title h3{margin:5px 0 6px;font-size:22px}.ceo-funds-title p{max-width:690px;margin:0;color:#88a4bd;font-size:11px;line-height:1.55}
.ceo-funds-total{min-width:245px;padding:15px 18px;border:1px solid #294d6b;border-radius:16px;background:#081b30;text-align:right}.ceo-funds-total span,.ceo-funds-total small{display:block;color:#7895ad;font-size:8px;font-weight:900;letter-spacing:.08em}.ceo-funds-total strong{display:block;margin:4px 0;color:#dff7ed;font-size:28px}.ceo-funds-total.is-positive{border-color:#2bd993;background:linear-gradient(145deg,#0a3529,#0a2630);animation:ceoFundAvailablePulse 2.4s ease-in-out infinite}
@keyframes ceoFundAvailablePulse{0%,100%{box-shadow:0 0 0 0 rgba(43,217,147,0),0 10px 26px rgba(0,0,0,.12)}50%{box-shadow:0 0 0 4px rgba(43,217,147,.08),0 0 26px rgba(43,217,147,.18)}}
.ceo-funds-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.ceo-fund-card{position:relative;display:grid;gap:11px;padding:16px;border:1px solid #234563;border-radius:16px;background:linear-gradient(145deg,#091d33,#071729);overflow:hidden}.ceo-fund-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#345875}.ceo-fund-card.is-positive{border-color:rgba(43,217,147,.38)}.ceo-fund-card.is-positive::before{background:#2bd993}.ceo-fund-card.is-recovery::before{background:#f0bc4b}.ceo-fund-card-head{display:flex;align-items:center;justify-content:space-between;gap:9px}.ceo-fund-card-head span{color:#75a2c3;font-size:8px;font-weight:950;letter-spacing:.09em}.ceo-fund-card-head em{padding:5px 7px;border-radius:999px;background:#123b31;color:#66e4ae;font-size:7px;font-style:normal;font-weight:950}.ceo-fund-card>strong{font-size:27px;color:#f1fbff}.ceo-fund-facts{display:grid;grid-template-columns:1fr 1fr;gap:6px}.ceo-fund-facts div{padding:8px;border-radius:9px;background:rgba(18,48,75,.62)}.ceo-fund-facts span,.ceo-fund-facts b{display:block}.ceo-fund-facts span{color:#7895ad;font-size:7px;text-transform:uppercase}.ceo-fund-facts b{margin-top:3px;color:#dceef8;font-size:10px}.ceo-fund-card>small{color:#7f9bb3;font-size:8px;line-height:1.45}
.ceo-fund-card>.ceo-fund-pending{margin-top:-6px;color:#e4b85a;font-size:8px;font-weight:800}.ceo-fund-card>.ceo-fund-pending b{color:#ffd878}
.ceo-funds-workspace{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.6fr);gap:13px}.ceo-funds-form,.ceo-funds-rules{border:1px solid #244866;border-radius:16px;background:#07192d;padding:15px}.ceo-funds-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.ceo-funds-step{display:grid;grid-template-columns:29px minmax(0,1fr);gap:8px;align-items:start}.ceo-funds-step>i{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(135deg,#168b65,#2bd993);color:white;font-size:10px;font-style:normal;font-weight:950}.ceo-funds-step label,.ceo-funds-field{display:flex;flex-direction:column;gap:6px;color:#83a0b8;font-size:8px;font-weight:900;letter-spacing:.03em}.ceo-funds-form select,.ceo-funds-form input,.ceo-funds-form textarea{width:100%;border:1px solid #285171;border-radius:10px;background:#051428;color:#eff9ff;padding:10px;font:inherit;font-size:10px;outline:0}.ceo-funds-form select:focus,.ceo-funds-form input:focus,.ceo-funds-form textarea:focus{border-color:#2bd993;box-shadow:0 0 0 3px rgba(43,217,147,.1)}.ceo-funds-form textarea{min-height:76px;resize:vertical}.ceo-funds-field.is-disabled{opacity:.42}.ceo-funds-guide{grid-column:1/-1;display:grid;grid-template-columns:minmax(170px,.38fr) minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid rgba(43,217,147,.25);border-radius:13px;background:rgba(10,50,40,.45)}.ceo-funds-guide>div span,.ceo-funds-guide>div strong,.ceo-funds-guide>div small{display:block}.ceo-funds-guide>div span{color:#6ee6b3;font-size:7px;font-weight:900;letter-spacing:.08em}.ceo-funds-guide>div strong{margin:3px 0;color:#f0fff8;font-size:19px}.ceo-funds-guide>div small{color:#75a58e;font-size:7px}.ceo-funds-guide p{margin:0;color:#a4c8b7;font-size:9px;line-height:1.5}.ceo-funds-guide button{min-width:145px;border:0;border-radius:10px;padding:11px 13px;background:linear-gradient(135deg,#11875e,#2bd993);color:#fff;font-size:9px;font-weight:950;cursor:pointer}.ceo-funds-guide button:disabled{opacity:.45;cursor:not-allowed}
.ceo-funds-rules{display:grid;gap:8px}.ceo-funds-rules h4{margin:0 0 2px}.ceo-funds-rules>div{padding:10px;border-radius:10px;background:#0b223a}.ceo-funds-rules b,.ceo-funds-rules span{display:block}.ceo-funds-rules b{color:#5fe1ac;font-size:9px}.ceo-funds-rules span{margin-top:3px;color:#849fb7;font-size:8px;line-height:1.45}.ceo-funds-rules .return{border:1px solid rgba(221,101,113,.35);background:#351620}.ceo-funds-rules .return b{color:#ff8792}
.ceo-funds-history{border-top:1px solid #1f3e59;padding-top:12px}.ceo-funds-history summary{cursor:pointer;color:#8aa7bf;font-size:9px;font-weight:900}.ceo-funds-history .affiliate-table-wrap{margin-top:10px;max-height:310px;overflow:auto}
@media(max-width:1150px){.ceo-funds-title{align-items:flex-start;flex-direction:column}.ceo-funds-total{width:100%;text-align:left}.ceo-funds-cards{grid-template-columns:1fr}.ceo-funds-workspace{grid-template-columns:1fr}}
@media(max-width:760px){.ceo-funds-form{grid-template-columns:1fr}.ceo-funds-guide{grid-template-columns:1fr}.ceo-funds-guide button{width:100%}}
@media(prefers-reduced-motion:reduce){.ceo-funds-total.is-positive{animation:none}}
/* ===== END NEXUS V33 ===== */

/* ===== LORMAG NEXUS V92 — CEO GESTIONE OPERATORI ===== */
.ceo-operator-management-v92{--op-bg:#071629;--op-surface:#0b2038;--op-surface-2:#0e2945;--op-line:#294c6b;--op-text:#f4f9fd;--op-muted:#a9bfd2;display:grid;gap:17px;color:var(--op-text)}
.ceo-operator-hero-v92{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:23px;border:1px solid var(--op-line);border-radius:20px;background:linear-gradient(135deg,#0c2949,#07172b);color:var(--op-text);box-shadow:0 14px 34px rgba(0,0,0,.18)}.ceo-operator-hero-v92 h2{margin:5px 0 7px;color:#fff;font-size:30px}.ceo-operator-hero-v92 p{margin:0;color:var(--op-muted)}
.ceo-operator-period-v92{display:flex;align-items:end;gap:9px}.ceo-operator-period-v92 label{display:grid;gap:6px;color:#a9bfd2;font-size:8px;font-weight:900;letter-spacing:.08em}.ceo-operator-period-v92 input{min-height:42px;border:1px solid #3a668a;border-radius:11px;padding:9px 11px;background:#041224;color:#fff;color-scheme:dark;font:inherit;font-weight:850}.ceo-operator-period-v92 button,.ceo-operator-loading-v92 button{min-height:42px;border:1px solid #43d2a0;border-radius:11px;padding:10px 14px;background:linear-gradient(135deg,#0c865e,#23c98c);color:#fff;font-weight:900;cursor:pointer}
.ceo-operator-kpi-warning-v92{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #a6792f;border-radius:13px;background:#382a12;color:#fff1c9}.ceo-operator-kpi-warning-v92 strong{font-size:10px}.ceo-operator-kpi-warning-v92 span{color:#ead7a6;font-size:9px}
.ceo-operator-summary-v92{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px}.ceo-operator-summary-v92 article{min-width:0;padding:14px;border:1px solid var(--op-line);border-radius:14px;background:var(--op-surface);color:var(--op-text)}.ceo-operator-summary-v92 span,.ceo-operator-summary-v92 strong,.ceo-operator-summary-v92 small{display:block}.ceo-operator-summary-v92 span{color:#91abc1;font-size:7px;font-weight:950;letter-spacing:.07em}.ceo-operator-summary-v92 strong{margin-top:5px;color:#fff;font-size:21px;overflow-wrap:anywhere}.ceo-operator-summary-v92 small{margin-top:4px;color:#9fb5c8;font-size:8px}.ceo-operator-summary-v92 article.positive{border-color:#2fb27e;background:#0d382d}.ceo-operator-summary-v92 article.positive strong{color:#70edb9}.ceo-operator-summary-v92 article.negative{border-color:#c64f66;background:#421c27}.ceo-operator-summary-v92 article.negative strong{color:#ff9cac}
.ceo-operator-list-v92{display:grid;gap:15px}.ceo-operator-card-v92{display:grid;gap:13px;padding:17px;border:1px solid var(--op-line);border-left:5px solid #50728f;border-radius:19px;background:linear-gradient(150deg,#0a1e35,#071629);color:var(--op-text);box-shadow:0 15px 34px rgba(0,0,0,.16)}.ceo-operator-card-v92.positive{border-left-color:#31d395}.ceo-operator-card-v92.negative{border-left-color:#ef647b}.ceo-operator-card-v92.neutral{border-left-color:#e6b74b}
.ceo-operator-card-head-v92{display:flex;align-items:center;justify-content:space-between;gap:18px}.ceo-operator-card-head-v92>div:first-child{min-width:0}.ceo-operator-card-head-v92 h3{margin:5px 0 3px;color:#fff;font-size:20px}.ceo-operator-card-head-v92 small{color:#a6bbcc;font-size:8px}.ceo-operator-card-head-v92>div:last-child{display:grid;justify-items:end;gap:3px;text-align:right}.ceo-operator-card-head-v92>div:last-child>strong{color:#fff;font-size:25px}.ceo-operator-presence-v92{display:inline-flex;align-items:center;gap:6px;color:#a8bfd2;font-size:8px;font-weight:900;letter-spacing:.06em}.ceo-operator-presence-v92 i{width:8px;height:8px;border-radius:50%;background:#70869a}.ceo-operator-presence-v92.calling i,.ceo-operator-presence-v92.available i{background:#31d395;box-shadow:0 0 9px #31d395}.ceo-operator-presence-v92.aftercall i{background:#f1ba4a;box-shadow:0 0 9px #f1ba4a}.ceo-operator-presence-v92.break i{background:#68c8f4;box-shadow:0 0 9px #68c8f4}
.ceo-operator-evaluation{padding:6px 9px;border-radius:999px;background:#25384a;color:#d8e7f2;font-size:7px;font-weight:950;letter-spacing:.08em}.ceo-operator-evaluation.positive{background:#0f4b38;color:#8af0c4}.ceo-operator-evaluation.negative{background:#57212d;color:#ffacb8}.ceo-operator-evaluation.neutral{background:#4a3815;color:#ffdb85}.ceo-operator-warning-v92{padding:9px 11px;border:1px solid #a2732b;border-radius:10px;background:#35270f;color:#f8deb0;font-size:9px}
.ceo-operator-kpis-v92{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.ceo-operator-kpis-v92 article{padding:12px;border:1px solid #315472;border-radius:12px;background:#0d2843;color:#fff}.ceo-operator-kpis-v92 span,.ceo-operator-kpis-v92 strong,.ceo-operator-kpis-v92 small{display:block}.ceo-operator-kpis-v92 span{color:#a7bdd0;font-size:7px;font-weight:950;letter-spacing:.07em}.ceo-operator-kpis-v92 strong{margin-top:4px;color:#fff;font-size:19px}.ceo-operator-kpis-v92 small{margin-top:3px;color:#9eb4c7;font-size:8px}
.ceo-operator-detail-grid-v92{display:grid;grid-template-columns:1.2fr 1fr .8fr;gap:9px}.ceo-operator-box-v92{display:grid;align-content:start;gap:11px;padding:13px;border:1px solid #2c4d69;border-radius:14px;background:#091a2e;color:#f4f9fd}.ceo-operator-box-v92>header{display:flex;align-items:center;justify-content:space-between;gap:8px}.ceo-operator-box-v92>header>span{color:#a9bfd2;font-size:8px;font-weight:950;letter-spacing:.08em}.ceo-operator-box-v92>header>em{padding:5px 7px;border-radius:999px;background:#163149;color:#bad0e2;font-size:7px;font-style:normal;font-weight:900}.ceo-operator-box-v92>header>em.complete{background:#124333;color:#83eabb}.ceo-operator-box-v92>header>em.missing{background:#54212b;color:#ffb4bf}
.ceo-operator-facts-v92{display:grid;grid-template-columns:1fr 1fr;gap:6px}.ceo-operator-facts-v92 span{padding:8px;border-radius:9px;background:#102b47;color:#a8bfd2;font-size:8px}.ceo-operator-facts-v92 b{display:block;margin-top:3px;color:#fff;font-size:11px}.ceo-operator-box-v92 details summary,.ceo-operator-orders-v92 summary{cursor:pointer;color:#8ed9ff;font-size:8px;font-weight:900}.ceo-operator-schedule-list-v92{display:grid;gap:5px;max-height:210px;margin-top:9px;overflow:auto}.ceo-operator-schedule-list-v92>div{display:grid;grid-template-columns:80px 1fr auto;gap:7px;align-items:center;padding:7px;border-radius:8px;background:#102943}.ceo-operator-schedule-list-v92 span{color:#b7cada;font-size:8px}.ceo-operator-schedule-list-v92 strong{display:flex;gap:4px;flex-wrap:wrap}.ceo-operator-schedule-list-v92 i{padding:4px 6px;border-radius:6px;background:#15503d;color:#8defc2;font-size:7px;font-style:normal}.ceo-operator-schedule-list-v92 em{color:#fff;font-size:8px;font-style:normal;font-weight:900}.ceo-operator-empty-v92{margin-top:8px;padding:9px;border-radius:8px;background:#10243a;color:#a9bfd2;font-size:8px}
.ceo-operator-schedule-details-v93{border:1px solid #315777;border-radius:11px;background:#07192b;overflow:hidden}.ceo-operator-schedule-details-v93>summary{padding:10px 12px;color:#9be2ff!important}.ceo-operator-schedule-details-v93>summary span,.ceo-operator-schedule-details-v93>summary small{display:block}.ceo-operator-schedule-details-v93>summary span{color:#dff6ff;font-size:9px}.ceo-operator-schedule-details-v93>summary small{margin-top:2px;color:#91abc0;font-size:7px;font-weight:700}.ceo-operator-schedule-details-v93[open]>summary{border-bottom:1px solid #284b67;background:#0d2943}.ceo-operator-schedule-v93{display:grid;gap:10px;padding:10px}.ceo-operator-today-v93{padding:11px;border:1px solid #2fc58d;border-radius:10px;background:#0d3a2d;color:#f3fff9}.ceo-operator-today-v93>header{display:flex;align-items:center;justify-content:space-between;gap:10px}.ceo-operator-today-v93>header span,.ceo-operator-today-v93>header strong{display:block}.ceo-operator-today-v93>header span{color:#81e6bc;font-size:7px;font-weight:950;letter-spacing:.08em}.ceo-operator-today-v93>header strong{margin-top:3px;color:#fff;font-size:11px}.ceo-operator-today-v93>header em{color:#c4f6e1;font-size:8px;font-style:normal;font-weight:900;text-align:right}.ceo-operator-today-slots-v93{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}.ceo-operator-today-slots-v93 i,.ceo-operator-schedule-list-v92 i{padding:4px 6px;border-radius:6px;background:#15503d;color:#8defc2;font-size:7px;font-style:normal}.ceo-operator-today-slots-v93 i.rest,.ceo-operator-schedule-list-v92 i.rest{background:#263d50;color:#d8e5ee}.ceo-operator-month-v93>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:1px 1px 0}.ceo-operator-month-v93>header span{color:#9ab2c5;font-size:7px;font-weight:950;letter-spacing:.08em}.ceo-operator-month-v93>header strong{color:#f1f8fc;font-size:9px}.ceo-operator-schedule-list-v92{max-height:300px;margin-top:7px}.ceo-operator-schedule-list-v92>div.today{border:1px solid #2fc58d;background:#0d3a2d}.ceo-operator-schedule-list-v92>div.today span,.ceo-operator-schedule-list-v92>div.today em{color:#fff}.ceo-operator-schedule-list-v92>div.today span b{display:inline-block;margin-right:3px;color:#75e6b7;font-size:6px;letter-spacing:.06em}
.ceo-operator-daily-auth-v95{display:grid;grid-template-columns:minmax(160px,1fr) minmax(190px,1fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid #3f6f95;border-radius:11px;background:#0d2943;color:#f4f9fd}.ceo-operator-daily-auth-v95>div:first-child{display:grid;gap:4px}.ceo-operator-daily-auth-v95>div:first-child>span{color:#8edcff;font-size:7px;font-weight:950;letter-spacing:.08em}.ceo-operator-daily-auth-v95>div:first-child>strong{color:#fff;font-size:10px}.ceo-operator-daily-auth-v95>div:first-child>small{color:#b5c9d9;font-size:7px;line-height:1.45}.ceo-operator-auth-slots-v95{display:grid;grid-template-columns:repeat(2,minmax(72px,1fr));gap:6px}.ceo-operator-auth-slots-v95 label{position:relative;cursor:pointer}.ceo-operator-auth-slots-v95 input{position:absolute;opacity:0;pointer-events:none}.ceo-operator-auth-slots-v95 span{display:block;padding:8px 7px;border:1px solid #527797;border-radius:8px;background:#06182a;color:#dcebf4;font-size:8px;font-weight:900;text-align:center}.ceo-operator-auth-slots-v95 input:checked+span{border-color:#44d39f;background:#155b43;color:#fff;box-shadow:0 0 0 2px rgba(68,211,159,.12)}.ceo-operator-auth-slots-v95 input:focus-visible+span{outline:3px solid #79dfff;outline-offset:2px}.ceo-operator-daily-auth-v95>button{min-height:39px;border:1px solid #51e2ac;border-radius:9px;padding:9px 12px;background:#17865f;color:#fff;font-size:8px;font-weight:950;cursor:pointer}.ceo-operator-daily-auth-v95>button:hover{background:#1b9c6e}.ceo-operator-daily-auth-v95>button:disabled{border-color:#4c6070;background:#263949;color:#9fb1bf;cursor:not-allowed}.ceo-operator-daily-auth-v95.authorized{grid-template-columns:1fr;border-color:#42cf99;background:#0c3d2e}.ceo-operator-daily-auth-v95.authorized>div:first-child>span{color:#81f0c2}.ceo-operator-daily-auth-v95.authorized>div:first-child>strong{display:flex;gap:5px;flex-wrap:wrap}.ceo-operator-daily-auth-v95.authorized i{padding:4px 6px;border-radius:6px;background:#176448;color:#bcffe3;font-size:7px;font-style:normal}.ceo-operator-daily-auth-v95.already-planned{grid-template-columns:1fr;border-color:#315777;background:#0a2138}
.ceo-operator-money-list-v92,.ceo-operator-alert-list-v92{display:grid;gap:6px}.ceo-operator-money-list-v92 span,.ceo-operator-alert-list-v92 span{display:flex;justify-content:space-between;gap:8px;padding:8px;border-radius:9px;background:#102942;color:#a9bfd2;font-size:8px}.ceo-operator-money-list-v92 b,.ceo-operator-alert-list-v92 b{color:#fff}.ceo-operator-money-list-v92 .total{border:1px solid #2db682;background:#0e392d;color:#b9f6dc}.ceo-operator-money-list-v92 .total b{color:#6fe8b4}.ceo-operator-alert-total-v92{color:#ffca68;font-size:30px;line-height:1}.ceo-operator-box-v92.alerts{border-color:#6b5429;background:#281f10}.ceo-operator-box-v92.alerts .ceo-operator-alert-list-v92 span{background:#3a2d15;color:#ecd9ae}
.ceo-operator-value-v92{display:grid;grid-template-columns:1fr auto 1fr auto 1.25fr;gap:10px;align-items:center;padding:12px;border:1px solid #31536f;border-radius:14px;background:#08192c}.ceo-operator-value-v92>div{padding:10px;border-radius:10px;background:#102942}.ceo-operator-value-v92 span,.ceo-operator-value-v92 strong,.ceo-operator-value-v92 small{display:block}.ceo-operator-value-v92 span{color:#a8bfd2;font-size:7px;font-weight:950;letter-spacing:.07em}.ceo-operator-value-v92 strong{margin-top:4px;color:#fff;font-size:18px}.ceo-operator-value-v92 small{margin-top:3px;color:#9db3c5;font-size:7px}.ceo-operator-value-v92>b{color:#9db3c5;font-size:17px}.ceo-operator-value-v92 .result.positive{background:#0d3d30}.ceo-operator-value-v92 .result.positive strong{color:#67e9b2}.ceo-operator-value-v92 .result.negative{background:#431c27}.ceo-operator-value-v92 .result.negative strong{color:#ff9cac}
.ceo-operator-orders-v92{padding:10px 11px;border-radius:11px;background:#091a2e}.ceo-operator-orders-v92>div{display:grid;gap:5px;margin-top:9px}.ceo-operator-status-row-v92{display:grid;grid-template-columns:160px 34px 1fr 40px;gap:8px;align-items:center;color:#b5c8d7;font-size:8px}.ceo-operator-status-row-v92 strong,.ceo-operator-status-row-v92 em{color:#fff;font-style:normal;text-align:right}.ceo-operator-status-row-v92>i{height:6px;overflow:hidden;border-radius:999px;background:#18334d}.ceo-operator-status-row-v92>i>b{display:block;height:100%;border-radius:inherit;background:#4dbfe9}.ceo-operator-status-row-v92.paid>i>b{background:#31d395}.ceo-operator-status-row-v92.return>i>b,.ceo-operator-status-row-v92.problem>i>b{background:#ef9c4d}.ceo-operator-status-row-v92.cancelled>i>b{background:#ef647b}
.ceo-operator-method-v92{margin:0;padding:11px 13px;border:1px solid #294b68;border-radius:12px;background:#0a1e34;color:#a9bfd2;font-size:8px;line-height:1.5}.ceo-operator-loading-v92{background:#0a1d32!important;color:#f4f9fd!important}.ceo-operator-loading-v92 p{color:#a9bfd2!important}.ceo-operator-empty-page-v92{padding:24px;border:1px dashed #45617a;border-radius:14px;background:#0a1e34;color:#b3c6d5;text-align:center}
@media(max-width:1260px){.ceo-operator-summary-v92{grid-template-columns:repeat(3,1fr)}.ceo-operator-detail-grid-v92{grid-template-columns:1fr 1fr}.ceo-operator-box-v92.alerts{grid-column:1/-1}.ceo-operator-alert-list-v92{grid-template-columns:repeat(4,1fr)}}
@media(max-width:820px){.ceo-operator-hero-v92,.ceo-operator-card-head-v92{align-items:flex-start;flex-direction:column}.ceo-operator-card-head-v92>div:last-child{justify-items:start;text-align:left}.ceo-operator-summary-v92,.ceo-operator-kpis-v92,.ceo-operator-detail-grid-v92{grid-template-columns:1fr 1fr}.ceo-operator-box-v92.alerts{grid-column:auto}.ceo-operator-alert-list-v92{grid-template-columns:1fr}.ceo-operator-value-v92{grid-template-columns:1fr}.ceo-operator-value-v92>b{display:none}}
@media(max-width:820px){.ceo-operator-daily-auth-v95{grid-template-columns:1fr}.ceo-operator-daily-auth-v95>button{width:100%}}
@media(max-width:560px){.ceo-operator-period-v92,.ceo-operator-summary-v92,.ceo-operator-kpis-v92,.ceo-operator-detail-grid-v92{display:grid;grid-template-columns:1fr;width:100%}.ceo-operator-period-v92 button{width:100%}.ceo-operator-status-row-v92{grid-template-columns:1fr 30px}.ceo-operator-status-row-v92>i{grid-column:1/-1}.ceo-operator-status-row-v92 em{display:none}.ceo-operator-schedule-list-v92>div{grid-template-columns:1fr auto}.ceo-operator-schedule-list-v92 strong{grid-column:1/-1}.ceo-operator-auth-slots-v95{grid-template-columns:1fr 1fr}}
/* ===== END LORMAG NEXUS V92 ===== */

/* ===== LORMAG NEXUS V97 — FINANCE E CONTROLLI FONDI ===== */
.ceo-funds-action-wrap{display:flex;flex-direction:column;gap:6px;min-width:0;color:#83a0b8;font-size:8px;font-weight:900;letter-spacing:.03em}.ceo-funds-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:3px;border:1px solid #285171;border-radius:11px;background:#051428}.ceo-funds-action-btn{min-height:34px;border:1px solid transparent;border-radius:8px;padding:8px 10px;background:transparent;color:#8aa8c1;font:inherit;font-size:9px;font-weight:900;cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease}.ceo-funds-action-btn:hover{border-color:#2e6489;color:#eff9ff}.ceo-funds-action-btn.active{border-color:rgba(43,217,147,.68);background:linear-gradient(135deg,rgba(17,135,94,.72),rgba(43,217,147,.32));color:#f3fff9;box-shadow:0 0 0 2px rgba(43,217,147,.08),inset 0 1px 0 rgba(255,255,255,.08)}
.finance-v96{display:grid;gap:16px}.finance-head-v96{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:22px 24px;border:1px solid #275477;border-radius:19px;background:linear-gradient(135deg,rgba(9,36,64,.96),rgba(7,24,44,.96))}.finance-head-v96 h2{margin:5px 0 6px;font-size:30px}.finance-head-v96 p{margin:0;color:#8faac1}.finance-head-v96>div:last-child{display:flex;align-items:center;gap:10px}.finance-head-v96 small{color:#718fa9}.finance-head-v96 button{border:1px solid #37bde8;border-radius:11px;padding:10px 14px;background:linear-gradient(135deg,#0d72ce,#18a8d5);color:#fff;font-weight:900;cursor:pointer}.finance-metrics-v96{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.finance-metrics-v96 article{display:grid;gap:7px;min-height:120px;padding:18px;border:1px solid #285071;border-radius:16px;background:linear-gradient(145deg,#091e36,#07172a)}.finance-metrics-v96 article.positive{border-color:rgba(43,217,147,.46)}.finance-metrics-v96 article.negative{border-color:rgba(255,105,122,.58);background:linear-gradient(145deg,rgba(74,25,40,.72),#07172a)}.finance-metrics-v96 span,.finance-goal-simple-v96 span{color:#7c9ab4;font-size:8px;font-weight:950;letter-spacing:.09em}.finance-metrics-v96 strong{font-size:27px}.finance-metrics-v96 article.positive strong{color:#63e5ad}.finance-metrics-v96 article.negative strong{color:#ff8b99}.finance-metrics-v96 small{color:#7692aa;font-size:9px}.finance-goal-v96{padding:19px}.finance-progress-v96{height:12px;overflow:hidden;margin:15px 0;border:1px solid #214766;border-radius:999px;background:#051426}.finance-progress-v96 i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#168b65,#2bd993,#54dcff);box-shadow:0 0 18px rgba(43,217,147,.38);transition:width .3s ease}.finance-goal-simple-v96{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.finance-goal-simple-v96 span{display:grid;gap:6px;padding:11px;border-radius:11px;background:#0a213a}.finance-goal-simple-v96 b{color:#eff8ff;font-size:14px}.finance-grid-v96{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);gap:14px}.finance-chart-v96{display:grid;grid-template-columns:repeat(14,minmax(22px,1fr));gap:7px;align-items:end;height:230px;padding:28px 4px 0}.finance-day-v96{display:grid;grid-template-rows:22px minmax(0,1fr) 18px;align-items:end;justify-items:center;height:100%;min-width:0}.finance-day-v96 strong{align-self:start;color:#8ea8bf;font-size:7px;white-space:nowrap;transform:rotate(-38deg);transform-origin:center}.finance-day-v96 i{width:min(18px,72%);min-height:2px;border-radius:6px 6px 2px 2px;background:#315873}.finance-day-v96.positive i{background:linear-gradient(#44e2a4,#168b65)}.finance-day-v96.negative i{background:linear-gradient(#ff8e9c,#a73d54)}.finance-day-v96 span{color:#6987a2;font-size:7px}.finance-ai-v96{display:flex;flex-direction:column;justify-content:center;gap:10px;padding:22px;border:1px solid #31597d;border-radius:17px;background:radial-gradient(circle at 100% 0,rgba(78,96,255,.22),transparent 42%),linear-gradient(145deg,#0c2440,#09182d)}.finance-ai-v96.warning{border-color:rgba(239,188,77,.56)}.finance-ai-v96.critical{border-color:rgba(255,105,122,.62)}.finance-ai-v96.success{border-color:rgba(43,217,147,.55)}.finance-ai-v96 h3{margin:0;font-size:21px}.finance-ai-v96 p{margin:0;color:#b4c9da;line-height:1.65}.finance-ai-v96>small{color:#7895ae}.finance-ai-numbers-v96{display:grid;gap:6px;margin-top:4px}.finance-ai-numbers-v96 span{display:flex;justify-content:space-between;gap:12px;padding:8px 10px;border-radius:9px;background:rgba(4,16,30,.52);color:#8eabc2;font-size:9px}.finance-ai-numbers-v96 b{color:#eef8ff}.finance-facebook-v98{overflow:hidden;border:1px solid #285071;border-radius:17px;background:#07192d}.finance-facebook-v98 summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;cursor:pointer;list-style:none}.finance-facebook-v98 summary::-webkit-details-marker{display:none}.finance-facebook-v98 summary span{display:grid;gap:4px}.finance-facebook-v98 summary b{font-size:13px}.finance-facebook-v98 summary small{color:#7693ac;font-size:9px}.finance-facebook-v98 summary em{color:#53dfaa;font-size:10px;font-style:normal;font-weight:900}.finance-facebook-body-v98{display:grid;gap:12px;padding:0 18px 18px;border-top:1px solid #1e3e5b}.finance-facebook-plan-v98{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:14px}.finance-facebook-plan-v98 article{display:grid;gap:6px;padding:12px;border-radius:11px;background:#0a213a}.finance-facebook-plan-v98 span,.finance-facebook-kpi-v98 span{color:#7794ad;font-size:8px;font-weight:900}.finance-facebook-plan-v98 strong{font-size:18px}.finance-facebook-plan-v98 small{color:#66839d;font-size:8px}.finance-facebook-flow-v98{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;padding:11px;border-radius:11px;background:#061525;color:#c9dcea;font-size:10px;font-weight:850}.finance-facebook-flow-v98 i{color:#42dca2;font-style:normal}.finance-facebook-kpi-v98{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.finance-facebook-kpi-v98>div{display:grid;gap:4px;padding:10px;border:1px solid #244865;border-radius:10px}.finance-facebook-kpi-v98 strong{font-size:16px}.finance-facebook-kpi-v98 small{color:#66839d;font-size:8px}.finance-facebook-advice-v98{padding:13px;border-left:3px solid #45dca3;border-radius:10px;background:rgba(13,55,47,.48)}.finance-facebook-advice-v98 p{margin:5px 0;color:#b4ccbf;line-height:1.5}.finance-facebook-advice-v98 small,.finance-source-v96{color:#708ca5;font-size:8px}.finance-source-v96{margin:0;text-align:right}.finance-loading-v96{display:grid;gap:8px;min-height:160px;place-content:center;text-align:center}.finance-loading-v96 p{margin:0;color:#819eb7}
@media(max-width:1100px){.finance-grid-v96{grid-template-columns:1fr}.finance-goal-simple-v96,.finance-facebook-plan-v98{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.ceo-funds-actions,.finance-metrics-v96,.finance-goal-simple-v96,.finance-facebook-plan-v98,.finance-facebook-kpi-v98{grid-template-columns:1fr}.finance-head-v96{align-items:flex-start;flex-direction:column}.finance-head-v96>div:last-child{width:100%;justify-content:space-between}.finance-chart-v96{overflow-x:auto;grid-template-columns:repeat(14,minmax(28px,1fr))}}
/* ===== END LORMAG NEXUS V97 ===== */

/* ===== LORMAG NEXUS V98.1 — CONTRASTO PRATICHE DA RISCALDARE ===== */
.warming-page-head .eyebrow{color:#0b75a8}
.warming-page-head h2{color:#17243a}
.warming-page-head p{color:#4f5d70}
.warming-practice-list>.callback-empty{display:grid;place-items:center;gap:7px;color:#8da7c4;line-height:1.45}
.warming-practice-list>.callback-empty strong{display:block;color:#f2f8ff;font-size:14px}
.warming-practice-list>.callback-empty span{display:block;color:#8da7c4}
/* ===== END LORMAG NEXUS V98.1 ===== */

/* ===== LORMAG NEXUS V49 — FIX RESPONSIVE PANNELLO LOGISTICA ===== */
body>.logistics-drawer-shell{
  width:100%;max-width:100%;overflow:hidden
}
body>.logistics-drawer-shell .logistics-drawer{
  width:min(860px,100%);max-width:100%;min-width:0;overflow-x:hidden;scrollbar-gutter:stable
}
body>.logistics-drawer-shell .logistics-drawer>header>div{
  min-width:0
}
body>.logistics-drawer-shell .logistics-drawer>header h2,
body>.logistics-drawer-shell .logistics-drawer>header p{
  max-width:100%;overflow-wrap:anywhere
}
body>.logistics-drawer-shell .logistics-drawer-close{
  flex:0 0 40px;min-width:40px
}
body>.logistics-drawer-shell #logisticsOrderForm,
body>.logistics-drawer-shell .operator-sms-panel,
body>.logistics-drawer-shell .logistics-cycle-card,
body>.logistics-drawer-shell .logistics-history{
  width:100%;max-width:100%;min-width:0
}
body>.logistics-drawer-shell .operator-sms-history-item-head>*{
  min-width:0;overflow-wrap:anywhere
}
body>.logistics-drawer-shell .logistics-status-control{
  display:grid;grid-template-columns:minmax(170px,240px) minmax(180px,1fr);align-items:end;gap:10px;
  width:100%;min-width:0;padding-top:14px
}
body>.logistics-drawer-shell .logistics-status-control label{
  display:grid;gap:6px;min-width:0
}
body>.logistics-drawer-shell .logistics-status-control label>span{
  color:#9ab5cc;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase
}
body>.logistics-drawer-shell .logistics-status-control select{
  width:100%;min-width:0;min-height:42px;padding:10px 36px 10px 12px;
  border:1px solid #315d83;border-radius:11px;background:#06182c;color:#eef8ff;
  color-scheme:dark;font:inherit;font-size:11px;font-weight:800;outline:none
}
body>.logistics-drawer-shell .logistics-status-control select:focus{
  border-color:#5ad8ff;box-shadow:0 0 0 3px rgba(90,216,255,.12)
}
body>.logistics-drawer-shell .logistics-status-control>button{
  width:100%;min-width:0;min-height:42px;border:1px solid #5ad8ff!important;
  background:linear-gradient(135deg,#0f71ff,#1596bd)!important;color:#fff!important;
  box-shadow:0 9px 22px rgba(15,113,255,.2);opacity:1
}
body>.logistics-drawer-shell .logistics-status-control>button:hover{
  filter:brightness(1.08)
}
body>.logistics-drawer-shell .logistics-status-control>button:disabled{
  opacity:.5;cursor:not-allowed;filter:saturate(.65)
}
body>.logistics-drawer-shell .logistics-status-control>button:focus-visible,
body>.logistics-drawer-shell .logistics-status-control select:focus-visible{
  outline:3px solid rgba(90,216,255,.4);outline-offset:2px
}
@media(max-width:680px){
  body>.logistics-drawer-shell .logistics-status-control{grid-template-columns:1fr}
}
/* ===== END LORMAG NEXUS V49 ===== */

/* ===== LORMAG NEXUS V67 — FLUIDITÀ LISTE ===== */
/* Le righe fuori dallo schermo non vengono dipinte finché non servono. */
.live-order-row,
.logistics-order-card,
.missed-callback-row,
.approval-review-card,
.ceo-operator-card-v92,
.warming-practice-row,
.priority{
  content-visibility:auto;
  contain-intrinsic-size:auto 96px;
  contain:layout paint style;
}
/* ===== END LORMAG NEXUS V67 ===== */
