/* Task polish 1.145.1 — targeted fixes only. Approved Sfera token palette. */
/* 1. Overview: KPI labels + animated mini histogram occupy separate grid regions. */
#task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v2-kpis>button.task-v5-kpi{
 position:relative!important;
 display:grid!important;
 grid-template-columns:34px minmax(0,1fr) 87px!important;
 grid-template-rows:32px minmax(36px,1fr)!important;
 padding:14px 15px!important;
 gap:5px 8px!important;align-items:center!important;
 overflow:hidden!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v5-kpi-icon{
 grid-area:1/1!important;position:static!important;
 display:grid!important;place-items:center!important;
 margin:0!important;padding:0!important;width:31px!important;height:31px!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v5-kpi>span:not(.task-v3-kpi__icon):not(.task-studio-motif):not(.task-v5-mini-spark){
 grid-area:1/2/2/4!important;
 align-self:center!important;margin:0!important;
 font:700 11px/1.35 Poppins,"Open Sans",sans-serif!important;
 color:#284a80!important;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v5-kpi>strong{
 grid-area:2/1/3/3!important;align-self:center!important;
 margin:0!important;padding:0!important;
 font:750 30px/1.15 Poppins,"Open Sans",sans-serif!important;
 color:#0e2166!important;font-variant-numeric:tabular-nums;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v5-kpi>small{
 display:none!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v5-kpi .task-v5-mini-spark{
 grid-area:2/3/3/4!important;align-self:end!important;justify-self:end!important;
 display:block!important;width:86px!important;height:29px!important;
 margin:0 0 2px!important;opacity:1!important;z-index:1!important;
 overflow:visible!important;
}
#task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v5-kpi .task-v5-mini-spark svg{
 display:block!important;width:100%!important;height:100%!important;
}
#task-view #task-v2-root.task-v5 .task-v7-spark-bar{
 transform-origin:bottom;animation:task-v7-grow .4s cubic-bezier(.16,.84,.33,1) both;
}
@keyframes task-v7-grow{from{transform:scaleY(.08);opacity:.15}to{transform:scaleY(1);opacity:1}}
/* 2. Chart lines draw, followed by markers. Animations repeat only on data/view re-entry. */
#task-view #task-v2-root.task-v5 .task-v6-due-graph .task-v6-series{
 stroke-dasharray:1800!important;stroke-dashoffset:1800;
 animation:task-v7-draw .78s cubic-bezier(.23,.78,.2,1) both!important;
}
@keyframes task-v7-draw{from{stroke-dashoffset:1800;opacity:.45}to{stroke-dashoffset:0;opacity:1}}
#task-view #task-v2-root.task-v5 .task-v6-due-graph .task-v6-dot{
 transform-box:fill-box;transform-origin:center;
 animation:task-v7-marker .35s .43s ease-out both!important;
}
@keyframes task-v7-marker{from{opacity:0;transform:scale(.2)}to{opacity:1;transform:scale(1)}}
/* 3. Table workspace tabs centered within their white surface; toolbars differentiated. */
#task-view #task-v2-root.task-v5 .task-v6-management .task-v5-tabs{
 justify-content:center!important;padding:0 12px!important;
}
#task-view #task-v2-root.task-v5 .task-v6-management .task-v5-tabs>button{
 font:650 12px Poppins,"Open Sans",sans-serif!important;
}
#task-view #task-v2-root.task-v5 .task-v6-management .task-v6-segments #task-v2-scope,
#task-view #task-v2-root.task-v5 .task-v6-management .task-v6-segments .task-v4-scope{
 background:#f0f5fc!important;border:1px solid #dce8f8!important;
 border-radius:10px!important;
}
#task-view #task-v2-root.task-v5 .task-v6-management .task-v6-segments #task-studio-quick{
 background:transparent!important;border:0!important;
 padding:0 0 0 13px!important;border-left:1px solid #e3ebf7!important;
 border-radius:0!important;gap:4px!important;
}
#task-view #task-v2-root.task-v5 .task-v6-segments #task-studio-quick button{
 border-radius:8px!important;min-height:32px!important;height:32px!important;
 padding:7px 13px!important;transition:background-color .16s,color .16s!important;
}
#task-view #task-v2-root.task-v5 .task-v6-segments #task-studio-quick button[data-active="true"]{
 background:#eaf3ff!important;color:#286bd2!important;box-shadow:none!important;
}
#task-view #task-v2-root.task-v5 .task-v6-management .task-v6-actions>*{
 display:grid!important;place-items:center!important;
 width:38px!important;height:38px!important;min-width:38px!important;
 border:1px solid #dce7f7!important;border-radius:10px!important;
 background:#f9fbff!important;color:#316ab8!important;
 box-shadow:none!important;padding:0!important;
}
#task-view #task-v2-root.task-v5 .task-v6-management .task-v6-actions>*:hover{
 background:#eaf3ff!important;border-color:#bdd3f2!important;
}
#task-view #task-v2-root.task-v5 .task-v6-management .task-v6-actions .task-v5-icon{
 background:transparent!important;color:inherit!important;
}
#task-view #task-v2-root.task-v5 .task-v6-management .task-v6-actions .task-v6-refresh:hover svg{
 transform:rotate(55deg)!important;
}
#task-view #task-v2-root.task-v5 .task-v6-management .task-v6-actions .task-v6-refresh:active svg{
 transform:rotate(155deg)!important;
}
/* Remove the pointless blank strip above the table header, but preserve filter controls. */
#task-view #task-v2-root.task-v5 .task-v6-management #task-v2-results{
 margin:0!important;padding:0!important;
}
#task-view #task-v2-root.task-v5 .task-v6-management #task-v2-results>.task-v2-table-wrap{
 margin:0!important;padding:0!important;
}
#task-view #task-v2-root.task-v5 .task-v6-management #task-v2-results :is(.task-v3-table, .task-v6-table){
 margin-top:0!important;
}
#task-view #task-v2-root.task-v5 .task-v6-management .task-v2-table-wrap:before,
#task-view #task-v2-root.task-v5 .task-v6-management #task-v2-results:before{
 display:none!important;content:none!important;
}
/* 4. Analytics — no redundant heading, animated proportions inside a crisp donut. */
#task-view #task-v2-root.task-v5 #task-v5-statistics>.task-v5-stat-heading{display:none!important}
#task-view #task-v2-root.task-v5 #task-v5-statistics{padding-top:0!important;margin-top:14px!important}
#task-view #task-v2-root.task-v5 .task-v5-priority-ring{
 box-shadow:0 0 0 1px #e6edf8!important;
}
#task-view #task-v2-root.task-v5 .task-v5-priority-ring strong{
 font-variant-numeric:tabular-nums;
}
/* 5. Kanban: hide redundant checkbox only. Preserve the real checkmark action button. */
#task-view #task-v2-root.task-v5 .task-kanban-card input[type="checkbox"],
#task-view #task-v2-root.task-v5 .task-kanban-card .task-v2-row-selector,
#task-view #task-v2-root.task-v5 .task-kanban-card .task-v2-selection-box{
 display:none!important;
}
/* 6. Detail: edge-to-edge, more structured like Opportunities; actual CRM data. */
#task-v2-detail-modal.task-v2-modal:not([hidden]){
 display:flex!important;align-items:stretch!important;justify-content:flex-end!important;
 position:fixed!important;inset:0!important;height:100dvh!important;max-height:100dvh!important;
 margin:0!important;padding:0!important;overflow:hidden!important;z-index:12050!important;
}
#task-v2-detail-modal.task-v2-modal:not([hidden])>.task-v2-modal__backdrop{
 inset:0!important;border-radius:0!important;
 background:rgba(10,29,68,.38)!important;
}
#task-v2-detail-modal.task-v2-modal:not([hidden]) .task-v2-detail.task-v5-detail,
#task-v2-detail-modal.task-v3-detail-modal.task-v2-modal:not([hidden]) .task-v2-detail.task-v3-detail.task-v5-detail{
 position:relative!important;inset:auto!important;
 width:min(610px,100vw)!important;max-width:100vw!important;
 height:100dvh!important;max-height:100dvh!important;min-height:0!important;
 margin:0!important;padding:0!important;overflow:hidden!important;
 border:0!important;border-radius:0!important;
 background:#f6f9fe!important;box-shadow:-16px 0 52px rgba(14,33,102,.13)!important;
 display:flex!important;flex-direction:column!important;
}
#task-v2-detail-modal .task-v5-detail>header{
 flex:0 0 auto!important;min-height:79px!important;
 padding:17px 23px!important;border-bottom:1px solid #e3ebf6!important;
 border-radius:0!important;background:#fff!important;align-items:center!important;
}
#task-v2-detail-modal .task-v5-detail>header h2{
 font:700 20px/1.32 Poppins,"Open Sans",sans-serif!important;color:#0e2166!important;
}
#task-v2-detail-modal .task-v5-detail-scroll{
 display:flex!important;flex:1 1 0!important;flex-direction:column!important;
 gap:12px!important;min-height:0!important;
 padding:16px 19px 22px!important;overflow-y:auto!important;overflow-x:hidden!important;
 background:#f6f9fe!important;overscroll-behavior:contain;
}
#task-v2-detail-modal .task-v5-detail-hero{
 display:grid!important;gap:13px!important;
 border:1px solid #e0eafa!important;border-radius:15px!important;
 padding:17px!important;background:#fff!important;
 box-shadow:0 5px 16px rgba(15,50,103,.045)!important;
}
#task-v2-detail-modal .task-v5-detail-customer{
 display:flex!important;align-items:center!important;gap:10px!important;
 border-bottom:1px solid #edf2fa!important;padding-bottom:13px!important;
}
#task-v2-detail-modal .task-v5-detail-customer strong{
 font:700 14px Poppins,sans-serif!important;color:#14366d!important;
}
#task-v2-detail-modal .task-v5-detail-facts{
 display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
 gap:9px!important;
}
#task-v2-detail-modal .task-v5-detail-fact{
 min-height:66px!important;padding:12px!important;
 border:1px solid #dfeaf8!important;border-radius:12px!important;
 background:#f9fbff!important;box-shadow:none!important;
}
#task-v2-detail-modal .task-v5-detail-fact:first-child{background:#eef5ff!important}
#task-v2-detail-modal .task-v5-detail-fact:nth-child(3){grid-column:span 2}
#task-v2-detail-modal .task-v5-detail-fact strong{
 font:700 11px/1.4 Poppins,sans-serif!important;color:#214b85!important;
}
#task-v2-detail-modal .task-v5-detail-fact small{font-size:10px!important;color:#879bb5!important}
#task-v2-detail-modal .task-v5-detail-progress{padding-top:2px}
#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:9px!important;min-width:0!important;
 margin:0!important;padding:0!important;border:0!important;background:transparent!important;
}
#task-v2-detail-modal #task-v2-detail-data>.task-v7-detail-heading{
 grid-column:1/-1!important;
 background:transparent!important;border:0!important;box-shadow:none!important;
 padding:4px 2px!important;color:#173b72!important;
 font:700 12px Poppins,sans-serif!important;
}
#task-v2-detail-modal #task-v2-detail-data>div:not(.task-v7-detail-heading){
 min-width:0!important;padding:13px!important;
 background:#fff!important;border:1px solid #e1eaf7!important;
 border-radius:12px!important;box-shadow:0 3px 12px rgba(22,57,110,.035)!important;
}
#task-v2-detail-modal #task-v2-detail-data>div.task-v7-detail-duplicate{display:none!important}
#task-v2-detail-modal #task-v2-detail-data>div.task-v7-detail-description{grid-column:1/-1!important;min-height:85px}
#task-v2-detail-modal #task-v2-detail-data dt{
 display:block!important;margin-bottom:6px!important;
 font:600 10px "Open Sans",sans-serif!important;color:#8b9cb6!important;
}
#task-v2-detail-modal #task-v2-detail-data dd{
 font:650 12px/1.55 "Open Sans",sans-serif!important;color:#224775!important;
 overflow-wrap:anywhere!important;margin:0!important;
}
#task-v2-detail-modal .task-v5-detail-scroll>section{
 border:1px solid #e1eaf8!important;background:#fff!important;
 border-radius:13px!important;padding:16px!important;
 box-shadow:0 3px 12px rgba(21,53,107,.036)!important;
}
#task-v2-detail-modal #task-v2-detail-actions.task-v5-detail-dock{
 position:relative!important;bottom:auto!important;
 display:flex!important;justify-content:space-around!important;align-items:center!important;
 flex:0 0 auto!important;min-height:73px!important;gap:8px!important;
 padding:10px 15px calc(10px + env(safe-area-inset-bottom,0px))!important;
 width:100%!important;box-sizing:border-box!important;
 border-top:1px solid #e1eaf8!important;border-radius:0!important;
 background:#fff!important;z-index:4!important;
}
#task-v2-detail-modal #task-v2-detail-actions.task-v5-detail-dock button:not([hidden]){
 flex:1 1 0!important;min-width:0!important;min-height:46px!important;
 display:flex!important;align-items:center!important;justify-content:center!important;
 gap:8px!important;padding:9px!important;border:1px solid #dce7f7!important;
 border-radius:10px!important;background:#f4f8ff!important;color:#286abf!important;
 font:650 11px Poppins,sans-serif!important;white-space:nowrap!important;
}
#task-v2-detail-modal #task-v2-detail-actions.task-v5-detail-dock button.task-v2-icon-button--success{
 background:#e8f7ef!important;color:#19865f!important;border-color:#cdecdc!important;
}
/* 7. Editor: footer is a full-width row in the SAME form, below the scroll body. */
#task-v2-editor.task-v2-modal:not([hidden]){
 display:grid!important;place-items:center!important;
 padding:18px!important;inset:0!important;overflow:hidden!important;
}
#task-v2-editor.task-v2-modal:not([hidden]) #task-v2-form.task-v2-dialog{
 position:relative!important;inset:auto!important;
 box-sizing:border-box!important;
 display:grid!important;grid-template-rows:auto minmax(0,1fr) auto auto!important;
 justify-items:stretch!important;align-items:stretch!important;
 width:min(1040px,calc(100vw - 36px))!important;
 max-width:min(1040px,calc(100vw - 36px))!important;
 height:min(850px,calc(100dvh - 36px))!important;max-height:calc(100dvh - 36px)!important;
 margin:0!important;border-radius:17px!important;
 overflow:hidden!important;background:#fff!important;
}
#task-v2-editor.task-v2-modal:not([hidden]) #task-v2-form>.task-v2-dialog__header{
 grid-row:1!important;width:100%!important;box-sizing:border-box!important;
}
#task-v2-editor.task-v2-modal:not([hidden]) #task-v2-form>.task-v2-dialog__body{
 grid-row:2!important;min-width:0!important;min-height:0!important;
 width:100%!important;overflow-y:auto!important;overflow-x:hidden!important;
 box-sizing:border-box!important;
}
#task-v2-editor.task-v2-modal:not([hidden]) #task-v2-form>#task-v2-form-state{
 grid-row:3!important;margin:0!important;padding:0 22px!important;
 width:100%!important;box-sizing:border-box!important;
}
#task-v2-editor.task-v2-modal:not([hidden]) #task-v2-form>.task-v2-dialog__footer{
 grid-row:4!important;display:flex!important;flex-direction:row!important;
 justify-content:flex-end!important;align-items:center!important;
 position:relative!important;inset:auto!important;transform:none!important;
 left:auto!important;right:auto!important;bottom:auto!important;
 box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;
 margin:0!important;padding:12px 23px calc(12px + env(safe-area-inset-bottom,0px))!important;
 border-top:1px solid #e0e9f6!important;border-radius:0!important;background:#fff!important;
 z-index:2!important;
}
#task-v2-editor.task-v2-modal:not([hidden]) #task-v2-form>.task-v2-dialog__footer button{
 width:auto!important;min-width:116px!important;max-width:none!important;
 min-height:41px!important;flex:0 0 auto!important;
}
@media(max-width:760px){
 #task-view #task-v2-root.task-v5 .task-v6-management .task-v5-tabs{justify-content:center!important}
 #task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v2-kpis>button.task-v5-kpi{
  grid-template-columns:29px minmax(0,1fr) 52px!important;padding:11px!important;
 }
 #task-view #task-v2-root.task-v5 .task-v5-kpi-shell .task-v5-kpi .task-v5-mini-spark{
  width:52px!important;height:24px!important;
 }
 #task-v2-detail-modal .task-v5-detail-scroll{padding:12px!important}
 #task-v2-detail-modal .task-v5-detail-facts{grid-template-columns:1fr!important}
 #task-v2-detail-modal .task-v5-detail-fact:nth-child(3){grid-column:auto}
 #task-v2-detail-modal .task-v5-detail-scroll>#task-v2-detail-data{grid-template-columns:1fr!important}
 #task-v2-editor.task-v2-modal:not([hidden]){padding:7px!important}
 #task-v2-editor.task-v2-modal:not([hidden]) #task-v2-form.task-v2-dialog{
  width:calc(100vw - 14px)!important;max-width:calc(100vw - 14px)!important;
  height:calc(100dvh - 14px)!important;max-height:calc(100dvh - 14px)!important;
 }
 #task-v2-editor.task-v2-modal:not([hidden]) #task-v2-form>.task-v2-dialog__footer{
  padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px))!important;
 }
 #task-v2-detail-modal #task-v2-detail-actions.task-v5-detail-dock button:not([hidden]){
  flex-direction:column!important;gap:3px!important;min-height:54px!important;
  font-size:9px!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-v6-due-graph .task-v6-dot,
 #task-view #task-v2-root.task-v5 .task-v7-spark-bar{animation:none!important}
}
/* The backdrop is an overlay, not a grid item beside the form. */
#task-v2-editor.task-v2-modal:not([hidden])>.task-v2-modal__backdrop{
 position:absolute!important;inset:0!important;z-index:0!important;
 width:100%!important;height:100%!important;
}
#task-v2-editor.task-v2-modal:not([hidden]) #task-v2-form.task-v2-dialog{
 z-index:1!important;align-self:center!important;justify-self:center!important;
}
#task-v2-editor.task-v2-modal:not([hidden]) #task-v2-form>.task-v2-dialog__footer{
 align-self:stretch!important;
}
