/* Sfera CRM 2.45.2 — refinement scoped to Strategie. Official CRM palette. */
#signed-in .sfera-strategies-topbar:has(#strategies-tab-approved[aria-selected="true"]) #ss-filter-toggle,
#signed-in .sfera-strategies-topbar:has(#strategies-tab-scheduled[aria-selected="true"]) #sas-filter-toggle,
#signed-in .sfera-strategies-topbar :is(#sas-filter-toggle,#ss-filter-toggle)[hidden] {
  display:none!important;visibility:hidden!important;pointer-events:none!important;
}

/* Less dead space: align Approved KPI copy with the other editorial widgets. */
#approved-strategy-view .sas-kpi {
  position:relative!important;padding-top:19px!important;padding-bottom:15px!important;
}
#approved-strategy-view .sas-kpi__heading {
  position:absolute!important;top:18px!important;right:20px!important;
  min-height:0!important;margin:0!important;
}
#approved-strategy-view .sas-kpi h2 {
  padding-right:48px!important;margin:4px 0 10px!important;min-height:36px!important;
  display:flex!important;align-items:center!important;
}
#approved-strategy-view .sas-kpi__value {margin-bottom:auto!important}
#approved-strategy-view .sas-kpi__facts {margin-top:13px!important;padding-top:12px!important;padding-bottom:10px!important}
#approved-strategy-view #approved-strategy-state:empty {display:none!important}
#approved-strategy-view #sas-archive .sas-archive-head {
  min-height:48px!important;padding:10px 18px 3px!important;
}
#approved-strategy-view #sas-archive .sas-table-region {
  padding:6px 18px 10px!important;
}
#approved-strategy-view #sas-archive .approved-strategy-table-wrap {margin-top:0!important}

/* Distinct, compact summary patterns for scheduled definitions. */
#approved-strategy-view .ss-overview {gap:16px!important;margin-bottom:16px!important}
#approved-strategy-view .ss-metric {
  min-height:184px!important;padding:19px 22px!important;
  box-shadow:0 5px 20px rgba(14,33,102,.035)!important;
}
#approved-strategy-view .ss-metric__top {align-items:flex-start!important}
#approved-strategy-view .ss-metric__top h2 {
  margin:2px 0 0!important;font-size:18px!important;line-height:1.3!important;
}
#approved-strategy-view .ss-metric--total .ss-metric__body {
  grid-template-columns:minmax(145px,.78fr) minmax(0,1.22fr)!important;
  align-items:center!important;min-height:90px!important;margin-top:14px!important;
}
#approved-strategy-view .ss-metric--total .ss-metric__value {
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  gap:4px!important;margin:0!important;
}
#approved-strategy-view .ss-metric--total .ss-metric__value strong {
  font-size:clamp(42px,4vw,54px)!important;
}
#approved-strategy-view .ss-metric--total .ss-metric__foot {
  padding-left:18px!important;
}
#approved-strategy-view .ss-metric--readiness {
  border-color:#dce7f5!important;
}
#approved-strategy-view .ss-metric--readiness .ss-metric__icon--outline {
  background:#edf3ff!important;color:#0e2166!important;
}
#approved-strategy-view .ss-readiness__body {
  display:flex!important;flex-direction:row-reverse!important;align-items:center!important;
  justify-content:space-between!important;margin:8px 0 12px!important;gap:14px!important;
}
#approved-strategy-view .ss-readiness__ring {
  width:94px!important;height:94px!important;flex:0 0 94px!important;
}
#approved-strategy-view .ss-readiness__ring > div {
  box-sizing:border-box!important;inset:0!important;display:flex!important;
  flex-direction:column!important;align-items:center!important;justify-content:center!important;
  text-align:center!important;gap:2px!important;padding:0 8px!important;
}
#approved-strategy-view .ss-readiness__ring strong {
  display:block!important;margin:0!important;padding:0!important;
  font:750 20px/1.12 Poppins,"Open Sans",sans-serif!important;
  letter-spacing:-.035em!important;white-space:nowrap!important;text-align:center!important;
}
#approved-strategy-view .ss-readiness__ring span {
  margin:0!important;padding:0!important;text-align:center!important;
  font:600 9px/1.2 "Open Sans",sans-serif!important;
}
#approved-strategy-view .ss-readiness__values {
  display:flex!important;flex-direction:column!important;justify-content:center!important;
  gap:10px!important;align-self:stretch!important;margin:0!important;
}
#approved-strategy-view .ss-readiness__values > div {
  flex-direction:row!important;justify-content:space-between!important;
  padding-bottom:4px!important;border-bottom:1px solid #edf1f7!important;
}
#approved-strategy-view .ss-readiness__values strong {font-size:22px!important}
#approved-strategy-view .ss-readiness__track {height:7px!important}
#approved-strategy-view .ss-readiness__copy {margin-top:8px!important}

/* Table: consistent row-action targets, clear hierarchy and balanced spacing. */
#approved-strategy-view .ss-directory__head {padding:10px 18px 3px!important}
#approved-strategy-view .ss-table {margin-top:6px!important}
#approved-strategy-view .ss-table__columns {letter-spacing:.035em!important}
#approved-strategy-view .ss-row__action {
  width:33px!important;height:33px!important;min-width:33px!important;min-height:33px!important;
  flex:0 0 33px!important;border-radius:9px!important;
}
#approved-strategy-view .ss-row__action svg {width:17px!important;height:17px!important;stroke-width:1.85!important}
#approved-strategy-view .ss-row__action--open {
  background:#f5f8fd!important;border-color:#dae5f3!important;
}
#approved-strategy-view .ss-row__action:focus-visible {
  outline:2px solid #0b7ff0!important;outline-offset:2px!important;
}

/* Popover has a designed two-column form; no browser-default buttons/fields. */
#approved-strategy-view #strategy-task-scheduled-filters:popover-open,
#approved-strategy-view #strategy-task-scheduled-filters.ss-filters-open {
  width:min(464px,calc(100vw - 24px))!important;
  padding:20px!important;gap:14px 13px!important;align-items:start!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
#approved-strategy-view #strategy-task-scheduled-filters > label {
  grid-column:auto!important;display:flex!important;flex-direction:column!important;
  gap:7px!important;min-width:0!important;color:#435d82!important;
  font:700 11px/1.3 "Open Sans",sans-serif!important;
}
#approved-strategy-view #strategy-task-scheduled-filters > label select {
  box-sizing:border-box!important;appearance:none!important;-webkit-appearance:none!important;
  width:100%!important;min-height:43px!important;margin:0!important;
  padding:10px 32px 10px 12px!important;outline:none!important;
  color:#152f61!important;background-color:#f9fbff!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23485e84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right 10px center!important;
  border:1px solid #dbe4f0!important;border-radius:9px!important;
  font:600 12px/1.4 "Open Sans",sans-serif!important;
  box-shadow:none!important;cursor:pointer!important;
  transition:border-color .16s,box-shadow .16s,background-color .16s!important;
}
#approved-strategy-view #strategy-task-scheduled-filters > label select:hover {
  border-color:#9ebae5!important;background-color:#fff!important;
}
#approved-strategy-view #strategy-task-scheduled-filters > label select:focus-visible {
  border-color:#0b7ff0!important;box-shadow:0 0 0 3px rgba(11,127,240,.12)!important;
}
#approved-strategy-view #strategy-task-scheduled-filters select option {
  color:#152f61;background:#fff;font-weight:500;
}
#approved-strategy-view .ss-filters__actions {
  grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;
  gap:10px!important;padding-top:14px!important;border-top:1px solid #e7edf6!important;
}
#approved-strategy-view .ss-filters__actions > button {
  box-sizing:border-box!important;min-height:42px!important;padding:10px 12px!important;
  border:1px solid #dce5f2!important;border-radius:9px!important;
  background:#fff!important;color:#234774!important;
  font:700 12px/1.3 "Open Sans",sans-serif!important;cursor:pointer!important;
  transition:background-color .16s,border-color .16s!important;
}
#approved-strategy-view .ss-filters__actions > button.ss-filters__apply {
  background:#0b7ff0!important;color:#fff!important;border-color:#0b7ff0!important;
}
#approved-strategy-view .ss-filters__actions > button.ss-filters__apply:hover {
  background:#096fd2!important;border-color:#096fd2!important;
}
#approved-strategy-view .ss-filters__actions > button:not(.ss-filters__apply):hover {
  background:#eff4fc!important;border-color:#bad1ee!important;
}
#approved-strategy-view .ss-filters__actions > button:focus-visible {
  outline:2px solid #0b7ff0!important;outline-offset:2px!important;
}

/* Reusable right-hand drawer: detail and editor, no full-screen centered modal. */
body .strategy-scheduled-detail.task-v2-modal,
body .strategy-scheduled-editor.task-v2-modal {
  box-sizing:border-box!important;position:fixed!important;inset:0!important;
  z-index:2850!important;display:flex!important;justify-content:flex-end!important;
  align-items:stretch!important;padding:0!important;background:transparent!important;
}
body .strategy-scheduled-detail .task-v2-modal__backdrop,
body .strategy-scheduled-editor .task-v2-modal__backdrop {
  position:fixed!important;inset:0!important;z-index:0!important;
  background:rgba(12,28,65,.44)!important;backdrop-filter:blur(2px)!important;
}
body .strategy-scheduled-detail .strategy-scheduled-detail__dialog.task-v2-dialog,
body .strategy-scheduled-editor .strategy-definition-dialog.task-v2-dialog {
  box-sizing:border-box!important;position:relative!important;z-index:1!important;
  margin:0!important;flex:0 0 auto!important;
  width:min(570px,100vw)!important;min-width:0!important;max-width:100vw!important;
  height:100dvh!important;max-height:100dvh!important;
  padding:0!important;border-radius:17px 0 0 17px!important;
  border:0!important;border-left:1px solid #e0e7f2!important;
  background:#f6f8fc!important;box-shadow:-18px 0 55px rgba(9,25,73,.15)!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
  animation:ss-drawer-in .24s cubic-bezier(.16,1,.3,1) both!important;
}
body .strategy-scheduled-editor .strategy-definition-dialog.task-v2-dialog {width:min(670px,100vw)!important}
@keyframes ss-drawer-in {from{transform:translateX(22px);opacity:.8}to{transform:translateX(0);opacity:1}}
body .strategy-scheduled-detail .task-v2-dialog__header,
body .strategy-scheduled-editor .task-v2-dialog__header {
  position:relative!important;flex:0 0 auto!important;min-height:76px!important;
  padding:19px 22px!important;gap:12px!important;
}
body .strategy-scheduled-detail .task-v3-dialog-heading,
body .strategy-scheduled-editor .task-v3-dialog-heading {min-width:0!important;align-items:center!important}
body .strategy-scheduled-detail .task-v3-dialog-heading h2,
body .strategy-scheduled-editor .task-v3-dialog-heading h2 {
  color:#0e2166!important;line-height:1.28!important;font-size:18px!important;
  overflow-wrap:anywhere!important;
}
body .strategy-scheduled-detail .task-v2-dialog__body,
body .strategy-scheduled-editor .task-v2-dialog__body {
  flex:1 1 auto!important;min-height:0!important;padding:19px 20px 28px!important;
  overflow:auto!important;overscroll-behavior:contain!important;
}
body .strategy-scheduled-detail .task-v2-dialog__footer,
body .strategy-scheduled-editor .task-v2-dialog__footer {
  position:relative!important;flex:0 0 auto!important;
  padding:14px 20px max(14px,env(safe-area-inset-bottom))!important;
  gap:10px!important;align-items:center!important;
}
body .strategy-scheduled-detail .strategy-scheduled-detail__section {
  padding:17px!important;margin:0!important;border:1px solid #e4eaf4!important;
  border-radius:13px!important;background:#fff!important;
}
body .strategy-scheduled-detail .strategy-scheduled-detail__section+.strategy-scheduled-detail__section {
  margin-top:13px!important;
}
body .strategy-scheduled-detail .strategy-scheduled-detail__field {
  min-height:61px!important;padding:10px 12px!important;
  border:1px solid #e7edf6!important;background:#f9fbfe!important;
}
body .strategy-scheduled-detail .strategy-scheduled-detail__grid {gap:9px!important}
body .strategy-scheduled-editor .strategy-definition-form__section {
  margin-bottom:13px!important;padding:16px!important;border-radius:13px!important;
}
body .strategy-scheduled-detail :is(.btn-primary,.btn-secondary),
body .strategy-scheduled-editor :is(.btn-primary,.btn-secondary) {
  min-height:40px!important;border-radius:9px!important;
}
@media(max-width:760px) {
  #approved-strategy-view #strategy-task-scheduled-filters:popover-open,
  #approved-strategy-view #strategy-task-scheduled-filters.ss-filters-open {
    width:min(420px,calc(100vw - 20px))!important;grid-template-columns:1fr 1fr!important;
    padding:16px!important;
  }
  #approved-strategy-view .ss-metric--total .ss-metric__body {grid-template-columns:1fr!important}
  #approved-strategy-view .ss-metric--total .ss-metric__foot {
    padding:11px 0 0!important;border-left:0!important;border-top:1px solid #e5ebf5!important;
  }
  body .strategy-scheduled-detail .strategy-scheduled-detail__dialog.task-v2-dialog,
  body .strategy-scheduled-editor .strategy-definition-dialog.task-v2-dialog {
    width:100vw!important;border-radius:0!important;
  }
}
@media(max-width:440px) {
  #approved-strategy-view #strategy-task-scheduled-filters:popover-open,
  #approved-strategy-view #strategy-task-scheduled-filters.ss-filters-open {grid-template-columns:1fr!important}
  #approved-strategy-view .ss-readiness__values strong {font-size:19px!important}
  body .strategy-scheduled-detail .strategy-scheduled-detail__grid {grid-template-columns:1fr!important}
  body .strategy-scheduled-detail .task-v2-dialog__header,
  body .strategy-scheduled-editor .task-v2-dialog__header {padding:14px!important}
  body .strategy-scheduled-detail .task-v2-dialog__body,
  body .strategy-scheduled-editor .task-v2-dialog__body {padding:14px!important}
}
@media(prefers-reduced-motion:reduce) {
  body .strategy-scheduled-detail .strategy-scheduled-detail__dialog.task-v2-dialog,
  body .strategy-scheduled-editor .strategy-definition-dialog.task-v2-dialog {
    animation:none!important;transition:none!important;
  }
}


/* Shared CRM command language: solid-blue add, outlined-danger delete. */
#approved-strategy-view .ss-row__action.crm-row-command--plus {
  border:1px solid #0b7ff0!important;background:#0b7ff0!important;color:#fff!important;
}
#approved-strategy-view .ss-row__action.crm-row-command--plus:hover,
#approved-strategy-view .ss-row__action.crm-row-command--plus:focus-visible {
  background:#096fd2!important;border-color:#096fd2!important;color:#fff!important;
}
#approved-strategy-view .ss-row__action.crm-row-command--trash {
  border:1px solid #efb4b4!important;background:#fff!important;color:#c81e1e!important;
}
#approved-strategy-view .ss-row__action.crm-row-command--trash:hover,
#approved-strategy-view .ss-row__action.crm-row-command--trash:focus-visible {
  border-color:#c81e1e!important;background:#fff1f1!important;color:#c81e1e!important;
}
