/* Sfera CRM · Task Studio v8 (1.145.2)
   Scoped refinements on top of v7. Brand tokens are from the approved dashboard;
   charts/labels retain their semantic priority and status colors. */
#task-view #task-v2-root.task-v5{
 --task-v8-navy:#0e2166;--task-v8-blue:#3157d7;
 --task-v8-line:#e3eaf7;--task-v8-muted:#7184a0;
 --task-v8-surface:#fff;--task-v8-soft:#f6f9ff;
}
/* All overview icons match dashboard's navy-on-white icon treatment. */
#task-view #task-v2-root.task-v5 .task-v5-chart-name>.task-v5-icon,
#task-view #task-v2-root.task-v5 .task-v5-chart-name .task-v5-icon,
#task-view #task-v2-root.task-v5 .task-v5-kpi-icon>.task-v5-icon,
#task-view #task-v2-root.task-v5 .task-v5-kpi[data-tone="amber"] .task-v5-kpi-icon>.task-v5-icon,
#task-view #task-v2-root.task-v5 .task-v5-kpi[data-tone="red"] .task-v5-kpi-icon>.task-v5-icon,
#task-view #task-v2-root.task-v5 .task-v5-kpi[data-tone="green"] .task-v5-kpi-icon>.task-v5-icon{
 box-sizing:border-box!important;width:34px!important;height:34px!important;
 display:grid!important;place-items:center!important;flex:0 0 34px!important;
 background:var(--task-v8-navy)!important;color:#fff!important;border:0!important;
 border-radius:10px!important;box-shadow:none!important;
}
#task-view #task-v2-root.task-v5 .task-v5-chart-name .task-v5-icon svg,
#task-view #task-v2-root.task-v5 .task-v5-kpi-icon .task-v5-icon svg{
 width:17px!important;height:17px!important;color:#fff!important;stroke:#fff!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi-icon{
 width:34px!important;height:34px!important;min-width:34px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-chart h2{color:var(--task-v8-navy)!important}
#task-view #task-v2-root.task-v5 .task-v5-chart p{color:var(--task-v8-muted)!important}
#task-view #task-v2-root.task-v5 .task-v6-chart-meta strong,
#task-view #task-v2-root.task-v5 .task-v5-chart-aside strong{color:var(--task-v8-blue)!important}
#task-view #task-v2-root.task-v5 .task-v5-chart{
 transition:border-color .22s ease,box-shadow .22s ease!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v2-kpis>button.task-v5-kpi{
 cursor:pointer!important;background:#fff!important;min-height:126px!important;
 border-color:var(--task-v8-line)!important;
 transition:transform .2s cubic-bezier(.2,.8,.3,1),border-color .18s,box-shadow .18s!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v2-kpis>button.task-v5-kpi:is(:hover,:focus-visible){
 transform:translateY(-3px)!important;border-color:#b9caf1!important;
 box-shadow:0 9px 22px rgba(14,33,102,.085)!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v2-kpis>button.task-v5-kpi:focus-visible{
 outline:2px solid var(--task-v8-blue)!important;outline-offset:2px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi>strong{color:var(--task-v8-navy)!important}
#task-view #task-v2-root.task-v5 .task-v5-mini-spark{
 padding-top:2px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-mini-spark svg{
 overflow:visible!important;
}
#task-view #task-v2-root.task-v5 .task-v7-spark-bar{
 transform-box:fill-box;transform-origin:50% 100%;
 animation:task-v8-rise .55s cubic-bezier(.12,.8,.28,1) both!important;
 transition:opacity .18s,filter .18s!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi:is(:hover,:focus-visible) .task-v7-spark-bar{
 filter:drop-shadow(0 1px 1px rgba(14,33,102,.17));
}
@keyframes task-v8-rise{from{transform:scaleY(.06);opacity:.2}to{transform:scaleY(1);opacity:1}}
/* A continuous wave reveals each REAL deadline/history curve on entry.
   SVG paths declare pathLength=100 so the animation is deterministic. */
#task-view #task-v2-root.task-v5 .task-v6-due-graph .task-v6-series,
#task-view #task-v2-root.task-v5 .task-v5-plot .task-v8-history-series{
 stroke-dasharray:100!important;stroke-dashoffset:0!important;
 stroke-linecap:round!important;stroke-linejoin:round!important;
 stroke-width:3!important;fill:none!important;
 animation:task-v8-wave .94s cubic-bezier(.17,.83,.25,1) var(--series-delay,0ms) both!important;
 filter:drop-shadow(0 2px 1px rgba(49,87,215,.09));
}
@keyframes task-v8-wave{
 from{stroke-dashoffset:100;opacity:.25}to{stroke-dashoffset:0;opacity:1}
}
#task-view #task-v2-root.task-v5 .task-v6-due-graph .task-v6-dot{
 cursor:help!important;transition:r .16s,filter .16s!important;
 animation:task-v8-dot .3s ease-out calc(.53s + var(--series-delay,0ms)) both!important;
}
#task-view #task-v2-root.task-v5 .task-v6-due-graph .task-v6-dot:hover{r:6;filter:drop-shadow(0 2px 2px rgba(49,87,215,.24))}
@keyframes task-v8-dot{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:scale(1)}}
#task-view #task-v2-root.task-v5 .task-v5-legend-item[aria-pressed="false"],
#task-view #task-v2-root.task-v5 .task-v6-chart-key[aria-pressed="false"]{
 opacity:.5!important;
}
#task-view #task-v2-root.task-v5 :is(.task-v5-legend-item,.task-v6-chart-key):focus-visible{
 outline:2px solid var(--task-v8-blue)!important;outline-offset:2px!important;
}
/* Native scope uses data-active, not aria-pressed. State is highly visible. */
#task-view #task-v2-root.task-v5 .task-v6-segments #task-v2-scope button[data-active="true"],
#task-view #task-v2-root.task-v5 .task-v6-segments .task-v4-scope button[data-active="true"]{
 background:var(--task-v8-navy)!important;color:#fff!important;
 border-color:var(--task-v8-navy)!important;
 box-shadow:0 3px 9px rgba(14,33,102,.12)!important;
}
#task-view #task-v2-root.task-v5 .task-v6-segments #task-v2-scope button[data-active="false"]{
 color:#526c94!important;background:transparent!important;
}
#task-view #task-v2-root.task-v5 .task-v6-segments #task-v2-scope button:hover:not([data-active="true"]){
 background:#e5edfb!important;color:#3157d7!important;
}
#task-view #task-v2-root.task-v5 .task-v6-segments #task-v2-scope button:focus-visible{
 outline:2px solid var(--task-v8-blue)!important;outline-offset:2px!important;
}
/* Filter controls: visually centered chevrons drawn in CSS, not font glyphs. */
#task-view #task-v2-root.task-v5 .task-v5-filter-panel{
 overflow:visible!important;border-color:var(--task-v8-line)!important;
 background:#fafcff!important;padding:17px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-filter-panel .task-v2-filter-grid{
 align-items:end;gap:13px 14px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-filter-panel label>span:first-child:not(.task-v5-select){
 display:block;margin-bottom:7px;color:#435977;font:600 11px Poppins,sans-serif;
}
#task-view #task-v2-root.task-v5 .task-v5-select-trigger{
 position:relative!important;justify-content:flex-start!important;
 padding:10px 35px 10px 12px!important;min-height:41px!important;
 border:1px solid #d9e4f5!important;border-radius:10px!important;
 background:#fff!important;color:#183d72!important;
 box-shadow:none!important;text-align:left!important;
 font:550 12px/1.35 Poppins,"Open Sans",sans-serif!important;
 transition:background-color .18s,border-color .18s,box-shadow .18s!important;
}
#task-view #task-v2-root.task-v5 .task-v5-select-trigger:after{
 content:""!important;position:absolute!important;right:16px!important;top:50%!important;
 display:block!important;width:7px!important;height:7px!important;
 border:0!important;border-right:1.8px solid #5373a6!important;
 border-bottom:1.8px solid #5373a6!important;
 transform:translateY(-70%) rotate(45deg)!important;transition:transform .18s!important;
}
#task-view #task-v2-root.task-v5 .task-v5-select[data-open="true"] .task-v5-select-trigger:after{
 transform:translateY(-20%) rotate(225deg)!important;
}
#task-view #task-v2-root.task-v5 .task-v5-select-trigger:is(:hover,:focus-visible),
#task-view #task-v2-root.task-v5 .task-v5-select[data-open="true"] .task-v5-select-trigger{
 border-color:#9cb6eb!important;background:#fbfdff!important;
 box-shadow:0 0 0 3px rgba(49,87,215,.075)!important;
 outline:0!important;
}
#task-view #task-v2-root.task-v5 .task-v5-select-menu{
 padding:6px!important;gap:2px!important;
 border:1px solid #dbe5f6!important;border-radius:11px!important;
 box-shadow:0 12px 24px rgba(14,33,102,.13)!important;
}
#task-view #task-v2-root.task-v5 .task-v5-select-option{
 position:relative!important;min-height:36px!important;padding:9px 30px 9px 11px!important;
 border-radius:7px!important;color:#35567e!important;
 font:550 11px/1.35 Poppins,sans-serif!important;
}
#task-view #task-v2-root.task-v5 .task-v5-select-option[aria-selected="true"]{
 color:var(--task-v8-navy)!important;background:#eef3ff!important;font-weight:700!important;
}
#task-view #task-v2-root.task-v5 .task-v5-select-option[aria-selected="true"]:after{
 content:"✓";position:absolute;right:12px;color:var(--task-v8-blue);font-size:13px;font-weight:700;
}
#task-view #task-v2-root.task-v5 .task-v5-select-option:focus-visible{
 outline:2px solid var(--task-v8-blue)!important;outline-offset:-2px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-filter-panel .task-v2-filter-panel__footer{
 display:flex!important;align-items:center!important;justify-content:center!important;
 gap:10px!important;padding:13px 0 0!important;margin-top:15px!important;
 border-top:1px solid #e8eef8!important;
}
#task-view #task-v2-root.task-v5 .task-v5-filter-panel .task-v2-filter-panel__footer button{
 flex:0 0 auto!important;width:auto!important;min-width:116px!important;
 min-height:36px!important;max-height:38px!important;
 border-radius:9px!important;padding:7px 15px!important;
 font:650 11px Poppins,"Open Sans",sans-serif!important;
 box-shadow:none!important;
}
#task-view #task-v2-root.task-v5 #task-v2-filter-apply{
 background:#3157d7!important;color:#fff!important;border:1px solid #3157d7!important;
}
#task-view #task-v2-root.task-v5 #task-v2-filter-apply:hover{background:#2546b7!important}
#task-view #task-v2-root.task-v5 #task-v2-filter-reset{
 background:#fff!important;border:1px solid #ccd9ed!important;color:#31517e!important;
}
#task-view #task-v2-root.task-v5 #task-v2-filter-reset:hover{background:#eef4ff!important}
#task-view #task-v2-root.task-v5 .task-v5-filter-panel .task-v2-filter-panel__footer button:focus-visible{
 outline:2px solid var(--task-v8-blue)!important;outline-offset:2px!important;
}
/* Detail drawer: one white information module, not a transparent holder of duplicated tiles. */
#task-v2-detail-modal .task-v5-detail-scroll{background:#f7f9fe!important;gap:13px!important}
#task-v2-detail-modal .task-v5-detail-hero{
 padding:18px!important;border:1px solid #e1e9f6!important;
 box-shadow:0 4px 15px rgba(14,33,102,.045)!important;
}
#task-v2-detail-modal .task-v5-detail-customer>.task-v5-icon{
 background:#0e2166!important;color:#fff!important;border-radius:10px!important;
 display:grid!important;place-items:center!important;width:35px!important;height:35px!important;
}
#task-v2-detail-modal .task-v5-detail-customer>.task-v5-icon svg{stroke:#fff!important;width:18px!important;height:18px!important}
#task-v2-detail-modal .task-v5-detail-fact{
 background:#f8faff!important;border-color:#e1e9f8!important;
}
#task-v2-detail-modal .task-v5-detail-fact:first-child{background:#f4f7ff!important}
#task-v2-detail-modal .task-v5-detail-progress .task-v5-progress-bar i{
 background:#3157d7!important;
}
#task-v2-detail-modal .task-v5-detail-scroll>#task-v2-detail-data{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:10px!important;padding:16px!important;margin:0!important;
 border:1px solid #e1e9f7!important;border-radius:15px!important;
 background:#fff!important;box-shadow:0 4px 14px rgba(14,33,102,.04)!important;
}
#task-v2-detail-modal #task-v2-detail-data>.task-v7-detail-heading{
 padding:0 0 11px!important;margin:0 0 2px!important;
 border-bottom:1px solid #edf1f8!important;
}
#task-v2-detail-modal .task-v8-section-heading{
 display:flex!important;align-items:center!important;gap:9px!important;
 min-height:32px!important;color:#0e2166!important;
 font:700 13px/1.4 Poppins,"Open Sans",sans-serif!important;
}
#task-v2-detail-modal .task-v8-section-heading>.task-v5-icon{
 display:grid!important;place-items:center!important;width:29px!important;height:29px!important;
 flex:0 0 29px!important;border-radius:8px!important;
 background:#0e2166!important;color:#fff!important;
}
#task-v2-detail-modal .task-v8-section-heading>.task-v5-icon svg{
 width:15px!important;height:15px!important;stroke:#fff!important;
}
#task-v2-detail-modal #task-v2-detail-data>div:not(.task-v7-detail-heading):not(.task-v7-detail-duplicate){
 display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;
 grid-template-rows:auto 1fr!important;align-items:center!important;gap:2px 8px!important;
 padding:12px!important;min-height:74px!important;
 background:#f8faff!important;border:1px solid #e9effa!important;
 box-shadow:none!important;
}
#task-v2-detail-modal #task-v2-detail-data>div.task-v7-detail-description{
 grid-column:1/-1!important;min-height:100px!important;
}
#task-v2-detail-modal .task-v8-field-icon{
 grid-column:1!important;grid-row:1/3!important;
 display:grid!important;place-items:center!important;
 width:30px!important;height:30px!important;
 border-radius:9px!important;background:#eaf0fc!important;color:#3157d7!important;
}
#task-v2-detail-modal .task-v8-field-icon>.task-v5-icon{
 display:grid!important;place-items:center!important;
 width:18px!important;height:18px!important;min-width:18px!important;
 background:transparent!important;color:inherit!important;
}
#task-v2-detail-modal .task-v8-field-icon svg{width:16px!important;height:16px!important;stroke:currentColor!important}
#task-v2-detail-modal #task-v2-detail-data dt{
 grid-column:2!important;grid-row:1!important;margin:0!important;
 color:#7186a6!important;font:550 10px Poppins,sans-serif!important;
}
#task-v2-detail-modal #task-v2-detail-data dd{
 grid-column:2!important;grid-row:2!important;min-width:0!important;
 color:#173b70!important;font:650 12px/1.5 Poppins,"Open Sans",sans-serif!important;
}
#task-v2-detail-modal .task-v8-micro-section{
 background:#fff!important;border-color:#e1e9f7!important;border-radius:15px!important;
 padding:16px!important;
}
#task-v2-detail-modal .task-v8-micro-section h3.task-v8-section-heading{
 padding:0 0 12px!important;margin:0 0 13px!important;
 border-bottom:1px solid #edf1f8!important;
}
#task-v2-detail-modal .task-v8-micro-section .task-v2-detail-microtasks{
 color:#31517c!important;
}
#task-v2-detail-modal .task-v8-micro-section.task-v8-micro-empty .task-v2-empty{
 display:block!important;margin:0!important;padding:13px!important;
 border:1px dashed #d8e3f3!important;border-radius:10px!important;
 background:#f9fbff!important;color:#7c8eaa!important;
 font:500 11px Poppins,sans-serif!important;
}
#task-v2-detail-modal .task-v5-detail-dock button:is(:hover,:focus-visible){
 border-color:#b9cbeb!important;transform:translateY(-1px)!important;
}
#task-v2-detail-modal .task-v5-detail-dock button:focus-visible{
 outline:2px solid #3157d7!important;outline-offset:2px!important;
}
@media(max-width:1180px){
 #task-view #task-v2-root.task-v5 .task-v5-insights{gap:13px!important}
}
@media(max-width:760px){
 #task-view #task-v2-root.task-v5 .task-v5-chart-name .task-v5-icon,
 #task-view #task-v2-root.task-v5 .task-v5-kpi-icon>.task-v5-icon{width:30px!important;height:30px!important;flex-basis:30px!important}
 #task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v2-kpis>button.task-v5-kpi{
  min-height:105px!important;
 }
 #task-view #task-v2-root.task-v5 .task-v5-kpi .task-v5-mini-spark{max-width:58px!important}
 #task-view #task-v2-root.task-v5 .task-v5-filter-panel{padding:12px!important}
 #task-v2-detail-modal .task-v5-detail-scroll>#task-v2-detail-data{padding:12px!important}
}
@media(max-width:480px){
 #task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v2-kpis>button.task-v5-kpi{
  grid-template-columns:30px minmax(0,1fr) 44px!important;
  padding:10px!important;gap:5px!important;
 }
 #task-view #task-v2-root.task-v5 .task-v5-kpi .task-v5-mini-spark{width:44px!important;max-width:44px!important}
 #task-view #task-v2-root.task-v5 .task-v5-kpi>span:not(.task-v3-kpi__icon):not(.task-studio-motif):not(.task-v5-mini-spark){
  font-size:10px!important;line-height:1.3!important;
 }
 #task-view #task-v2-root.task-v5 .task-v5-filter-panel .task-v2-filter-panel__footer{
  flex-direction:row!important;flex-wrap:wrap!important;
 }
 #task-view #task-v2-root.task-v5 .task-v5-filter-panel .task-v2-filter-panel__footer button{
  width:auto!important;flex:1 1 130px!important;min-width:0!important;
 }
 #task-v2-detail-modal .task-v5-detail-scroll>#task-v2-detail-data{grid-template-columns:minmax(0,1fr)!important}
 #task-v2-detail-modal #task-v2-detail-data>div.task-v7-detail-description{grid-column:1!important}
 #task-v2-detail-modal .task-v5-detail-scroll{padding:12px!important}
}
@media(prefers-reduced-motion:reduce){
 #task-view #task-v2-root.task-v5 .task-v6-due-graph .task-v6-series,
 #task-view #task-v2-root.task-v5 .task-v5-plot .task-v8-history-series,
 #task-view #task-v2-root.task-v5 .task-v7-spark-bar,
 #task-view #task-v2-root.task-v5 .task-v6-due-graph .task-v6-dot{
  animation:none!important;stroke-dashoffset:0!important;opacity:1!important;transform:none!important;
 }
 #task-view #task-v2-root.task-v5 .task-v5-kpi,
 #task-view #task-v2-root.task-v5 .task-v5-select-trigger,
 #task-v2-detail-modal .task-v5-detail-dock button{transition:none!important;transform:none!important}
}
