/* Sfera CRM 2.44.9 — Strategie approvate.
 * Uses the Sfera dashboard navy and CTA tokens, never template colors.
 * Scoped to the Strategies studio, preserving Scheduled/Automations data logic.
 */
#signed-in .app-topbar .sfera-strategies-topbar{
  gap:clamp(6px,.65vw,11px)!important;min-width:0!important;
}
#signed-in .app-topbar .sfera-strategies-topbar .sas-topbar-search{
  flex:0 1 clamp(185px,20vw,325px)!important;min-width:185px!important;
  max-width:325px!important;width:auto!important;margin:0!important;
}
#signed-in .app-topbar .sfera-strategies-topbar .sas-topbar-search__field{
  min-width:0!important;overflow:hidden!important;
}
#signed-in .app-topbar .sfera-strategies-topbar .sas-topbar-search__field input{
  display:block!important;min-width:0!important;
  font:500 11.5px/1.2 "Open Sans",sans-serif!important;
  white-space:nowrap!important;text-overflow:ellipsis!important;
}
#signed-in .app-topbar .sfera-strategies-topbar .sas-topbar-filter{
  box-sizing:border-box!important;position:relative!important;display:none!important;
  place-items:center!important;flex:0 0 36px!important;
  width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;
  padding:8px!important;border:1px solid rgba(197,220,255,.3)!important;
  border-radius:10px!important;background:rgba(255,255,255,.075)!important;
  color:#e4efff!important;box-shadow:none!important;cursor:pointer!important;
  transition:background-color .18s,border-color .18s!important;
}
#signed-in.app-shell:has(#strategies-approved-panel:not([hidden])) .app-topbar .sfera-strategies-topbar .sas-topbar-filter{
  display:grid!important;
}
#signed-in .app-topbar .sas-topbar-filter:hover,
#signed-in .app-topbar .sas-topbar-filter[aria-expanded="true"]{
  border-color:rgba(220,234,255,.7)!important;background:rgba(255,255,255,.19)!important;
}
#signed-in .app-topbar .sas-topbar-filter svg{
  width:18px!important;height:18px!important;stroke:currentColor!important;
}
#signed-in .app-topbar .sas-topbar-filter.has-date-filters::after{
  content:"";position:absolute;right:3px;top:3px;
  width:7px;height:7px;border-radius:50%;background:#79d0aa;
}
#signed-in .app-topbar .sas-topbar-filter:focus-visible{outline:2px solid #c9dcff!important;outline-offset:2px!important}
#signed-in .app-topbar .sfera-strategies-topbar__create{
  flex:0 0 36px!important;margin-left:0!important;
}
/* Avoid oversized inherited label text leaking into the actual topbar input. */
#signed-in .sfera-strategies-topbar .sas-topbar-search__field :is(label,.sr-only){display:none!important}
/* Date filters are in the native top-layer popover, not in the archive header. */
#approved-strategy-view #sas-archive #approved-strategy-filters:not(:popover-open):not(.sas-filters-open){
  display:none!important;
}
#signed-in #approved-strategy-view #sas-archive #approved-strategy-filters:popover-open,
#signed-in #approved-strategy-view #sas-archive #approved-strategy-filters.sas-filters-open{
  box-sizing:border-box!important;display:grid!important;
  position:fixed!important;z-index:9999!important;
  top:var(--sas-popover-top,64px)!important;left:var(--sas-popover-left,12px)!important;
  right:auto!important;bottom:auto!important;
  width:min(430px,calc(100vw - 24px))!important;max-width:none!important;min-width:0!important;
  max-height:calc(100dvh - var(--sas-popover-top,64px) - 12px)!important;
  overflow-y:auto!important;overscroll-behavior:contain!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:13px!important;
  align-items:end!important;justify-content:stretch!important;
  margin:0!important;padding:18px!important;
  border:1px solid #dce6f3!important;border-radius:16px!important;
  background:#fff!important;box-shadow:0 22px 52px rgba(13,32,77,.20)!important;
  color:#0e2166!important;animation:none!important;transform:none!important;
}
#signed-in #approved-strategy-view #sas-archive #approved-strategy-filters .sas-filter-head{
  grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:12px!important;margin:0!important;padding:0 0 12px!important;border-bottom:1px solid #e8edf6!important;
}
#approved-strategy-view #sas-archive #approved-strategy-filters .sas-filter-head h3{
  margin:0!important;color:#0e2166!important;font:700 16px/1.25 Poppins,"Open Sans",sans-serif!important;
}
#approved-strategy-view #sas-archive #approved-strategy-filters #sas-filter-close{
  display:grid!important;place-items:center!important;
  width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;
  padding:0!important;border:0!important;border-radius:9px!important;
  background:#f1f5fb!important;color:#49658c!important;
  font:400 24px/1 "Open Sans",sans-serif!important;
}
#approved-strategy-view #sas-archive #approved-strategy-filters #sas-filter-close:hover{
  background:#e9f2fd!important;color:#0e2166!important;
}
#signed-in #approved-strategy-view #sas-archive #approved-strategy-filters .sas-date-label{
  display:grid!important;grid-column:auto!important;gap:6px!important;
  width:100%!important;min-width:0!important;color:#617794!important;
  font:700 11px/1.35 "Open Sans",sans-serif!important;
}
#signed-in #approved-strategy-view #sas-archive #approved-strategy-filters .sas-date-wrap{
  height:42px!important;min-height:42px!important;width:100%!important;
  background:#f9fbfe!important;border-color:#dbe5f2!important;
}
#signed-in #approved-strategy-view #sas-archive #approved-strategy-filters .sas-date-wrap input{
  height:40px!important;min-height:40px!important;
}
#signed-in #approved-strategy-view #sas-archive #approved-strategy-filters .sas-filter-action{
  width:100%!important;min-width:0!important;min-height:40px!important;height:40px!important;
}
#approved-strategy-view #sas-archive #approved-strategy-filters .sas-filter-error{
  grid-column:1/-1!important;margin:0!important;padding:9px 11px!important;
  border:1px solid #e9bdc5!important;border-radius:9px!important;
  background:#fff4f5!important;color:#a64155!important;font-size:11px!important;
}
#approved-strategy-view #sas-archive #approved-strategy-filters .sas-filter-error[hidden]{display:none!important}
#approved-strategy-view .strategies-shell{padding-top:1px!important}
#approved-strategy-view .strategies-header{
  margin:4px 0 21px!important;padding:0 2px!important;min-height:45px!important;
}
#approved-strategy-view .strategies-header h1{
  font:650 clamp(25px,2.35vw,35px)/1.25 Poppins,"Open Sans",sans-serif!important;
  letter-spacing:-.045em!important;color:#0e2166!important;
}
/* Three unlike widgets: analytical KPI, six-month distribution, quick-access timeline. */
#approved-strategy-view .sas-overview{
  display:grid!important;grid-template-columns:minmax(240px,.92fr) minmax(315px,1.3fr) minmax(265px,.95fr)!important;
  gap:16px!important;align-items:stretch!important;margin:0 0 19px!important;
}
#approved-strategy-view .sas-overview>.sas-surface{
  box-sizing:border-box!important;min-width:0!important;min-height:274px!important;
  margin:0!important;border:1px solid #e2e9f3!important;border-radius:17px!important;
  background:#fff!important;box-shadow:0 7px 24px rgba(14,33,102,.045)!important;
  transition:transform .22s cubic-bezier(.2,.8,.2,1),box-shadow .22s,border-color .22s!important;
}
#approved-strategy-view .sas-overview>.sas-surface:hover{
  transform:translateY(-2px);border-color:#d1def0!important;
  box-shadow:0 12px 30px rgba(14,33,102,.07)!important;
}
#approved-strategy-view .sas-kpi{
  display:flex!important;flex-direction:column!important;gap:0!important;
  padding:21px 24px 18px!important;
}
#approved-strategy-view .sas-kpi__heading{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  margin:0 0 14px!important;
}
#approved-strategy-view .sas-kpi__eyebrow{
  color:#7291bc;font:700 10px/1.4 "Open Sans",sans-serif;letter-spacing:.095em;
}
#approved-strategy-view .sas-kpi__glyph{
  display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;
  border-radius:10px;background:#ecf3ff;color:#3157d7;
}
#approved-strategy-view .sas-kpi__glyph svg{width:20px;height:20px;stroke-width:1.8}
#approved-strategy-view .sas-kpi h2{
  margin:0 0 12px!important;color:#0e2166!important;
  font:700 18px/1.35 Poppins,"Open Sans",sans-serif!important;letter-spacing:-.03em;
}
#approved-strategy-view .sas-kpi__value{
  display:flex;align-items:baseline;gap:11px;flex-wrap:wrap;
  margin:0 0 auto!important;
}
#approved-strategy-view .sas-kpi__value strong{
  display:block;color:#0e2166;font:750 clamp(42px,4vw,56px)/1 Poppins,"Open Sans",sans-serif!important;
  letter-spacing:-.06em;font-variant-numeric:tabular-nums;
}
#approved-strategy-view .sas-kpi__value>span{
  color:#7587a0;font:500 11px/1.45 "Open Sans",sans-serif;max-width:125px;
}
#approved-strategy-view .sas-kpi__facts{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
  margin:17px 0 0;padding:13px 0 11px;border-top:1px solid #eaf0f7;
}
#approved-strategy-view .sas-kpi__facts>div{
  display:flex;flex-direction:column;gap:5px;min-width:0;
}
#approved-strategy-view .sas-kpi__facts>div+div{
  padding-left:14px;border-left:1px solid #eaf0f7;
}
#approved-strategy-view .sas-kpi__facts strong{
  color:#0e2166;font:700 clamp(14px,1.3vw,18px)/1.3 Poppins,"Open Sans",sans-serif;
  font-variant-numeric:tabular-nums;white-space:nowrap;
}
#approved-strategy-view .sas-kpi__facts span{
  color:#8494a8;font:500 10px/1.4 "Open Sans",sans-serif;
}
#approved-strategy-view .sas-kpi__hint{
  margin:0!important;padding:7px 0 0!important;color:#8696a9!important;
  font:500 10px/1.35 "Open Sans",sans-serif!important;
}
#approved-strategy-view .sas-kpi__hint i{width:6px;height:6px;margin-right:7px;background:#3157d7}
#approved-strategy-view .sas-analytics{
  display:flex!important;flex-direction:column!important;
  padding:22px 23px 14px!important;
}
#approved-strategy-view .sas-analytics .sas-panel-head h2,
#approved-strategy-view .sas-recent .sas-panel-head h2{
  color:#0e2166!important;font:700 17px/1.35 Poppins,"Open Sans",sans-serif!important;
}
#approved-strategy-view .sas-analytics .sas-panel-head p,
#approved-strategy-view .sas-recent .sas-panel-head p{
  margin:3px 0 0!important;color:#8b9aaf!important;
  font:400 10px/1.45 "Open Sans",sans-serif!important;
}
#approved-strategy-view .sas-analytics .sas-chart-symbol{
  background:#0e2166!important;color:#fff!important;
}
#approved-strategy-view .sas-analytics .sas-monthly-chart{
  display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
  align-items:end!important;flex:1 1 auto!important;gap:clamp(5px,.7vw,12px)!important;
  min-height:145px!important;margin:11px 0 0!important;padding:0 0 1px!important;
}
#approved-strategy-view .sas-monthly-track{height:115px!important;background:repeating-linear-gradient(to top,transparent 0,transparent 37px,#f1f4f9 38px)!important}
#approved-strategy-view .sas-monthly-bar{
  border-radius:7px 7px 2px 2px!important;background:#d9e4f6!important;
  animation:none!important;transform:scaleY(1)!important;transform-origin:bottom!important;
  transition:transform .7s cubic-bezier(.15,.8,.18,1),background-color .2s,filter .2s!important;
}
#approved-strategy-view .sas-monthly-bar.has-value{background:#3157d7!important}
#approved-strategy-view .sas-monthly-chart.sas-chart-pending .sas-monthly-bar{transform:scaleY(0)!important}
#approved-strategy-view .sas-monthly-chart:not(.sas-chart-pending) .sas-monthly-bar{transform:scaleY(1)!important}
#approved-strategy-view .sas-monthly-col:nth-child(2) .sas-monthly-bar{transition-delay:50ms!important}
#approved-strategy-view .sas-monthly-col:nth-child(3) .sas-monthly-bar{transition-delay:90ms!important}
#approved-strategy-view .sas-monthly-col:nth-child(4) .sas-monthly-bar{transition-delay:130ms!important}
#approved-strategy-view .sas-monthly-col:nth-child(5) .sas-monthly-bar{transition-delay:170ms!important}
#approved-strategy-view .sas-monthly-col:nth-child(6) .sas-monthly-bar{transition-delay:210ms!important}
#approved-strategy-view .sas-analytics__footnote{
  margin:8px 0 0!important;padding-top:9px!important;border-top:1px solid #edf2f8!important;
  color:#7c8faa!important;font:600 10px/1.3 "Open Sans",sans-serif!important;
}
#approved-strategy-view .sas-recent{
  padding:22px 20px 15px!important;
}
#approved-strategy-view .sas-recent-list{
  position:relative;display:grid!important;grid-template-columns:1fr!important;
  gap:0!important;margin-top:12px!important;align-content:stretch!important;
}
#approved-strategy-view .sas-recent-list::before{
  content:"";position:absolute;top:24px;bottom:24px;left:18px;
  width:1px;background:#e7edf6;pointer-events:none;
}
#approved-strategy-view button.sas-recent-item{
  position:relative;min-height:62px!important;padding:9px 1px!important;gap:10px!important;
  background:transparent!important;border:0!important;border-radius:9px!important;
  transition:background .18s ease!important;
}
#approved-strategy-view button.sas-recent-item:hover{
  background:#f6f9ff!important;transform:none!important;
}
#approved-strategy-view .sas-recent-icon{z-index:1;background:#edf4ff!important;color:#3157d7!important}
#approved-strategy-view .sas-recent-copy strong{
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#16315f!important;
  font:700 11.5px/1.35 "Open Sans",sans-serif!important;
}
#approved-strategy-view .sas-recent-copy small{color:#8494ad!important;font-size:10px!important}
#approved-strategy-view .sas-recent-item:not(:last-child):after{display:none!important}
/* Do not repeat a second title above the list; keep count and view switch. */
#approved-strategy-view #sas-archive{
  border-radius:17px!important;background:#fff!important;overflow:hidden!important;
  border-color:#e1e9f3!important;box-shadow:0 7px 24px rgba(14,33,102,.045)!important;
}
#approved-strategy-view #sas-archive .sas-archive-head{
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  min-height:67px!important;gap:14px!important;
  padding:16px 20px!important;border-bottom:1px solid #e9eef5!important;
}
#approved-strategy-view #sas-archive .sas-archive-heading h2.sr-only{
  position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;overflow:hidden!important;
  clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;
}
#approved-strategy-view #sas-archive .sas-count-badge{
  min-height:29px!important;padding:5px 11px!important;border:0!important;
  border-radius:9px!important;background:#eff4fd!important;color:#3157d7!important;
  box-shadow:none!important;font:700 11px/1.4 "Open Sans",sans-serif!important;
}
#approved-strategy-view #sas-archive .sas-archive-controls{
  flex:0 0 auto!important;width:auto!important;min-width:0!important;
  display:flex!important;align-items:center!important;justify-content:flex-end!important;
}
#approved-strategy-view #sas-archive .sas-toggle{
  display:inline-flex!important;margin:0!important;
  border-radius:10px!important;padding:3px!important;
}
#approved-strategy-view #sas-archive .sas-table-region{
  padding:15px 20px 2px!important;min-width:0!important;
}
#approved-strategy-view #sas-archive .approved-strategy-table-wrap{
  border:1px solid #e5ebf4!important;border-radius:11px!important;
  background:#fff!important;overflow-x:auto!important;overflow-y:hidden!important;
}
#approved-strategy-view #sas-archive .approved-strategy-table th{
  background:#f5f8fc!important;color:#667e9e!important;font-size:10px!important;
  letter-spacing:.035em!important;
}
#approved-strategy-view #sas-archive .approved-strategy-table tbody tr:hover td{
  background:#f4f8ff!important;
}
#approved-strategy-view #sas-archive .sas-empty{
  background:#fff!important;border-radius:12px!important;
}
#approved-strategy-view.sas-loading .sas-overview{opacity:.73;transition:opacity .2s ease!important}
/* At narrower desktop widths, icon search avoids squashing the anchored tabs. */
@media(max-width:1300px){
 #signed-in.app-shell:has(#approved-strategy-view:not([hidden])) .app-topbar .sfera-strategies-topbar .sas-topbar-search{
  flex:0 0 36px!important;min-width:36px!important;max-width:36px!important;width:36px!important;
  height:36px!important;margin-left:auto!important;
 }
 #signed-in .sfera-strategies-topbar .sas-topbar-search__toggle{
  display:grid!important;place-items:center!important;box-sizing:border-box!important;
  flex:0 0 36px!important;width:36px!important;height:36px!important;min-height:36px!important;
  border:1px solid rgba(192,216,255,.25)!important;border-radius:10px!important;
  background:rgba(255,255,255,.075)!important;color:#f6faff!important;
 }
 #signed-in .sfera-strategies-topbar .sas-topbar-search__field{display:none!important}
 #signed-in .sfera-strategies-topbar .sas-topbar-search.is-search-open .sas-topbar-search__field{
  position:fixed!important;display:flex!important;
  top:calc(var(--sfera-topbar-height,56px) + 7px)!important;
  left:12px!important;right:12px!important;z-index:520!important;
  width:auto!important;max-width:none!important;min-width:0!important;
  height:48px!important;padding:4px!important;background:#0e2166!important;
  border:1px solid rgba(207,225,255,.68)!important;border-radius:12px!important;
  box-shadow:0 9px 25px rgba(12,32,75,.2)!important;
 }
 }
@media(max-width:1160px){
 #approved-strategy-view .sas-overview{
  grid-template-columns:minmax(235px,.8fr) minmax(300px,1.2fr)!important;
 }
 #approved-strategy-view .sas-overview>.sas-recent{
  grid-column:1/-1!important;min-height:0!important;
 }
 #approved-strategy-view .sas-recent-list{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;
 }
 #approved-strategy-view .sas-recent-list::before{display:none!important}
 #approved-strategy-view button.sas-recent-item{
  min-width:0!important;padding:10px!important;
  border:1px solid #e8edf5!important;border-radius:10px!important;
  background:#fafcff!important;
 }
}
@media(max-width:900px){
 #signed-in.app-shell:has(#approved-strategy-view:not([hidden])) .app-topbar .sfera-strategies-topbar{
  margin-left:0!important;justify-content:flex-start!important;
 }
  #approved-strategy-view .sas-overview{grid-template-columns:1fr!important;gap:12px!important}
 #approved-strategy-view .sas-overview>.sas-surface{min-height:0!important}
 #approved-strategy-view .sas-kpi{min-height:220px!important}
 #approved-strategy-view .sas-analytics{min-height:235px!important}
}
@media(max-width:760px){
 /* Secondary tab row stays inside the sticky blue header, not in content. */
 #signed-in.app-shell:has(#approved-strategy-view:not([hidden])) .app-topbar{
  overflow:visible!important;
 }
  #signed-in .app-topbar .sfera-strategies-topbar .sas-topbar-search{margin-left:auto!important}
 #approved-strategy-view{padding-top:48px!important}
 #approved-strategy-view .strategies-header{margin:0 0 15px!important}
 #approved-strategy-view .strategies-header h1{font-size:26px!important}
 #approved-strategy-view .sas-overview{grid-template-columns:1fr!important}
 #approved-strategy-view .sas-overview>.sas-recent{min-height:0!important}
 #approved-strategy-view .sas-recent-list{grid-template-columns:1fr!important;gap:0!important}
 #approved-strategy-view button.sas-recent-item{border:0!important;background:transparent!important}
 #approved-strategy-view #sas-archive .sas-archive-head{padding:12px 14px!important;min-height:58px!important}
 #approved-strategy-view #sas-archive .sas-table-region{padding:10px 12px!important}
 #approved-strategy-view #sas-archive .sas-toggle{display:inline-flex!important}
 #approved-strategy-view #sas-archive:not(.is-cards) .approved-strategy-table tbody tr{
  border:0!important;border-bottom:1px solid #eaf0f7!important;border-radius:0!important;
  min-height:77px!important;background:#fff!important;box-shadow:none!important;
 }
 #approved-strategy-view #sas-archive:not(.is-cards) .approved-strategy-table tbody tr:last-child{border-bottom:0!important}
 #approved-strategy-view #sas-archive.is-cards .approved-strategy-table tbody tr{
  border:1px solid #e5eaf3!important;border-radius:12px!important;
 }
}
@media(max-width:480px){
 #approved-strategy-view .sas-kpi{padding:18px!important}
 #approved-strategy-view .sas-kpi__value strong{font-size:44px!important}
 #approved-strategy-view .sas-kpi__facts{gap:6px!important}
 #approved-strategy-view .sas-analytics{padding:18px!important}
 #approved-strategy-view .sas-monthly-track{height:93px!important}
 #approved-strategy-view #sas-archive .sas-archive-head{gap:8px!important}
 #approved-strategy-view #sas-archive .sas-count-badge{font-size:10px!important}
 #signed-in #approved-strategy-view #sas-archive #approved-strategy-filters:popover-open,
 #signed-in #approved-strategy-view #sas-archive #approved-strategy-filters.sas-filters-open{
  grid-template-columns:1fr!important;padding:15px!important;
 }
}
@media(prefers-reduced-motion:reduce){
 #approved-strategy-view .sas-overview>.sas-surface,
 #approved-strategy-view .sas-monthly-bar,
 #approved-strategy-view .sas-recent-item{
  transition:none!important;animation:none!important;transform:none!important;
 }
 #approved-strategy-view .sas-monthly-bar{transform:scaleY(1)!important}
}
