html.wp-toolbar {
  padding-top: 0 !important;
}

body.afb-app #adminmenuback,
body.afb-app #adminmenuwrap,
body.afb-app #adminmenumain,
body.afb-app #wpadminbar {
  display: none !important;
}

body.afb-app #wpcontent,
body.afb-app #wpfooter {
  margin-left: 0 !important;
}

body.afb-app #wpcontent {
  padding-left: 0 !important;
}

body.afb-app #wpbody {
  padding-top: 0 !important;
}

body.afb-app #wpbody-content {
  padding-bottom: 0 !important;
}

body.afb-app #wpbody-content > .wrap {
  margin: 0 !important;
  max-width: none !important;
  padding: 0 !important;
}

body.afb-app #wpfooter {
  display: none !important;
}

body.afb-app,
body.afb-app #wpwrap {
  background: #eef2f6;
}

#afb-admin-shell {
  display: flex;
  min-height: 100vh;
  color: #0f172a;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
}

#afb-admin-shell .afb-shell-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  border-right: 1px solid #1f2937;
  color: #e2e8f0;
  z-index: 1000;
  transition: width 0.2s ease, transform 0.2s ease;
}

#afb-admin-shell .afb-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#afb-admin-shell .afb-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid #1f2937;
}

#afb-admin-shell .afb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#afb-admin-shell .afb-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #38bdf8;
  color: #0b1120;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#afb-admin-shell .afb-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#afb-admin-shell .afb-brand-title {
  font-size: 14px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#afb-admin-shell .afb-brand-subtitle {
  font-size: 12px;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#afb-admin-shell .afb-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

#afb-admin-shell .afb-icon-btn:hover {
  background: #334155;
  border-color: #475569;
  color: #f8fafc;
}

#afb-admin-shell .afb-icon-btn:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
}

#afb-admin-shell .afb-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: grid;
  gap: 4px;
}

#afb-admin-shell .afb-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 10px 12px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

#afb-admin-shell .afb-nav-link:hover {
  background: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
}

#afb-admin-shell .afb-nav-link.is-active {
  background: #e2e8f0;
  color: #0f172a;
  font-weight: 700;
}

#afb-admin-shell .afb-nav-icon {
  width: 18px;
  height: 18px;
  font-size: 18px;
  line-height: 18px;
  flex: 0 0 auto;
}

#afb-admin-shell .afb-sidebar-footer {
  border-top: 1px solid #1f2937;
  padding: 10px;
}

#afb-admin-shell .afb-shell-main {
  margin-left: 280px;
  width: calc(100% - 280px);
  min-height: 100vh;
  transition: margin-left 0.2s ease, width 0.2s ease;
}

#afb-admin-shell .afb-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid #d8e1ea;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 25;
}

#afb-admin-shell .afb-shell-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

#afb-admin-shell .afb-mobile-toggle {
  display: none;
}

#afb-admin-shell .afb-shell-heading {
  min-width: 0;
}

#afb-admin-shell .afb-shell-eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

#afb-admin-shell .afb-shell-title {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.2;
  color: #0f172a;
  font-weight: 700;
}

#afb-admin-shell .afb-shell-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  padding: 7px 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

#afb-admin-shell .afb-shell-back:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

#afb-admin-shell .afb-shell-content {
  padding: 24px;
}

#afb-admin-shell .afb-shell-content .wrap {
  margin: 0;
  max-width: none;
}

#afb-admin-shell .afb-shell-content .wrap > h1:first-child,
#afb-admin-shell .afb-shell-content .wrap > h2.wp-heading-inline:first-child {
  display: none;
}

#afb-admin-shell .afb-shell-content .notice,
#afb-admin-shell .afb-shell-content div.notice {
  margin: 0 0 16px;
}

#afb-admin-shell .afb-shell-content .notice + .notice,
#afb-admin-shell .afb-shell-content div.notice + div.notice {
  margin-top: 0;
}

#afb-admin-shell .afb-shell-overlay {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.45);
  display: none;
  z-index: 900;
}

body.afb-sidebar-collapsed #afb-admin-shell .afb-shell-sidebar {
  width: 82px;
}

body.afb-sidebar-collapsed #afb-admin-shell .afb-shell-main {
  margin-left: 82px;
  width: calc(100% - 82px);
}

body.afb-sidebar-collapsed #afb-admin-shell .afb-brand-copy,
body.afb-sidebar-collapsed #afb-admin-shell .afb-nav-label {
  display: none;
}

body.afb-sidebar-collapsed #afb-admin-shell .afb-brand {
  justify-content: center;
  width: 100%;
}

body.afb-sidebar-collapsed #afb-admin-shell .afb-nav-link {
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
}

body.afb-sidebar-collapsed #afb-admin-shell .afb-sidebar-header {
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

@media (max-width: 1024px) {
  #afb-admin-shell .afb-shell-sidebar {
    width: 280px;
    transform: translateX(-100%);
  }

  body.afb-sidebar-open #afb-admin-shell .afb-shell-sidebar {
    transform: translateX(0);
  }

  #afb-admin-shell .afb-shell-main {
    margin-left: 0;
    width: 100%;
  }

  body.afb-sidebar-collapsed #afb-admin-shell .afb-shell-main {
    margin-left: 0;
    width: 100%;
  }

  #afb-admin-shell .afb-mobile-toggle {
    display: inline-flex;
  }

  #afb-admin-shell .afb-sidebar-header .afb-icon-btn {
    display: none;
  }

  body.afb-sidebar-open #afb-admin-shell .afb-shell-overlay {
    display: block;
  }

  #afb-admin-shell .afb-shell-header {
    padding: 14px 16px;
  }

  #afb-admin-shell .afb-shell-content {
    padding: 16px;
  }

  #afb-admin-shell .afb-shell-title {
    font-size: 20px;
  }
}
