/* Premium admin shell — Linear / Notion–inspired; memuat setelah app.css */

#app-shell.admin-dash {
  --dash-accent: #c89b4b;
  --dash-accent-soft: rgba(200, 155, 75, 0.14);
  --dash-sidebar-bg: linear-gradient(180deg, #1f1f1f 0%, #252525 100%);
  --dash-sidebar-border: rgba(231, 226, 218, 0.1);
  --dash-text: #e7e2da;
  --dash-muted: rgba(231, 226, 218, 0.62);
  --dash-surface: #fffdf9;
  --dash-sidebar-control: #2f2f2f;
  --dash-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  --dash-radius: 12px;
  --dash-sidebar-w: 288px;
  --dash-sidebar-collapsed-w: 76px;

  grid-template-columns: var(--dash-sidebar-w) minmax(0, 1fr);
  background: var(--bg);
  min-height: 100vh;
}

/* Tamu: sembunyikan sidebar — konten penuh lebar */
#app-shell.admin-dash.app-shell--guest {
  grid-template-columns: minmax(0, 1fr) !important;
}

#app-shell.admin-dash.app-shell--guest .sidebar.dash-sidebar {
  display: none !important;
}

.admin-content__inner--guest {
  position: relative;
  min-height: min(100dvh, 960px);
}

/* Beranda tamu: logo kiri + aksi kanan, satu baris */
.guest-home-header {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 3vw, 1.5rem);
  padding: clamp(0.65rem, 2vw, 1rem) clamp(0.75rem, 3vw, 1.5rem);
  margin-bottom: 0.35rem;
  min-height: 3.25rem;
  box-sizing: border-box;
}

.guest-home-header--toolbar-only {
  justify-content: flex-end;
}

.guest-home-header .guest-home-brand-bar {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

.guest-home-header .guest-home-brand-bar .guest-home-brand {
  pointer-events: auto;
  max-width: 100%;
}

.guest-home-header .guest-shell-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0;
  margin: 0;
  min-height: 0;
}

.guest-shell-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: clamp(0.75rem, 2.5vw, 1.25rem) clamp(0.75rem, 3vw, 1.5rem) 0;
  margin-bottom: 0.25rem;
}

.guest-shell-toolbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.guest-home-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.guest-home-brand__img {
  display: block;
  width: auto;
  height: clamp(40px, 7vh, 56px);
  max-width: min(220px, calc(100vw - 8rem));
  object-fit: contain;
  object-position: left center;
}

.guest-shell-toolbar__back.btn-icononly {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 999px;
  justify-content: center;
  flex-shrink: 0;
}

.guest-shell-toolbar__back .ui-ico-svg {
  width: 1.35rem;
  height: 1.35rem;
}

.guest-shell-toolbar__login {
  flex-shrink: 0;
}

.guest-shell-toolbar__login.btn-icononly {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 999px;
  justify-content: center;
}

.guest-shell-toolbar__login .ui-ico-svg {
  width: 1.35rem;
  height: 1.35rem;
}

#app-shell.admin-dash.app-shell--guest .admin-topbar__hamburger {
  display: none !important;
}

/* Tamu + collapsed: rail ikon di semua lebar (termasuk mobile; logged-in collapsed mobile memakai drawer) */
#app-shell.admin-dash.app-shell--guest.app-shell--sidebar-collapsed .dash-brand__text,
#app-shell.admin-dash.app-shell--guest.app-shell--sidebar-collapsed .dash-nav-link__text,
#app-shell.admin-dash.app-shell--guest.app-shell--sidebar-collapsed .dash-nav-group__label,
#app-shell.admin-dash.app-shell--guest.app-shell--sidebar-collapsed .ui-details__title .dash-nav-group__label,
#app-shell.admin-dash.app-shell--guest.app-shell--sidebar-collapsed .dash-nav .ui-details.dash-nav-group .ui-details__body,
#app-shell.admin-dash.app-shell--guest.app-shell--sidebar-collapsed .dash-sidebar__profile {
  display: none;
}

#app-shell.admin-dash.app-shell--guest.app-shell--sidebar-collapsed .dash-nav-link,
#app-shell.admin-dash.app-shell--guest.app-shell--sidebar-collapsed .dash-nav .ui-details.dash-nav-group > summary {
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

#app-shell.admin-dash.app-shell--guest.app-shell--sidebar-collapsed .dash-nav .ui-details.dash-nav-group > summary .ui-details__icon {
  display: none;
}

#app-shell.admin-dash.app-shell--guest.app-shell--sidebar-collapsed .dash-sidebar__top {
  flex-direction: column;
  align-items: center;
}

#app-shell.admin-dash.app-shell--guest.app-shell--sidebar-collapsed .dash-brand {
  justify-content: center;
}

#app-shell.admin-dash.app-shell--guest.app-shell--sidebar-collapsed .dash-nav__watermark {
  display: none;
}

#app-shell.admin-dash.app-shell--sidebar-collapsed {
  grid-template-columns: var(--dash-sidebar-collapsed-w) minmax(0, 1fr);
}

#app-shell.admin-dash .sidebar.dash-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 0;
  background: var(--dash-sidebar-bg);
  color: var(--dash-text);
  border-right: 1px solid var(--dash-sidebar-border);
  box-shadow: var(--dash-shadow);
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition:
    width 0.22s ease,
    box-shadow 0.22s ease;
}

#app-shell.admin-dash .sidebar.sidebar--collapsed {
  padding: 0;
}

.dash-sidebar__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 1.25rem 1rem 0.75rem;
  border-bottom: 1px solid var(--dash-sidebar-border);
}

#app-shell.admin-dash .dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

#app-shell.admin-dash .dash-brand__title {
  font-size: 0.95rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--dash-text);
  line-height: 1.25;
}

#app-shell.admin-dash .dash-brand__sub {
  display: block;
  font-size: 0.72rem;
  color: var(--dash-muted);
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#app-shell.admin-dash .brand-mark {
  background: linear-gradient(145deg, #d4b06a 0%, #c89b4b 50%, #8f6f38 100%);
  border: 1px solid rgba(200, 155, 75, 0.35);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Logo kustom: selaras topbar utama, bukan emas/oranye */
#app-shell.admin-dash .brand-mark.brand-mark--custom {
  background: transparent;
  border: none;
  box-shadow: none;
}

#app-shell.admin-dash .brand-mark.dash-brand__mark {
  width: 72px;
  height: 72px;
  border-radius: 12px;
}

#app-shell.admin-dash .dash-brand__mark .dash-brand__img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  vertical-align: middle;
}

#app-shell.admin-dash .sidebar-toggle.dash-sidebar__collapse {
  border: 1px solid var(--dash-sidebar-border);
  background: var(--dash-sidebar-control);
  color: var(--dash-text);
  border-radius: 10px;
  flex-shrink: 0;
}

#app-shell.admin-dash .sidebar-toggle.dash-sidebar__collapse:hover {
  background: rgba(200, 155, 75, 0.12);
  color: #fff;
  border-color: rgba(200, 155, 75, 0.35);
}

.dash-sidebar__close-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--dash-muted);
  cursor: pointer;
}

.dash-sidebar__close-mobile:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--dash-text);
}

/* Nav */
.dash-nav {
  position: relative;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.65rem 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav__watermark {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  transform: translateX(-50%);
  width: min(280px, 92%);
  height: min(280px, 42vh);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
  filter: grayscale(0.85) contrast(0.9);
}

.dash-nav > *:not(.dash-nav__watermark) {
  position: relative;
  z-index: 1;
}

.dash-nav__section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 550;
  color: var(--dash-text);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.dash-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--dash-text);
}

.dash-nav-link.is-active {
  background: var(--dash-accent-soft);
  color: #f5e6bc;
  box-shadow: inset 0 0 0 1px rgba(200, 155, 75, 0.35);
}

.dash-nav-link__ico {
  display: flex;
  color: var(--dash-muted);
  flex-shrink: 0;
}

.dash-nav-link.is-active .dash-nav-link__ico {
  color: #f0d9a6;
}

.dash-nav-link__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Accordion groups — tipis, tanpa «kartu» tebal */
#app-shell.admin-dash .dash-nav .ui-details.dash-nav-group {
  border: none;
  background: transparent;
  border-radius: var(--dash-radius);
  overflow: visible;
  box-shadow: none;
}

#app-shell.admin-dash .dash-nav .ui-details.dash-nav-group > summary {
  padding: 0.45rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--dash-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 10px;
  transition: background 0.15s ease;
}

#app-shell.admin-dash .dash-nav .ui-details.dash-nav-group > summary:hover {
  background: rgba(255, 255, 255, 0.05);
}

#app-shell.admin-dash .dash-nav .ui-details.dash-nav-group[open] > summary {
  color: var(--dash-text);
}

#app-shell.admin-dash .dash-nav .ui-details.dash-nav-group .ui-details__icon {
  background-color: var(--dash-muted);
  width: 1rem;
  height: 1rem;
}

.dash-nav-group__label {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dash-text);
}

.dash-nav-group__lead {
  color: var(--dash-muted);
}

#app-shell.admin-dash .dash-nav .ui-details.dash-nav-group[open] .dash-nav-group__lead {
  color: var(--dash-accent);
}

#app-shell.admin-dash .dash-nav .ui-details.dash-nav-group .ui-details__body {
  padding: 4px 0 8px 0.25rem;
  margin-left: 0.5rem;
  border-left: 1px solid var(--dash-sidebar-border);
}

.dash-nav-sublink {
  display: block;
  padding: 0.45rem 0.65rem 0.45rem 1rem;
  margin: 2px 0;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dash-muted);
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.dash-nav-sublink:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--dash-text);
  text-decoration: none;
}

.dash-nav-sublink.is-active {
  background: var(--dash-accent-soft);
  color: #f5e6bc;
  font-weight: 600;
}

/* Profile block: nama/avatar polos; Keluar di kartu terpisah */
.dash-sidebar__profile {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem;
  border-top: 1px solid var(--dash-sidebar-border);
  margin-top: auto;
  background: rgba(0, 0, 0, 0.2);
}

.dash-profile__user {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 0.15rem 0;
}

.dash-profile__logout-card {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.55rem 0.65rem;
  margin: 0;
}

.dash-profile__avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(145deg, #d4b06a 0%, #c89b4b 55%, #8f6f38 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-profile__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dash-text);
  line-height: 1.25;
  min-width: 0;
  flex: 0 1 auto;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dash-profile__logout {
  width: auto;
  max-width: 100%;
  align-self: center;
  justify-content: center;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 10px;
  gap: 0.45rem;
}

.dash-profile__logout .ui-ico-svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.dash-profile__logout:hover {
  text-decoration: none;
}

/* Main column */
#app-shell.admin-dash .main.admin-main {
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.admin-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.admin-content__inner {
  flex: 1;
  padding: 0 1.75rem 2.5rem;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
}

.admin-content > .admin-app-footer {
  flex-shrink: 0;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1.75rem 1.5rem;
  box-sizing: border-box;
}

/* Topbar */
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.75rem;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.app-page-nav {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.app-page-nav__home.is-current {
  opacity: 0.55;
  cursor: default;
}

.app-page-nav__parent {
  max-width: min(100%, 18rem);
}

.app-page-nav__parent .ui-btn-lbl {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guest-shell-toolbar__actions--nav {
  align-items: center;
  gap: 8px;
}

.auth-card__nav {
  margin: -0.35rem 0 1rem;
}

.auth-card__nav--footer {
  margin: 0.75rem 0 0;
  display: flex;
  justify-content: center;
}

.auth-login__actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-top: 0.5rem;
}

.auth-login__submit {
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.auth-login__actions-nav {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.auth-login__actions-nav .app-page-nav {
  gap: 0;
}

.admin-topbar__leading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

.admin-topbar__hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-card);
  color: var(--text);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.admin-topbar__hamburger:hover {
  background: var(--surface-muted);
  border-color: rgba(200, 155, 75, 0.35);
}

.admin-breadcrumb {
  min-width: 0;
  flex: 1 1 auto;
}

.admin-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.4rem;
  font-size: 0.9rem;
  line-height: 1.35;
}

.admin-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  max-width: 100%;
  color: var(--muted);
}

.admin-breadcrumb__item:not(:last-child)::after {
  content: "›";
  flex-shrink: 0;
  color: rgba(123, 115, 107, 0.55);
  font-weight: 500;
  font-size: 1.05em;
  line-height: 1;
}

.admin-breadcrumb__link {
  color: var(--muted);
  font-weight: 550;
  text-decoration: none;
  border-radius: 6px;
  padding: 0.1rem 0.2rem;
  margin: -0.1rem -0.2rem;
  max-width: 16rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-breadcrumb__link:hover {
  color: var(--primary);
  background: rgba(200, 155, 75, 0.08);
  text-decoration: none;
}

.admin-breadcrumb__current {
  color: var(--text);
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(100%, 22rem);
}

.admin-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.admin-notify {
  position: relative;
}

.admin-notify-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 2rem));
  max-height: min(420px, 70vh);
  overflow-y: auto;
  padding: 0.5rem;
  background: var(--dash-surface);
  border: 1px solid var(--border);
  border-radius: var(--dash-radius);
  box-shadow:
    0 14px 40px rgba(46, 42, 38, 0.1),
    0 0 0 1px rgba(229, 221, 210, 0.6);
  z-index: 50;
}

.admin-notify-panel[hidden] {
  display: none !important;
}

.admin-notify-panel__empty {
  margin: 0;
  padding: 1rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: center;
}

.admin-notify-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-notify-panel__link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: background 0.12s ease;
}

.admin-notify-panel__link:hover {
  background: rgba(200, 155, 75, 0.1);
  text-decoration: none;
}

.admin-notify-panel__item--warning .admin-notify-panel__link {
  box-shadow: inset 0 0 0 1px rgba(217, 119, 6, 0.2);
  background: rgba(254, 243, 199, 0.35);
}

.admin-notify-panel__item--warning .admin-notify-panel__link:hover {
  background: rgba(254, 243, 199, 0.55);
}

.admin-notify-panel__item--info .admin-notify-panel__link {
  box-shadow: inset 0 0 0 1px rgba(200, 155, 75, 0.22);
  background: rgba(200, 155, 75, 0.1);
}

.admin-notify-panel__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--text);
  letter-spacing: -0.01em;
}

.admin-notify-panel__body {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.35;
}

.admin-topbar__notify {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface-card);
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.admin-topbar__notify:hover {
  background: var(--surface-muted);
  color: var(--text);
  border-color: rgba(200, 155, 75, 0.35);
}

.admin-topbar__notify-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--dash-accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(46, 42, 38, 0.12);
}

.admin-shell-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(31, 31, 31, 0.45);
  backdrop-filter: blur(2px);
}

#app-shell.admin-dash.app-shell--mobile-open .admin-shell-backdrop {
  display: block;
}

/* Collapsed sidebar (desktop / tablet lebar): rail ikon */
@media (min-width: 901px) {
  #app-shell.admin-dash.app-shell--sidebar-collapsed .dash-brand__text,
  #app-shell.admin-dash.app-shell--sidebar-collapsed .dash-nav-link__text,
  #app-shell.admin-dash.app-shell--sidebar-collapsed .dash-nav-group__label,
  #app-shell.admin-dash.app-shell--sidebar-collapsed .ui-details__title .dash-nav-group__label,
  #app-shell.admin-dash.app-shell--sidebar-collapsed .dash-nav .ui-details.dash-nav-group .ui-details__body,
  #app-shell.admin-dash.app-shell--sidebar-collapsed .dash-sidebar__profile {
    display: none;
  }

  #app-shell.admin-dash.app-shell--sidebar-collapsed .dash-nav-link,
  #app-shell.admin-dash.app-shell--sidebar-collapsed .dash-nav .ui-details.dash-nav-group > summary {
    justify-content: center;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  #app-shell.admin-dash.app-shell--sidebar-collapsed .dash-nav .ui-details.dash-nav-group > summary .ui-details__icon {
    display: none;
  }

  #app-shell.admin-dash.app-shell--sidebar-collapsed .dash-sidebar__top {
    flex-direction: column;
    align-items: center;
  }

  #app-shell.admin-dash.app-shell--sidebar-collapsed .dash-brand {
    justify-content: center;
  }

  #app-shell.admin-dash.app-shell--sidebar-collapsed .brand-mark.dash-brand__mark,
  #app-shell.admin-dash.app-shell--sidebar-collapsed .dash-brand__mark .dash-brand__img {
    width: 40px;
    height: 40px;
  }

  #app-shell.admin-dash.app-shell--sidebar-collapsed .dash-nav__watermark {
    display: none;
  }
}

@media (max-width: 900px) {
  #app-shell.admin-dash {
    grid-template-columns: minmax(0, 1fr);
  }

  #app-shell.admin-dash .sidebar.dash-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(var(--dash-sidebar-w), 92vw);
    max-width: 320px;
    transform: translateX(-104%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--dash-shadow);
  }

  #app-shell.admin-dash.app-shell--mobile-open .sidebar.dash-sidebar {
    transform: translateX(0);
  }

  #app-shell.admin-dash.app-shell--sidebar-collapsed .sidebar.dash-sidebar {
    transform: translateX(-104%);
  }

  #app-shell.admin-dash.app-shell--mobile-open.app-shell--sidebar-collapsed .sidebar.dash-sidebar {
    transform: translateX(0);
  }

  .admin-topbar__hamburger {
    display: inline-flex;
  }

  .dash-sidebar__close-mobile {
    display: inline-flex;
  }

  .admin-content__inner {
    padding: 0 1rem 2rem;
  }

  .admin-topbar {
    padding: 0.75rem 1rem;
  }

}

/* Responsif tambahan: topbar rapat, footer, notifikasi */
@media (max-width: 640px) {
  .admin-content__inner {
    padding: 0 0.75rem 1.5rem;
  }

  .admin-content > .admin-app-footer {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    padding-bottom: 1.25rem;
  }

  .admin-topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    row-gap: 0.65rem;
  }

  .admin-topbar__actions {
    margin-left: auto;
  }

  .admin-breadcrumb__list {
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  .admin-notify-panel {
    width: min(100vw - 1rem, 360px);
    right: 0;
    left: auto;
    max-height: min(380px, 65vh);
  }
}

@media (max-width: 400px) {
  .admin-topbar__notify {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
  }
}

/*
 * Dashboard insight ibadah / demografi / keuangan: area krem menyambung ke konten —
 * hilangkan garis bawah topbar agar tidak membuat garis horizontal ganda di atas judul.
 */
body:has(.insight-worship-page) .admin-topbar,
body:has(#mdb-dashboard-page) .admin-topbar,
body:has(#mdm-dashboard-page) .admin-topbar,
body:has(#fi-dashboard-page) .admin-topbar,
body:has(#cool-insight-page) .admin-topbar {
  border-bottom: none;
}

/* Cetak / PDF: tanpa menu samping dan bilah atas (breadcrumb, lonceng, hamburger) */
@media print {
  #app-shell.admin-dash {
    display: block;
  }

  #app-shell.admin-dash .sidebar.dash-sidebar,
  #app-shell.admin-dash .admin-topbar,
  #app-shell.admin-dash .admin-shell-backdrop,
  #app-shell.admin-dash .admin-app-footer,
  /* Footer kadang tetap terlihat di PDF — sembunyikan semua footer app admin */
  footer.admin-app-footer,
  .admin-content > footer.admin-app-footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    clip: rect(0, 0, 0, 0) !important;
    position: absolute !important;
    width: 1px !important;
  }

  #app-shell.admin-dash .main.admin-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  #app-shell.admin-dash .admin-content,
  #app-shell.admin-dash .admin-content__inner {
    padding: 0;
    margin: 0;
    max-width: none;
  }
}
