/* PIVOT CONTROL R37 — chrome guard with production-parity report headers */
body[data-active-view]:not([data-active-view="home"]) #appView > header.topbar.pivot-commandbar:not(.report-salon-header):not(.report-client-header){
  display:none!important;
  visibility:hidden!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  overflow:hidden!important;
  pointer-events:none!important;
}
body[data-active-view]:not([data-active-view="home"]) #appView > header.topbar.pivot-commandbar:not(.report-salon-header):not(.report-client-header) #topLeftBtn,
body[data-active-view]:not([data-active-view="home"]) #appView > header.topbar.pivot-commandbar:not(.report-salon-header):not(.report-client-header) .pivot-command-title,
body[data-active-view]:not([data-active-view="home"]) #appView > header.topbar.pivot-commandbar:not(.report-salon-header):not(.report-client-header) .pivot-command-context,
body[data-active-view]:not([data-active-view="home"]) #appView > header.topbar.pivot-commandbar:not(.report-salon-header):not(.report-client-header) .pivot-command-actions{
  display:none!important;
  visibility:hidden!important;
}
/* Reports keep the same production interaction shell: Back + Anno + Comparison + Filtri. */
body[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header,
body[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header{
  display:grid!important;
  visibility:visible!important;
  pointer-events:auto!important;
  overflow:visible!important;
}
body[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header #topLeftBtn,
body[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header .pivot-command-title,
body[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header .pivot-command-context,
body[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header .pivot-command-actions,
body[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header #topLeftBtn,
body[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header .pivot-command-title,
body[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header .pivot-command-context,
body[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header .pivot-command-actions{
  visibility:visible!important;
}
@media (min-width:821px){
  body.pivot-ui[data-active-view]:not([data-active-view="home"]):not([data-active-view="reports"]) .pivot-workspace{
    top:0!important;
    left:86px!important;
    right:0!important;
    bottom:0!important;
    height:100dvh!important;
    max-height:100dvh!important;
  }
  body.pivot-ui[data-active-view="reports"] .topbar.report-salon-header ~ .pivot-workspace{
    top:60px!important;
    left:86px!important;
    right:0!important;
    bottom:0!important;
    height:calc(100dvh - 60px)!important;
    max-height:calc(100dvh - 60px)!important;
  }
  body.pivot-ui[data-active-view="reports"] .topbar.report-client-header ~ .pivot-workspace{
    top:58px!important;
    left:86px!important;
    right:0!important;
    bottom:0!important;
    height:calc(100dvh - 58px)!important;
    max-height:calc(100dvh - 58px)!important;
  }
}
@media (max-width:820px){
  body.pivot-ui[data-active-view]:not([data-active-view="home"]):not([data-active-view="reports"]) .pivot-workspace{
    top:0!important;
    left:0!important;
    right:0!important;
    bottom:68px!important;
    height:calc(100dvh - 68px)!important;
    max-height:calc(100dvh - 68px)!important;
  }
  body.pivot-ui[data-active-view="reports"] .topbar.report-salon-header ~ .pivot-workspace{
    top:60px!important;
    left:0!important;
    right:0!important;
    bottom:68px!important;
    height:calc(100dvh - 128px)!important;
    max-height:calc(100dvh - 128px)!important;
  }
  body.pivot-ui[data-active-view="reports"] .topbar.report-client-header ~ .pivot-workspace{
    top:58px!important;
    left:0!important;
    right:0!important;
    bottom:68px!important;
    height:calc(100dvh - 126px)!important;
    max-height:calc(100dvh - 126px)!important;
  }
}
body.pivot-ui[data-active-view]:not([data-active-view="home"]) .pivot-primary-nav .pivot-nav-home{
  display:flex!important;
}
#view-fiches .fiche-toolbar{padding-right:8px!important}
#view-fiches .fiche-toolbar-new{
  width:38px!important;min-width:38px!important;height:38px!important;min-height:38px!important;
  margin:0 0 0 6px!important;padding:0!important;border:1px solid rgba(212,0,61,.22)!important;
  border-radius:10px!important;background:#fff!important;color:var(--pc-red)!important;
  display:grid!important;place-items:center!important;font:500 25px/1 Arial,sans-serif!important;
  cursor:pointer!important;box-shadow:0 3px 10px rgba(18,18,20,.05)!important;
}
#view-fiches .fiche-toolbar-new:hover{background:#fff5f8!important}
@media (min-width:821px){
  body.pivot-ui #ficheModal.fiche-route-dialog[open]{
    top:0!important;left:86px!important;right:0!important;bottom:0!important;
    width:calc(100vw - 86px)!important;max-width:calc(100vw - 86px)!important;
    height:100dvh!important;max-height:100dvh!important;
  }
}
@media (max-width:820px){
  body.pivot-ui #ficheModal.fiche-route-dialog[open]{
    top:0!important;left:0!important;right:0!important;bottom:68px!important;
    width:100vw!important;max-width:100vw!important;
    height:calc(100dvh - 68px)!important;max-height:calc(100dvh - 68px)!important;
  }
}

/* PIVOT CONTROL R38 — REPORT HEADER VISIBILITY PARITY */
@media (min-width:821px){
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header{
    display:grid!important;
    visibility:visible!important;
    height:60px!important;
    min-height:60px!important;
    max-height:60px!important;
    left:86px!important;
    right:0!important;
    width:auto!important;
    padding:0!important;
    pointer-events:auto!important;
    overflow:visible!important;
  }
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header{
    display:grid!important;
    visibility:visible!important;
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    left:86px!important;
    right:0!important;
    width:auto!important;
    padding:0!important;
    pointer-events:auto!important;
    overflow:visible!important;
  }
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header .pivot-command-home,
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header .pivot-command-home{
    display:block!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header .pivot-command-title,
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header .pivot-command-title{
    display:flex!important;
    visibility:visible!important;
  }
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header .pivot-command-context,
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header .pivot-command-context{
    display:flex!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header .pivot-command-actions,
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header .pivot-command-actions{
    visibility:visible!important;
  }
  body.pivot-ui[data-active-view="reports"] .pivot-workspace{
    top:60px!important;
    height:calc(100dvh - 60px)!important;
    max-height:calc(100dvh - 60px)!important;
  }
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header ~ .pivot-workspace{
    top:58px!important;
    height:calc(100dvh - 58px)!important;
    max-height:calc(100dvh - 58px)!important;
  }
}
@media (max-width:820px){
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header,
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header{
    display:grid!important;
    visibility:visible!important;
    height:58px!important;
    min-height:58px!important;
    max-height:58px!important;
    left:0!important;
    right:0!important;
    width:100vw!important;
    pointer-events:auto!important;
    overflow:visible!important;
  }
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header .pivot-command-home,
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header .pivot-command-home{display:block!important;visibility:visible!important;pointer-events:auto!important}
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header .pivot-command-title,
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header .pivot-command-title{display:flex!important;visibility:visible!important}
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header .pivot-command-context,
  body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header .pivot-command-context{display:flex!important;visibility:visible!important;pointer-events:auto!important}
  body.pivot-ui[data-active-view="reports"] .pivot-workspace{
    top:58px!important;
    bottom:68px!important;
    height:calc(100dvh - 126px)!important;
    max-height:calc(100dvh - 126px)!important;
  }
}

/* PIVOT CONTROL R39 — REPORT TOOLBAR PREMIUM VISUAL PASS */
body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-salon-header,
body.pivot-ui[data-active-view="reports"] #appView > header.topbar.pivot-commandbar.report-client-header{
  background:rgba(255,255,255,.98)!important;
  border-bottom:1px solid #e9e5df!important;
  box-shadow:0 5px 18px rgba(18,18,20,.055)!important;
  backdrop-filter:blur(10px)!important;
}
body.pivot-ui[data-active-view="reports"] .report-salon-header .pivot-command-home,
body.pivot-ui[data-active-view="reports"] .report-client-header .pivot-command-home{
  width:42px!important;min-width:42px!important;height:42px!important;min-height:42px!important;
  margin-left:10px!important;align-self:center!important;border:1px solid #e4e0da!important;border-radius:11px!important;
  background:#fff!important;box-shadow:0 3px 10px rgba(18,18,20,.04)!important;
}
body.pivot-ui[data-active-view="reports"] .report-salon-header .pivot-command-home:hover,
body.pivot-ui[data-active-view="reports"] .report-client-header .pivot-command-home:hover{background:#fff5f8!important;border-color:rgba(212,0,61,.22)!important}
body.pivot-ui[data-active-view="reports"] .report-salon-header .pivot-command-title,
body.pivot-ui[data-active-view="reports"] .report-client-header .pivot-command-title{
  justify-content:center!important;gap:3px!important;padding-left:10px!important;min-width:0!important;
}
body.pivot-ui[data-active-view="reports"] .report-salon-header .pivot-command-brand,
body.pivot-ui[data-active-view="reports"] .report-client-header .pivot-command-brand{
  display:block!important;color:#d4003d!important;font:800 7px/1 var(--pc-font)!important;letter-spacing:.18em!important;
}
body.pivot-ui[data-active-view="reports"] .report-salon-header #pageTitle,
body.pivot-ui[data-active-view="reports"] .report-client-header #pageTitle{
  color:#17171b!important;font:760 20px/1 var(--pc-font)!important;letter-spacing:-.025em!important;
}
body.pivot-ui[data-active-view="reports"] .report-salon-header .pivot-command-context,
body.pivot-ui[data-active-view="reports"] .report-client-header .pivot-command-context{
  gap:7px!important;margin-right:10px!important;padding:0!important;overflow:visible!important;
}
body.pivot-ui[data-active-view="reports"] .report-salon-header .year-context,
body.pivot-ui[data-active-view="reports"] .report-client-header .year-context{
  min-width:86px!important;width:auto!important;height:42px!important;padding:5px 10px!important;margin:0!important;
  border:1px solid #e4e0da!important;border-radius:11px!important;background:#f8f6f3!important;box-sizing:border-box!important;
  display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;
}
body.pivot-ui[data-active-view="reports"] .report-salon-header .year-context-label,
body.pivot-ui[data-active-view="reports"] .report-client-header .year-context-label{
  height:auto!important;line-height:1!important;margin:0 0 3px!important;color:#d4003d!important;
  font:760 8px/1 var(--pc-font)!important;letter-spacing:.08em!important;text-transform:uppercase!important;
}
body.pivot-ui[data-active-view="reports"] .report-salon-header .p744s-report-year-button,
body.pivot-ui[data-active-view="reports"] .report-client-header .p744s-report-year-button{
  min-width:64px!important;width:auto!important;height:20px!important;min-height:20px!important;padding:0 18px 0 0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;color:#17171b!important;text-align:left!important;
}
body.pivot-ui[data-active-view="reports"] .report-salon-header .p744s-report-year-button b,
body.pivot-ui[data-active-view="reports"] .report-client-header .p744s-report-year-button b{
  font:760 15px/20px var(--pc-font)!important;color:#17171b!important;
}
body.pivot-ui[data-active-view="reports"] .report-salon-header .report-context-icon,
body.pivot-ui[data-active-view="reports"] .report-client-header .report-context-icon,
body.pivot-ui[data-active-view="reports"] .report-salon-header .p744t-report-compare-btn,
body.pivot-ui[data-active-view="reports"] .report-client-header .p744t-report-compare-btn{
  width:40px!important;min-width:40px!important;height:40px!important;min-height:40px!important;
  display:grid!important;place-items:center!important;margin:0!important;padding:0!important;
  border:1px solid #e4e0da!important;border-radius:11px!important;background:#fff!important;color:#29292d!important;
  box-shadow:0 3px 10px rgba(18,18,20,.035)!important;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease!important;
}
body.pivot-ui[data-active-view="reports"] .report-salon-header .report-context-icon:hover,
body.pivot-ui[data-active-view="reports"] .report-client-header .report-context-icon:hover,
body.pivot-ui[data-active-view="reports"] .report-salon-header .p744t-report-compare-btn:hover,
body.pivot-ui[data-active-view="reports"] .report-client-header .p744t-report-compare-btn:hover{
  border-color:rgba(212,0,61,.22)!important;background:#fff5f8!important;color:#d4003d!important;transform:translateY(-1px)!important;
}
body.pivot-ui[data-active-view="reports"] .report-salon-header .p744t-report-compare-btn.active,
body.pivot-ui[data-active-view="reports"] .report-client-header .p744t-report-compare-btn.active{
  background:#d4003d!important;border-color:#d4003d!important;color:#fff!important;box-shadow:0 7px 18px rgba(212,0,61,.22)!important;
}
body.pivot-ui[data-active-view="reports"] .report-salon-header .report-send-btn,
body.pivot-ui[data-active-view="reports"] .report-client-header .report-send-btn{
  background:#17171b!important;border-color:#17171b!important;color:#fff!important;
}
body.pivot-ui[data-active-view="reports"] .report-salon-header .report-send-btn:hover,
body.pivot-ui[data-active-view="reports"] .report-client-header .report-send-btn:hover{background:#d4003d!important;border-color:#d4003d!important;color:#fff!important}
body.pivot-ui[data-active-view="reports"] .report-salon-header .top-actions,
body.pivot-ui[data-active-view="reports"] .report-client-header .top-actions{
  width:0!important;min-width:0!important;padding:0!important;margin:0!important;overflow:hidden!important;
}
@media(max-width:820px){
  body.pivot-ui[data-active-view="reports"] .report-salon-header .pivot-command-home,
  body.pivot-ui[data-active-view="reports"] .report-client-header .pivot-command-home{width:36px!important;min-width:36px!important;height:36px!important;min-height:36px!important;margin-left:6px!important;border-radius:9px!important}
  body.pivot-ui[data-active-view="reports"] .report-salon-header #pageTitle,
  body.pivot-ui[data-active-view="reports"] .report-client-header #pageTitle{font-size:15px!important}
  body.pivot-ui[data-active-view="reports"] .report-salon-header .pivot-command-brand,
  body.pivot-ui[data-active-view="reports"] .report-client-header .pivot-command-brand{font-size:6px!important}
  body.pivot-ui[data-active-view="reports"] .report-salon-header .pivot-command-context,
  body.pivot-ui[data-active-view="reports"] .report-client-header .pivot-command-context{gap:4px!important;margin-right:5px!important}
  body.pivot-ui[data-active-view="reports"] .report-salon-header .year-context,
  body.pivot-ui[data-active-view="reports"] .report-client-header .year-context{min-width:62px!important;height:36px!important;padding:4px 7px!important;border-radius:9px!important}
  body.pivot-ui[data-active-view="reports"] .report-salon-header .year-context-label,
  body.pivot-ui[data-active-view="reports"] .report-client-header .year-context-label{font-size:6px!important;margin-bottom:2px!important}
  body.pivot-ui[data-active-view="reports"] .report-salon-header .p744s-report-year-button b,
  body.pivot-ui[data-active-view="reports"] .report-client-header .p744s-report-year-button b{font-size:12px!important}
  body.pivot-ui[data-active-view="reports"] .report-salon-header .report-context-icon,
  body.pivot-ui[data-active-view="reports"] .report-client-header .report-context-icon,
  body.pivot-ui[data-active-view="reports"] .report-salon-header .p744t-report-compare-btn,
  body.pivot-ui[data-active-view="reports"] .report-client-header .p744t-report-compare-btn{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;border-radius:9px!important}
}

/* PIVOT CONTROL R40 — REPORT TOOLBAR SPACING / YEAR CONTROL POLISH */
@media (min-width:821px){
  body.pivot-ui[data-active-view="reports"] .report-salon-header .pivot-command-title,
  body.pivot-ui[data-active-view="reports"] .report-client-header .pivot-command-title{
    padding-left:18px!important;
    padding-right:18px!important;
    gap:4px!important;
  }
  body.pivot-ui[data-active-view="reports"] .report-salon-header .pivot-command-context,
  body.pivot-ui[data-active-view="reports"] .report-client-header .pivot-command-context{
    margin-right:16px!important;
    gap:8px!important;
  }
  body.pivot-ui[data-active-view="reports"] .report-salon-header .year-context,
  body.pivot-ui[data-active-view="reports"] .report-client-header .year-context{
    min-width:98px!important;
    width:98px!important;
    padding:6px 12px!important;
    overflow:visible!important;
  }
  body.pivot-ui[data-active-view="reports"] .report-salon-header .p744s-report-year-button,
  body.pivot-ui[data-active-view="reports"] .report-client-header .p744s-report-year-button{
    min-width:74px!important;
    width:74px!important;
    padding-right:24px!important;
    overflow:visible!important;
  }
  body.pivot-ui[data-active-view="reports"] .report-salon-header .p744s-year-chevrons,
  body.pivot-ui[data-active-view="reports"] .report-client-header .p744s-year-chevrons{
    right:2px!important;
    top:1px!important;
    width:16px!important;
    height:20px!important;
    overflow:visible!important;
  }
  body.pivot-ui[data-active-view="reports"] .report-salon-header .p744s-year-chevrons i,
  body.pivot-ui[data-active-view="reports"] .report-client-header .p744s-year-chevrons i{
    left:4px!important;
    width:7px!important;
    height:7px!important;
  }
}
@media (max-width:820px){
  body.pivot-ui[data-active-view="reports"] .report-salon-header .pivot-command-title,
  body.pivot-ui[data-active-view="reports"] .report-client-header .pivot-command-title{
    padding-left:8px!important;
    padding-right:6px!important;
  }
  body.pivot-ui[data-active-view="reports"] .report-salon-header .year-context,
  body.pivot-ui[data-active-view="reports"] .report-client-header .year-context{
    min-width:68px!important;
    width:68px!important;
    padding:4px 8px!important;
  }
  body.pivot-ui[data-active-view="reports"] .report-salon-header .p744s-report-year-button,
  body.pivot-ui[data-active-view="reports"] .report-client-header .p744s-report-year-button{
    min-width:50px!important;
    width:50px!important;
    padding-right:18px!important;
  }
  body.pivot-ui[data-active-view="reports"] .report-salon-header .p744s-year-chevrons,
  body.pivot-ui[data-active-view="reports"] .report-client-header .p744s-year-chevrons{
    right:0!important;
  }
}
