/* Hide SFTPGo chrome when embedded via deliver SSO.
   Activated by `<html class="embedded">` set by base.html early script. */

html.embedded #kt_app_sidebar,
html.embedded .app-sidebar { display: none !important; }

html.embedded #kt_app_header,
html.embedded .app-header { display: none !important; }

/* Reclaim the layout space the sidebar/header used to take */
html.embedded #kt_app_wrapper,
html.embedded .app-wrapper {
  margin-left: 0 !important;
  margin-top: 0 !important;   /* KeenThemes reserves 90px here for the fixed header */
}

html.embedded #kt_app_main,
html.embedded .app-main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

html.embedded #kt_app_content,
html.embedded .app-content {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

/* Tighten content-container side padding for embedded mode (more usable width) */
html.embedded #kt_app_content_container {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* Flatten the outer file-panel card (deliver-web already provides the card surface) */
html.embedded #kt_app_content_container > .card,
html.embedded #kt_app_content_container > .card.card-flush,
html.embedded #kt_app_content_container > .card.shadow-sm {
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

/* Card body keeps its inner padding but no separate background */
html.embedded #kt_app_content_container > .card > .card-body,
html.embedded #kt_app_content_container > .card > .card-header {
  background: transparent !important;
}

/* Footer shows "SFTPGo 2.7.99-dev" text — hide it */
html.embedded #kt_app_footer,
html.embedded .app-footer { display: none !important; }
