/*
 * TommyAPI admin UI patch.
 * Keep SideSheet action buttons visible on short viewports, especially
 * /console/redemption create/edit forms.
 */
.semi-sidesheet-left .semi-sidesheet-content,
.semi-sidesheet-right .semi-sidesheet-content {
  height: 100vh !important;
  max-height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
}

.semi-sidesheet-left .semi-sidesheet-header,
.semi-sidesheet-right .semi-sidesheet-header,
.semi-sidesheet-left .semi-sidesheet-footer,
.semi-sidesheet-right .semi-sidesheet-footer {
  flex: 0 0 auto !important;
}

.semi-sidesheet-left .semi-sidesheet-body,
.semi-sidesheet-right .semi-sidesheet-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding-bottom: 16px !important;
}

.semi-sidesheet-left .semi-sidesheet-footer,
.semi-sidesheet-right .semi-sidesheet-footer {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 2 !important;
  background: var(--semi-color-bg-2, #fff) !important;
  border-top: 1px solid var(--semi-color-border, #e5e7eb) !important;
  box-shadow: 0 -8px 20px rgba(15, 23, 42, 0.06) !important;
  padding: 12px 24px !important;
}

/* ---- impl1-debrand (2026-07-29) ----
 * New API 的 Footer 组件把 "设计与开发由 New API" 硬编码在编译后的 bundle 里,
 * Footer 选项无法移除它。这里用注入的 CSS 隐藏该署名块, 只保留 TommyAPI 自己的 footer。
 * 结构: <div class="custom-footer ...">{自定义footer}</div><div class="text-sm flex-shrink-0"><span>设计与开发由 </span><a href=".../QuantumNous/new-api">New API</a></div>
 */
.custom-footer + div { display: none !important; }
footer a[href*="QuantumNous/new-api"] { display: none !important; }
footer a[href*="new-api-horizon"],
footer a[href*="coaidev/coai"],
footer a[href*="gpt-load.com"] { display: none !important; }
footer div:has(> a[href*="QuantumNous/new-api"]) { display: none !important; }
