/* =========================================================
   UBICACIÓN:
   frontend/src/pages/gobernanza/estrategia/estrategia.css

   WIRTZ HUB · GOBERNANZA · ESTRATEGIA
   PARTE 1 DE 2
   ========================================================= */

/* =========================================================
   PAGE
   ========================================================= */

.strategy-page {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =========================================================
   HEADER
   ========================================================= */

.strategy-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;

  padding: 18px;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: var(--panel);
}

.strategy-brand {
  min-width: 0;

  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.strategy-brand__icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--background);
  color: var(--text);
}

.strategy-brand__icon .icon {
  width: 20px;
  height: 20px;
}

.strategy-brand__copy {
  min-width: 0;
}

.strategy-brand__copy > span {
  display: block;

  margin-bottom: 5px;

  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.strategy-brand__copy h1 {
  margin: 0;

  color: var(--text);
  font-size: clamp(24px, 2vw, 31px);
  font-weight: 780;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.strategy-brand__copy p {
  max-width: 720px;

  margin: 7px 0 0;

  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.strategy-head__status {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.strategy-head-status {
  min-width: 132px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;

  border: 1px solid var(--border);
  border-radius: 11px;

  background: var(--background);
}

.strategy-head-status > .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;

  color: var(--muted);
}

.strategy-head-status > span {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 1px;
}

.strategy-head-status small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.strategy-head-status strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 780;
}

.strategy-head__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.strategy-btn {
  min-height: 38px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 8px 12px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--panel);
  color: var(--text);

  font: inherit;
  font-size: 12px;
  font-weight: 740;

  cursor: pointer;

  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease;
}

.strategy-btn:hover:not(:disabled) {
  background: var(--background);
  border-color: color-mix(in srgb, var(--text) 24%, var(--border));
}

.strategy-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.strategy-btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.strategy-btn .icon {
  width: 15px;
  height: 15px;
}

.strategy-btn--dark {
  border-color: var(--text);
  background: var(--text);
  color: var(--background);
}

.strategy-btn--dark:hover:not(:disabled) {
  border-color: var(--text);
  background: color-mix(in srgb, var(--text) 90%, var(--background));
}

.strategy-btn--compact {
  min-height: 34px;
  padding: 6px 10px;
}

/* =========================================================
   METRICS
   ========================================================= */

.strategy-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.strategy-metric {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 11px;

  padding: 14px;

  border: 1px solid var(--border);
  border-radius: 13px;

  background: var(--panel);

  animation:
    strategyMetricIn 0.24s ease both;

  animation-delay:
    calc(var(--strategy-index, 0) * 30ms);
}

.strategy-metric__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--background);
  color: var(--text);
}

.strategy-metric__icon .icon {
  width: 16px;
  height: 16px;
}

.strategy-metric__copy {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 1px;
}

.strategy-metric__copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.strategy-metric__copy strong {
  overflow: hidden;

  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-metric__copy > span {
  overflow: hidden;

  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   CONTROL METRICS
   ========================================================= */

.strategy-control-metrics {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.strategy-control-card {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 9px;

  padding: 10px 11px;

  border: 1px solid var(--border);
  border-radius: 11px;

  background: var(--panel);
}

.strategy-control-card > .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;

  color: var(--muted);
}

.strategy-control-card > span {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 1px;
}

.strategy-control-card small {
  overflow: hidden;

  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-control-card strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 780;
}

/* =========================================================
   PANEL
   ========================================================= */

.strategy-panel {
  min-width: 0;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: var(--panel);
}

/* =========================================================
   FILTERS
   ========================================================= */

.strategy-filters {
  border-bottom: 1px solid var(--border);
}

.strategy-filters__head {
  min-height: 62px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 12px 14px;

  border-bottom: 1px solid var(--border);
}

.strategy-filters__title {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 10px;
}

.strategy-filters__title > .icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;

  color: var(--muted);
}

.strategy-filters__title > div {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 1px;
}

.strategy-filters__title span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.strategy-filters__title strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 780;
}

.strategy-filters__summary {
  display: flex;
  align-items: center;
}

.strategy-filters__summary > span {
  min-width: 90px;

  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.strategy-filters__summary small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.strategy-filters__summary strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.strategy-filters__body {
  padding: 12px 14px 14px;
}

.strategy-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.strategy-search {
  min-width: 0;
  min-height: 40px;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 0 11px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--background);
}

.strategy-search:focus-within {
  border-color: color-mix(in srgb, var(--text) 42%, var(--border));
}

.strategy-search .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;

  color: var(--muted);
}

.strategy-search input {
  width: 100%;
  min-width: 0;

  border: 0;
  outline: 0;

  background: transparent;
  color: var(--text);

  font: inherit;
  font-size: 12px;
}

.strategy-search input::placeholder {
  color: color-mix(in srgb, var(--muted) 80%, transparent);
}

.strategy-filters-grid {
  display: grid;
  grid-template-columns:
    minmax(130px, 0.8fr)
    minmax(130px, 0.8fr)
    minmax(180px, 1fr)
    minmax(150px, 0.8fr)
    minmax(150px, 0.8fr);
  gap: 8px;

  margin-top: 8px;
}

.strategy-filter-field,
.strategy-field {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 5px;
}

.strategy-filter-field > span,
.strategy-field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
}

.strategy-filter-field input,
.strategy-filter-field select,
.strategy-field input,
.strategy-field select,
.strategy-field textarea {
  width: 100%;
  min-width: 0;

  border: 1px solid var(--border);
  border-radius: 9px;
  outline: 0;

  background: var(--background);
  color: var(--text);

  font: inherit;
  font-size: 12px;

  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}

.strategy-filter-field input,
.strategy-filter-field select,
.strategy-field input,
.strategy-field select {
  min-height: 38px;
  padding: 7px 9px;
}

.strategy-field textarea {
  min-height: 78px;
  padding: 9px 10px;

  line-height: 1.5;

  resize: vertical;
}

.strategy-filter-field input:focus,
.strategy-filter-field select:focus,
.strategy-field input:focus,
.strategy-field select:focus,
.strategy-field textarea:focus {
  border-color: color-mix(in srgb, var(--text) 45%, var(--border));
}

/* =========================================================
   TABLE
   ========================================================= */

.strategy-table-wrap {
  width: 100%;
  min-width: 0;

  overflow-x: auto;
}

.strategy-table {
  width: 100%;
  min-width: 1380px;

  border-collapse: separate;
  border-spacing: 0;

  color: var(--text);
}

.strategy-table thead {
  background: var(--background);
}

.strategy-table th {
  padding: 9px 10px;

  border-bottom: 1px solid var(--border);

  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.strategy-table td {
  padding: 10px;

  border-bottom: 1px solid var(--border);

  vertical-align: middle;
}

.strategy-table tbody tr {
  background: var(--panel);

  transition:
    background 0.14s ease;
}

.strategy-table tbody tr:hover {
  background: color-mix(in srgb, var(--background) 74%, var(--panel));
}

.strategy-table tbody tr:last-child td {
  border-bottom: 0;
}

.strategy-name {
  min-width: 240px;
  max-width: 320px;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 0;

  border: 0;

  background: transparent;
  color: inherit;

  font: inherit;
  text-align: left;

  cursor: pointer;
}

.strategy-name__icon {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--background);
}

.strategy-name__icon .icon {
  width: 15px;
  height: 15px;
}

.strategy-name__copy {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 1px;
}

.strategy-name__copy small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
}

.strategy-name__copy strong {
  overflow: hidden;

  color: var(--text);
  font-size: 12px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-name__copy > span {
  overflow: hidden;

  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-period,
.strategy-review-date,
.strategy-owner {
  display: flex;
  align-items: center;
  gap: 6px;

  color: var(--text);
}

.strategy-period {
  min-width: 120px;

  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}

.strategy-period strong {
  font-size: 11px;
  font-weight: 740;
}

.strategy-period small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.strategy-owner {
  min-width: 130px;
  max-width: 180px;

  font-size: 10px;
}

.strategy-owner .icon,
.strategy-review-date .icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;

  color: var(--muted);
}

.strategy-owner span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-review-date {
  min-width: 105px;

  font-size: 10px;
  white-space: nowrap;
}

.strategy-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  color: var(--text);
}

.strategy-count .icon {
  width: 13px;
  height: 13px;

  color: var(--muted);
}

.strategy-count strong {
  font-size: 11px;
  font-weight: 780;
}

.strategy-count small {
  color: var(--muted);
  font-size: 8px;
}

.strategy-count--alert {
  color: var(--text);
}

.strategy-count--alert .icon {
  color: var(--text);
}

.strategy-table-progress {
  min-width: 88px;

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.strategy-table-progress strong {
  color: var(--text);
  font-size: 10px;
  font-weight: 760;
}

.strategy-table-progress > span {
  height: 4px;

  overflow: hidden;

  border-radius: 999px;

  background: color-mix(in srgb, var(--border) 78%, transparent);
}

.strategy-table-progress > span > span {
  display: block;
  height: 100%;

  border-radius: inherit;

  background: var(--text);
}

/* =========================================================
   STATE / PRIORITY
   ========================================================= */

.strategy-state,
.strategy-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;

  min-height: 25px;

  padding: 4px 7px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: var(--background);
  color: var(--text);

  font-size: 9px;
  font-weight: 740;
  white-space: nowrap;
}

.strategy-state .icon {
  width: 11px;
  height: 11px;
}

.strategy-state--risk,
.strategy-priority--critical {
  border-color: color-mix(in srgb, var(--text) 42%, var(--border));
  font-weight: 800;
}

.strategy-state--completed {
  background: color-mix(in srgb, var(--background) 72%, var(--panel));
}

.strategy-state--closed,
.strategy-state--cancelled {
  opacity: 0.7;
}

.strategy-priority--low {
  opacity: 0.7;
}

.strategy-priority--high,
.strategy-priority--critical {
  color: var(--text);
}

/* =========================================================
   ROW ACTIONS
   ========================================================= */

.strategy-row-actions,
.strategy-record-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.strategy-icon-btn {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--panel);
  color: var(--text);

  cursor: pointer;

  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    transform 0.14s ease;
}

.strategy-icon-btn:hover {
  border-color: color-mix(in srgb, var(--text) 30%, var(--border));
  background: var(--background);
}

.strategy-icon-btn:active {
  transform: translateY(1px);
}

.strategy-icon-btn .icon {
  width: 13px;
  height: 13px;
}

.strategy-icon-btn--danger {
  color: var(--muted);
}

/* =========================================================
   CARDS · MOBILE / REUSABLE
   ========================================================= */

.strategy-card-list {
  display: grid;
  gap: 9px;

  padding: 12px;
}

.strategy-card {
  min-width: 0;

  padding: 12px;

  border: 1px solid var(--border);
  border-radius: 12px;

  background: var(--panel);
}

.strategy-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.strategy-card__head > button {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 9px;

  padding: 0;

  border: 0;

  background: transparent;
  color: inherit;

  font: inherit;
  text-align: left;

  cursor: pointer;
}

.strategy-card__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--background);
}

.strategy-card__icon .icon {
  width: 14px;
  height: 14px;
}

.strategy-card__head button > span:last-child {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 1px;
}

.strategy-card__head small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
}

.strategy-card__head strong {
  overflow: hidden;

  color: var(--text);
  font-size: 13px;
  font-weight: 780;
  text-overflow: ellipsis;
}

.strategy-card__meta {
  display: grid;
  gap: 5px;

  margin-top: 10px;
}

.strategy-card__meta > span {
  display: flex;
  align-items: center;
  gap: 6px;

  color: var(--muted);
  font-size: 10px;
}

.strategy-card__meta .icon {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.strategy-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 10px;
}

.strategy-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  margin-top: 11px;
  padding-top: 10px;

  border-top: 1px solid var(--border);
}

/* =========================================================
   PROGRESS
   ========================================================= */

.strategy-progress {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.strategy-progress__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.strategy-progress__head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.strategy-progress__head strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.strategy-progress__track {
  height: 6px;

  overflow: hidden;

  border-radius: 999px;

  background: color-mix(in srgb, var(--border) 78%, transparent);
}

.strategy-progress__track > span {
  display: block;
  height: 100%;

  border-radius: inherit;

  background: var(--text);

  transition: width 0.22s ease;
}

.strategy-progress--compact {
  margin-top: 10px;
}

.strategy-progress--compact .strategy-progress__track {
  height: 4px;
}

/* =========================================================
   PAGINATION
   ========================================================= */

.strategy-pagination {
  min-height: 56px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 10px 14px;

  border-top: 1px solid var(--border);
}

.strategy-pagination__info {
  color: var(--muted);
  font-size: 10px;
}

.strategy-pagination__info strong {
  color: var(--text);
}

.strategy-pagination__actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.strategy-pagination__page {
  color: var(--muted);
  font-size: 10px;
}

.strategy-pagination__page strong {
  color: var(--text);
}

/* =========================================================
   LOADING / EMPTY
   ========================================================= */

.strategy-loading,
.strategy-empty {
  min-height: 280px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 28px;

  text-align: center;
}

.strategy-loading > .icon,
.strategy-empty > .icon {
  width: 26px;
  height: 26px;

  color: var(--muted);
}

.strategy-loading strong,
.strategy-empty strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}

.strategy-loading span,
.strategy-empty span {
  max-width: 440px;

  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.strategy-empty--error > .icon {
  color: var(--text);
}

/* =========================================================
   ANIMATION
   ========================================================= */

.strategy-spin {
  animation:
    strategySpin 0.8s linear infinite;
}

@keyframes strategySpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes strategyMetricIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   RESPONSIVE · BASE
   ========================================================= */

@media (max-width: 1500px) {
  .strategy-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .strategy-control-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .strategy-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .strategy-head__status {
    grid-column: 1 / -1;
    order: 3;
  }

  .strategy-head-status {
    flex: 1;
  }

  .strategy-filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .strategy-page {
    gap: 10px;
  }

  .strategy-head {
    grid-template-columns: 1fr;
    gap: 12px;

    padding: 14px;
  }

  .strategy-head__status {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .strategy-head-status {
    min-width: calc(50% - 4px);
  }

  .strategy-head__actions {
    justify-content: stretch;
  }

  .strategy-head__actions .strategy-btn {
    flex: 1;
  }

  .strategy-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-control-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-filters__head {
    min-height: auto;
  }

  .strategy-filters__body {
    padding: 10px;
  }

  .strategy-search-row {
    grid-template-columns: 1fr;
  }

  .strategy-search-row .strategy-btn {
    width: 100%;
  }

  .strategy-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-pagination {
    flex-direction: column;
    align-items: stretch;
  }

  .strategy-pagination__info {
    text-align: center;
  }

  .strategy-pagination__actions {
    justify-content: space-between;
  }

  .strategy-pagination__page {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .strategy-brand__icon {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .strategy-brand__copy h1 {
    font-size: 23px;
  }

  .strategy-brand__copy p {
    font-size: 11px;
  }

  .strategy-head-status {
    min-width: 100%;
  }

  .strategy-metrics {
    grid-template-columns: 1fr;
  }

  .strategy-control-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .strategy-metric {
    padding: 11px;
  }

  .strategy-filters-grid {
    grid-template-columns: 1fr;
  }

  .strategy-pagination__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .strategy-pagination__page {
    grid-column: 1 / -1;
    grid-row: 1;
  }
}/* =========================================================
   UBICACIÓN:
   frontend/src/pages/gobernanza/estrategia/estrategia.css

   WIRTZ HUB · GOBERNANZA · ESTRATEGIA
   PARTE 2 DE 2
   ========================================================= */

/* =========================================================
   MODAL
   ========================================================= */

.strategy-modal-open {
  overflow: hidden;
}

.strategy-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 18px;

  background: rgba(0, 0, 0, 0.52);
}

.strategy-modal {
  width: min(1120px, 100%);
  max-height: calc(100vh - 36px);

  display: flex;
  flex-direction: column;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 16px;

  background: var(--panel);
  color: var(--text);
}

.strategy-modal--form {
  width: min(980px, 100%);
}

.strategy-modal--medium {
  width: min(860px, 100%);
}

.strategy-modal--detail {
  width: min(1280px, 100%);
}

.strategy-modal__head {
  min-height: 78px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 14px 16px;

  border-bottom: 1px solid var(--border);

  background: var(--panel);
}

.strategy-modal__brand {
  min-width: 0;

  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.strategy-modal__icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--background);
}

.strategy-modal__icon .icon {
  width: 17px;
  height: 17px;
}

.strategy-modal__brand > div {
  min-width: 0;
}

.strategy-modal__brand > div > span {
  display: block;

  margin-bottom: 3px;

  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.strategy-modal__brand h3 {
  margin: 0;

  color: var(--text);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.strategy-modal__brand p {
  margin: 5px 0 0;

  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.strategy-modal__close {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;

  display: grid;
  place-items: center;

  padding: 0;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--background);
  color: var(--text);

  cursor: pointer;
}

.strategy-modal__close:hover {
  border-color: color-mix(in srgb, var(--text) 28%, var(--border));
}

.strategy-modal__close .icon {
  width: 15px;
  height: 15px;
}

/* =========================================================
   FORM
   ========================================================= */

.strategy-form {
  min-height: 0;

  display: flex;
  flex-direction: column;

  overflow-y: auto;
}

.strategy-form-section {
  padding: 16px;

  border-bottom: 1px solid var(--border);
}

.strategy-form-section:last-of-type {
  border-bottom: 0;
}

.strategy-form-section__title {
  display: flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 13px;
}

.strategy-form-section__title > span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--background);
}

.strategy-form-section__title .icon {
  width: 14px;
  height: 14px;
}

.strategy-form-section__title > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.strategy-form-section__title small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.strategy-form-section__title strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}

.strategy-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.strategy-field--wide {
  grid-column: span 2;
}

.strategy-field--full {
  grid-column: 1 / -1;
}

/* =========================================================
   MODAL FOOTER
   ========================================================= */

.strategy-modal__footer {
  min-height: 62px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  margin-top: auto;
  padding: 11px 14px;

  border-top: 1px solid var(--border);

  background: var(--panel);
}

.strategy-modal__footer > span {
  color: var(--muted);
  font-size: 9px;
}

.strategy-modal__footer > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* =========================================================
   DETAIL
   ========================================================= */

.strategy-detail {
  min-height: 0;

  display: flex;
  flex-direction: column;

  overflow-y: auto;
}

.strategy-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 14px 16px;

  border-bottom: 1px solid var(--border);
}

.strategy-detail-hero__main {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 11px;
}

.strategy-detail-hero__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--background);
}

.strategy-detail-hero__icon .icon {
  width: 16px;
  height: 16px;
}

.strategy-detail-hero__main > div {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 1px;
}

.strategy-detail-hero__main > div > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.strategy-detail-hero__main strong {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.strategy-detail-hero__main small {
  color: var(--muted);
  font-size: 10px;
}

.strategy-detail-hero__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.strategy-detail-progress {
  padding: 11px 16px;

  border-bottom: 1px solid var(--border);
}

/* =========================================================
   DETAIL TABS
   ========================================================= */

.strategy-detail-tabs {
  display: flex;
  align-items: center;
  gap: 4px;

  overflow-x: auto;

  padding: 8px 10px;

  border-bottom: 1px solid var(--border);

  background: var(--background);

  scrollbar-width: thin;
}

.strategy-detail-tab {
  min-height: 32px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  flex: 0 0 auto;

  padding: 6px 9px;

  border: 1px solid transparent;
  border-radius: 8px;

  background: transparent;
  color: var(--muted);

  font: inherit;
  font-size: 10px;
  font-weight: 720;

  cursor: pointer;
}

.strategy-detail-tab:hover {
  color: var(--text);
  background: var(--panel);
}

.strategy-detail-tab.is-active {
  border-color: var(--border);
  background: var(--panel);
  color: var(--text);
}

.strategy-detail-tab .icon {
  width: 13px;
  height: 13px;
}

/* =========================================================
   DETAIL CONTENT
   ========================================================= */

.strategy-detail-content {
  min-height: 360px;

  padding: 14px;
}

.strategy-summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.strategy-summary-grid article {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 3px;

  padding: 10px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--background);
}

.strategy-summary-grid small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 720;
}

.strategy-summary-grid strong {
  overflow: hidden;

  color: var(--text);
  font-size: 11px;
  font-weight: 770;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;

  margin-top: 9px;
}

.strategy-detail-block {
  min-width: 0;

  padding: 12px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--panel);
}

.strategy-detail-block > header {
  margin-bottom: 8px;
}

.strategy-detail-block > header > span {
  display: flex;
  align-items: center;
  gap: 6px;

  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.strategy-detail-block > header .icon {
  width: 13px;
  height: 13px;
}

.strategy-detail-block > header strong {
  display: block;

  margin-top: 2px;

  color: var(--text);
  font-size: 12px;
}

.strategy-detail-block > p,
.strategy-detail-note p {
  margin: 0;

  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-line;
}

.strategy-detail-note {
  margin-top: 10px;
  padding-top: 9px;

  border-top: 1px solid var(--border);
}

.strategy-detail-note strong {
  display: block;

  margin-bottom: 4px;

  color: var(--text);
  font-size: 10px;
}

.strategy-detail-block dl {
  display: grid;
  gap: 6px;

  margin: 0;
}

.strategy-detail-block dl > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  padding-bottom: 6px;

  border-bottom: 1px solid var(--border);
}

.strategy-detail-block dl > div:last-child {
  padding-bottom: 0;

  border-bottom: 0;
}

.strategy-detail-block dt {
  color: var(--muted);
  font-size: 10px;
}

.strategy-detail-block dd {
  margin: 0;

  color: var(--text);
  font-size: 11px;
  font-weight: 780;
}

/* =========================================================
   TAB HEADER
   ========================================================= */

.strategy-tab-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  margin-bottom: 11px;
}

.strategy-tab-head > div {
  min-width: 0;
}

.strategy-tab-head > div > span {
  display: block;

  margin-bottom: 2px;

  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.strategy-tab-head > div > strong {
  display: block;

  color: var(--text);
  font-size: 14px;
  font-weight: 800;
}

.strategy-tab-head p {
  margin: 4px 0 0;

  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

/* =========================================================
   RECORD CARDS
   ========================================================= */

.strategy-record-card {
  min-width: 0;

  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 10px;

  padding: 11px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--panel);
}

.strategy-record-card__icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--background);
}

.strategy-record-card__icon .icon {
  width: 14px;
  height: 14px;
}

.strategy-record-card__copy {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 2px;
}

.strategy-record-card__copy > small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.strategy-record-card__copy > strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 780;
}

.strategy-record-card__copy > p {
  margin: 2px 0 0;

  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.strategy-record-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;

  margin-top: 4px;

  color: var(--muted);
  font-size: 9px;
}

.strategy-record-meta .icon {
  width: 11px;
  height: 11px;
}

.strategy-record-card--risk {
  border-left-width: 3px;
}

.strategy-record-card--critico,
.strategy-record-card--alto {
  border-left-color: var(--text);
}

/* =========================================================
   INDICATORS
   ========================================================= */

.strategy-indicator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.strategy-indicator-card {
  min-width: 0;

  padding: 11px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--panel);
}

.strategy-indicator-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
}

.strategy-indicator-card > header > span {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 2px;
}

.strategy-indicator-card > header small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
}

.strategy-indicator-card > header strong {
  overflow: hidden;

  color: var(--text);
  font-size: 12px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-indicator-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;

  margin-top: 10px;
}

.strategy-indicator-values > span {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 1px;

  padding: 7px;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--background);
}

.strategy-indicator-values small {
  color: var(--muted);
  font-size: 8px;
}

.strategy-indicator-values strong {
  overflow: hidden;

  color: var(--text);
  font-size: 11px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.strategy-indicator-card > footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;

  margin-top: 9px;
  padding-top: 8px;

  border-top: 1px solid var(--border);

  color: var(--muted);
  font-size: 8px;
}

/* =========================================================
   FOLLOWUP TIMELINE
   ========================================================= */

.strategy-timeline {
  display: flex;
  flex-direction: column;

  padding-left: 8px;
}

.strategy-followup {
  position: relative;

  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
}

.strategy-followup:not(:last-child)::before {
  content: "";

  position: absolute;
  top: 17px;
  bottom: -1px;
  left: 5px;

  width: 1px;

  background: var(--border);
}

.strategy-followup__point {
  position: relative;
  z-index: 1;

  width: 11px;
  height: 11px;

  margin-top: 11px;

  border: 2px solid var(--panel);
  border-radius: 50%;

  background: var(--text);

  outline: 1px solid var(--border);
}

.strategy-followup__content {
  min-width: 0;

  margin-bottom: 9px;
  padding: 10px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--panel);
}

.strategy-followup__content > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.strategy-followup__content > header > div {
  min-width: 0;

  display: flex;
  flex-direction: column;
  gap: 1px;
}

.strategy-followup__content > header small {
  color: var(--muted);
  font-size: 8px;
}

.strategy-followup__content > header strong {
  color: var(--text);
  font-size: 11px;
}

.strategy-followup__content > header > span {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.strategy-followup__content > p {
  margin: 7px 0 0;

  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.strategy-followup__note {
  margin-top: 8px;
  padding: 8px;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--background);
}

.strategy-followup__note strong {
  display: block;

  margin-bottom: 3px;

  color: var(--text);
  font-size: 9px;
}

.strategy-followup__note p {
  margin: 0;

  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.strategy-followup__content > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  margin-top: 9px;
  padding-top: 8px;

  border-top: 1px solid var(--border);
}

.strategy-followup__content > footer > span {
  display: flex;
  align-items: center;
  gap: 5px;

  color: var(--muted);
  font-size: 8px;
}

.strategy-followup__content > footer .icon {
  width: 11px;
  height: 11px;
}

/* =========================================================
   HISTORY
   ========================================================= */

.strategy-history {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.strategy-history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;

  padding: 9px;

  border: 1px solid var(--border);
  border-radius: 9px;

  background: var(--panel);
}

.strategy-history-item > span {
  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--background);
}

.strategy-history-item > span .icon {
  width: 13px;
  height: 13px;
}

.strategy-history-item > div {
  min-width: 0;
}

.strategy-history-item header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.strategy-history-item strong {
  color: var(--text);
  font-size: 10px;
}

.strategy-history-item small {
  color: var(--muted);
  font-size: 8px;
}

.strategy-history-item p {
  margin: 4px 0 0;

  color: var(--muted);
  font-size: 9px;
}

.strategy-history-item em {
  display: block;

  margin-top: 4px;

  color: var(--muted);
  font-size: 9px;
}

.strategy-history-loading {
  min-height: 180px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  color: var(--muted);
  font-size: 10px;
}

.strategy-history-loading .icon {
  width: 15px;
  height: 15px;
}

/* =========================================================
   DETAIL EMPTY
   ========================================================= */

.strategy-detail-empty {
  min-height: 220px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;

  padding: 22px;

  border: 1px dashed var(--border);
  border-radius: 10px;

  text-align: center;
}

.strategy-detail-empty > .icon {
  width: 24px;
  height: 24px;

  color: var(--muted);
}

.strategy-detail-empty strong {
  color: var(--text);
  font-size: 12px;
  font-weight: 780;
}

.strategy-detail-empty span {
  max-width: 420px;

  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

/* =========================================================
   DETAIL FOOTER
   ========================================================= */

.strategy-detail-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;

  margin-top: auto;
  padding: 11px 14px;

  border-top: 1px solid var(--border);
}

/* =========================================================
   TOAST
   ========================================================= */

.strategy-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1600;

  max-width: min(390px, calc(100vw - 36px));

  display: flex;
  align-items: center;
  gap: 9px;

  padding: 10px 12px;

  border: 1px solid var(--border);
  border-radius: 10px;

  background: var(--panel);
  color: var(--text);

  opacity: 0;
  pointer-events: none;

  transform: translateY(8px);

  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.strategy-toast.is-visible {
  opacity: 1;

  transform: translateY(0);
}

.strategy-toast__icon {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 8px;

  background: var(--background);
}

.strategy-toast__icon .icon {
  width: 13px;
  height: 13px;
}

.strategy-toast > span:last-child {
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
}

.strategy-toast--error {
  border-color: color-mix(in srgb, var(--text) 35%, var(--border));
}

/* =========================================================
   DARK MODE
   ========================================================= */

:root[data-theme="dark"] .strategy-modal-backdrop,
[data-theme="dark"] .strategy-modal-backdrop {
  background: rgba(0, 0, 0, 0.76);
}

:root[data-theme="dark"] .strategy-btn--dark,
[data-theme="dark"] .strategy-btn--dark {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

:root[data-theme="dark"] .strategy-progress__track > span,
[data-theme="dark"] .strategy-progress__track > span,
:root[data-theme="dark"] .strategy-table-progress > span > span,
[data-theme="dark"] .strategy-table-progress > span > span {
  background: #ffffff;
}

/* =========================================================
   RESPONSIVE · DETAIL
   ========================================================= */

@media (max-width: 1180px) {
  .strategy-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .strategy-indicator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-field--wide {
    grid-column: span 1;
  }

  .strategy-field--full {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .strategy-modal-backdrop {
    align-items: flex-end;

    padding: 0;
  }

  .strategy-modal,
  .strategy-modal--form,
  .strategy-modal--medium,
  .strategy-modal--detail {
    width: 100%;
    max-height: 94dvh;

    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  .strategy-modal__head {
    min-height: 68px;

    padding: 12px;
  }

  .strategy-modal__brand p {
    display: none;
  }

  .strategy-detail-hero {
    align-items: flex-start;
  }

  .strategy-detail-hero__badges {
    max-width: 45%;
  }

  .strategy-detail-content {
    min-height: 320px;

    padding: 10px;
  }

  .strategy-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .strategy-detail-columns {
    grid-template-columns: 1fr;
  }

  .strategy-indicator-grid {
    grid-template-columns: 1fr;
  }

  .strategy-tab-head {
    align-items: flex-start;
  }

  .strategy-record-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .strategy-record-card__actions {
    grid-column: 2;

    justify-content: flex-start;
  }

  .strategy-form-grid {
    grid-template-columns: 1fr;
  }

  .strategy-field--wide,
  .strategy-field--full {
    grid-column: auto;
  }

  .strategy-modal__footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
  }
}

@media (max-width: 620px) {
  .strategy-modal__head {
    gap: 9px;
  }

  .strategy-modal__icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .strategy-modal__brand h3 {
    font-size: 16px;
  }

  .strategy-detail-hero {
    flex-direction: column;
  }

  .strategy-detail-hero__badges {
    max-width: none;
    width: 100%;

    justify-content: flex-start;
  }

  .strategy-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .strategy-tab-head {
    flex-direction: column;
  }

  .strategy-tab-head .strategy-btn {
    width: 100%;
  }

  .strategy-indicator-values {
    grid-template-columns: 1fr;
  }

  .strategy-followup__content > footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .strategy-detail-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .strategy-detail-footer .strategy-btn {
    width: 100%;
  }

  .strategy-modal__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .strategy-modal__footer > span {
    text-align: center;
  }

  .strategy-modal__footer > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .strategy-modal__footer .strategy-btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .strategy-modal__brand > div > span {
    font-size: 7px;
  }

  .strategy-modal__brand h3 {
    font-size: 15px;
  }

  .strategy-summary-grid {
    grid-template-columns: 1fr;
  }

  .strategy-record-card {
    grid-template-columns: 1fr;
  }

  .strategy-record-card__icon {
    width: 30px;
    height: 30px;
  }

  .strategy-record-card__actions {
    grid-column: auto;

    justify-content: flex-start;
  }

  .strategy-followup {
    grid-template-columns: 13px minmax(0, 1fr);
  }

  .strategy-followup:not(:last-child)::before {
    left: 4px;
  }

  .strategy-followup__point {
    width: 9px;
    height: 9px;
  }

  .strategy-history-item header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .strategy-toast {
    right: 10px;
    bottom: 10px;

    max-width: calc(100vw - 20px);
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .strategy-metric,
  .strategy-btn,
  .strategy-icon-btn,
  .strategy-toast,
  .strategy-progress__track > span {
    animation: none !important;
    transition: none !important;
  }

  .strategy-spin {
    animation: none !important;
  }
}/* =========================================================
   FIX · ESTRATEGIA
   BOTÓN MODO CLARO + MODAL DEBAJO DEL TOPBAR
   ========================================================= */

/* =========================================================
   BOTÓN DARK · MODO CLARO
   TEXTO E ÍCONO BLANCOS REALES
   ========================================================= */

html:not([data-theme="dark"])
.strategy-btn--dark,
body:not(.dark)
.strategy-btn--dark {
  border-color: #0a0a0a !important;

  background: #0a0a0a !important;

  color: #ffffff !important;
}

html:not([data-theme="dark"])
.strategy-btn--dark span,
html:not([data-theme="dark"])
.strategy-btn--dark .icon,
html:not([data-theme="dark"])
.strategy-btn--dark svg,
body:not(.dark)
.strategy-btn--dark span,
body:not(.dark)
.strategy-btn--dark .icon,
body:not(.dark)
.strategy-btn--dark svg {
  color: #ffffff !important;

  stroke: #ffffff !important;
}

html:not([data-theme="dark"])
.strategy-btn--dark:hover:not(:disabled),
body:not(.dark)
.strategy-btn--dark:hover:not(:disabled) {
  border-color: #1a1a1a !important;

  background: #1a1a1a !important;

  color: #ffffff !important;
}

/* =========================================================
   MODAL · RESPETAR TOPBAR
   ========================================================= */

.strategy-modal-backdrop {
  top:
    var(
      --topbar-height,
      54px
    ) !important;

  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;

  width: 100% !important;

  height:
    calc(
      100dvh -
      var(
        --topbar-height,
        54px
      )
    ) !important;

  padding: 12px !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* =========================================================
   MODAL · ALTURA DISPONIBLE REAL
   ========================================================= */

.strategy-modal,
.strategy-modal--form,
.strategy-modal--medium,
.strategy-modal--detail {
  max-height:
    calc(
      100dvh -
      var(
        --topbar-height,
        54px
      )
      -
      24px
    ) !important;
}

/* =========================================================
   FORMULARIOS · SCROLL INTERNO
   ========================================================= */

.strategy-form,
.strategy-detail {
  min-height: 0 !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;

  overscroll-behavior: contain;
}

/* =========================================================
   FOOTER DEL MODAL
   ========================================================= */

.strategy-modal__footer,
.strategy-detail-footer {
  flex:
    0
    0
    auto;

  background:
    var(
      --panel
    );
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 820px) {
  .strategy-modal-backdrop {
    top:
      var(
        --topbar-height,
        54px
      ) !important;

    height:
      calc(
        100dvh -
        var(
          --topbar-height,
          54px
        )
      ) !important;

    padding: 0 !important;

    align-items: flex-end !important;
  }

  .strategy-modal,
  .strategy-modal--form,
  .strategy-modal--medium,
  .strategy-modal--detail {
    max-height:
      calc(
        100dvh -
        var(
          --topbar-height,
          54px
        )
      ) !important;
  }
}