body.redesign-mode[data-view="recovery"] .topbar,
body.redesign-mode[data-view="retention"] .topbar,
body.redesign-mode[data-view="ltv-cac"] .topbar,
body.redesign-mode[data-view="remarketing"] .topbar { min-height: 76px; }

.redesign-mode .nav-item.nav-child { height: 36px; margin-left: 9px; padding-left: 10px; font-size: 12px; }
.redesign-mode .nav-item.nav-child .nav-icon { width: 16px; height: 16px; font-size: 16px; }
.redesign-mode .sidebar nav { overflow-y: auto; scrollbar-width: thin; }

.recovery-page { display: grid; gap: 12px; color: #173f43; }
.recovery-filters { display: grid; grid-template-columns: 1.05fr .7fr 1.25fr repeat(2, 1fr) .9fr auto; gap: 10px; align-items: end; padding: 12px 14px 9px; border: 1px solid var(--rd-line); border-radius: 7px; background: #fff; }
.recovery-filters label { min-width: 0; display: grid; gap: 5px; color: var(--rd-muted); font-size: 10px; }
.recovery-filters select, .recovery-filters input { width: 100%; min-width: 0; height: 34px; }
.recovery-filters p { grid-column: 1 / -1; margin: 0; color: #789091; font-size: 10px; }
.recovery-refresh { height: 34px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #fff; border-color: var(--rd-teal) !important; background: var(--rd-teal) !important; white-space: nowrap; }

.recovery-kpis { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border: 1px solid var(--rd-line); border-radius: 7px; overflow: hidden; background: #fff; }
.recovery-kpis article { min-width: 0; min-height: 88px; display: grid; align-content: center; gap: 5px; padding: 10px 12px; border-right: 1px solid var(--rd-line); }
.recovery-kpis article:last-child { border-right: 0; }
.recovery-kpis span { color: var(--rd-muted); font-size: 10px; }
.recovery-kpis strong { color: #0a5651; font-size: 18px; letter-spacing: -.02em; }
.recovery-kpis small { overflow: hidden; color: #869899; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.recovery-chart-panel, .recovery-table-panel { padding: 0; overflow: hidden; }
.recovery-chart-head { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; border-bottom: 1px solid var(--rd-line); }
.recovery-chart-head h2 { margin: 0 0 5px; font-size: 14px; }
.recovery-chart-head p, .recovery-table-panel .panel-head p { margin: 0; color: var(--rd-muted); font-size: 10px; }
.recovery-segment { display: flex; padding: 2px; border: 1px solid var(--rd-line-strong); border-radius: 5px; background: #f5faf9; }
.recovery-segment button { height: 28px; padding: 0 12px; border: 0; background: transparent; color: #587174; }
.recovery-segment button.active { color: #fff; background: var(--rd-teal); }
.recovery-chart-tools { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 16px; color: #60787a; border-bottom: 1px solid #edf3f2; font-size: 10px; }
.recovery-chart-tools label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.recovery-chart-tools input { accent-color: var(--rd-teal); }
.recovery-payback-key { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.recovery-payback-key i { width: 22px; border-top: 2px dashed #ef8f35; }
.recovery-chart-wrap { position: relative; height: 330px; overflow-x: auto; padding: 0 4px; }
.recovery-chart-wrap canvas { display: block; }
.recovery-tooltip { position: absolute; z-index: 2; width: 280px; padding: 10px 12px; border: 1px solid #c9ddda; border-radius: 6px; color: #31585b; background: rgba(255,255,255,.96); box-shadow: 0 8px 24px rgba(7,63,61,.12); font-size: 10px; pointer-events: none; }
.recovery-tooltip b { display: block; margin-bottom: 6px; color: #123f42; }
.recovery-tooltip span { min-height: 22px; display: grid; grid-template-columns: 8px minmax(0,1fr) auto; gap: 6px; align-items: center; }
.recovery-tooltip i { width: 7px; height: 7px; border-radius: 50%; }
.recovery-tooltip em { overflow: hidden; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.recovery-tooltip strong { color: #0a6f68; }
.recovery-legend { min-height: 44px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; padding: 8px 16px; border-top: 1px solid #edf3f2; color: #587174; font-size: 10px; }
.recovery-legend span { max-width: 220px; display: inline-flex; align-items: center; gap: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recovery-legend i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }

.recovery-table-panel .panel-head { min-height: 58px; padding: 0 14px; }
.recovery-table-panel .panel-head > div { display: grid; gap: 4px; }
.recovery-table-panel .panel-head button { display: inline-flex; align-items: center; gap: 5px; }
.recovery-table-scroll { overflow-x: auto; }
.recovery-table-panel table { width: 100%; min-width: 1160px; border-collapse: collapse; font-size: 10px; }
.recovery-table-panel th { height: 38px; padding: 0 10px; color: #567073; background: #f1f9f7; text-align: right; white-space: nowrap; }
.recovery-table-panel th:first-child { text-align: left; }
.recovery-table-panel td { height: 46px; padding: 0 10px; border-bottom: 1px solid #e7eeee; text-align: right; white-space: nowrap; }
.recovery-table-panel td.name { max-width: 320px; overflow: hidden; color: #0b6f68; text-align: left; text-overflow: ellipsis; }
.recovery-table-panel tr:hover td { background: #fbfefd; }

.recovery-empty { min-height: 260px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 28px; color: #779092; text-align: center; }
.recovery-empty > i { font-size: 30px; color: #8bcfc7; }
.recovery-empty strong { color: #31585b; font-size: 13px; }
.recovery-empty p { max-width: 460px; margin: 0; font-size: 10px; line-height: 1.6; }
.recovery-table-panel .recovery-empty { min-height: 150px; }
.recovery-loading { min-height: 470px; display: flex; align-items: center; justify-content: center; gap: 8px; color: #5e7779; border: 1px solid var(--rd-line); border-radius: 7px; background: #fff; font-size: 12px; }
.recovery-loading i { animation: recovery-spin 1s linear infinite; }
.recovery-error { min-height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 12px; color: #a6442c; border: 1px solid #f2cabc; border-radius: 6px; background: #fff4ef; font-size: 11px; }
@keyframes recovery-spin { to { transform: rotate(360deg); } }

.recovery-planned { min-height: 560px; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.recovery-planned > i { font-size: 34px; color: #67c9be; }
.recovery-planned h2 { margin: 0; color: #174d50; }
.recovery-planned p { margin: 0; color: #5f797b; }
.recovery-planned span { color: #8a9b9c; font-size: 11px; }
.recovery-planned button { margin-top: 8px; color: #fff; border-color: var(--rd-teal); background: var(--rd-teal); }

@media (max-width: 1360px) {
  .recovery-filters { grid-template-columns: 1fr .7fr 1.2fr repeat(2, .9fr) .85fr auto; }
  .recovery-kpis strong { font-size: 16px; }
}
