/* ===== AppCss Migrated: SidebarShell ===== */
.panel-shell {
  min-height: 100vh;
  }
.sidebar {
  background: linear-gradient(180deg, var(--bg-sidebar) 0, var(--bg-sidebar-soft) 100%);
  border-color: rgba(148, 163, 184, 0.12);
  border-right-width: 0;
  border-right-color: transparent;
  bottom: 0;
  box-shadow: var(--shadow-strong);
  display: flex;
  flex-direction: column;
  left: 0;
  overflow: visible;
  padding: 1.25rem 1rem;
  position: fixed;
  top: 0;
  transition-duration: 0.3s;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  width: var(--sidebar-width, 280px);
  isolation: isolate;
  z-index: 40;
  }
.sidebar::after {
  background: linear-gradient(180deg, var(--bg-sidebar) 0, var(--bg-sidebar-soft) 100%);
  bottom: 0;
  content: "";
  pointer-events: none;
  position: absolute;
  right: -1px;
  top: 0;
  width: 2px;
}
.sidebar.collapsed,
html[data-admin-sidebar-pref="1"] body.panel-admin-shell .sidebar,
html[data-user-sidebar-pref="1"] body.panel-user-shell .sidebar {
  width: var(--sidebar-collapsed-width, 80px);
  }
.sidebar.active {
  --tw-translate-x: 0;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewx(var(--tw-skew-x)) skewy(var(--tw-skew-y)) scalex(var(--tw-scale-x)) scaley(var(--tw-scale-y));
  }
.content {
  margin-left: var(--sidebar-width, 280px);
  min-height: 100vh;
  padding: 1.25rem 1rem;
  transition-duration: 0.3s;
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
@media (min-width: 1024px) {
  .content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    }
  }
.sidebar.collapsed ~ .content,
html[data-admin-sidebar-pref="1"] body.panel-admin-shell .sidebar ~ .content,
html[data-user-sidebar-pref="1"] body.panel-user-shell .sidebar ~ .content {
  margin-left: var(--sidebar-collapsed-width, 80px);
  }
.sidebar-header {
  align-items: center;
  border-radius: 22px;
  border-width: 1px;
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
  min-height: 96px;
  padding: 1.25rem;
  --tw-text-opacity: 1;
  background: hsla(0, 0%, 100%, 0.04);
  border-color: rgba(148, 163, 184, 0.1);
  }
.sidebar-header.logo-only {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  justify-content: center;
  min-height: auto;
  padding: 0 0 0.5rem;
  width: 100%;
  }
.sidebar-header h2 {
  align-items: center;
  display: flex;
  font-size: 1.125rem;
  font-weight: 600;
  gap: 0.75rem;
  letter-spacing: -0.025em;
  line-height: 1.75rem;
  width: 100%;
  }
.sidebar-header.logo-only h2 {
  gap: 0;
  justify-content: center;
  width: 100%;
  }
.brand-mark {
  align-items: center;
  background: hsla(0, 0%, 100%, 0.08);
  border-radius: 1rem;
  display: flex;
  flex-shrink: 0;
  height: calc(var(--sidebar-logo-size, 35px) + 18px);
  justify-content: center;
  width: calc(var(--sidebar-logo-size, 35px) + 18px);
  }
.brand-has-logo {
  justify-content: center;
  }
.brand-has-logo .brand-mark-logo {
  background: transparent;
  border-radius: 0;
  height: var(--sidebar-brand-logo-height, 54px);
  justify-content: center;
  max-width: 100%;
  width: auto;
  }
.brand-has-logo .brand-logo {
  height: var(--sidebar-brand-logo-height, 54px);
  max-height: 76px;
  max-width: min(100%, 220px);
  width: auto;
  }
.brand-has-logo .brand-mark-favicon-only {
  display: none;
  }
.brand-mark-favicon-only {
  background: transparent;
  display: none;
  justify-content: center;
  }
.brand-favicon, .brand-logo {
  display: block;
  -o-object-fit: contain;
  object-fit: contain;
  }
.ue-note .brand-favicon, .ue-note .brand-logo {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.2);
  color: #b91c1c;
  }
body[data-theme-mode=dark] .ue-note .brand-favicon, body[data-theme-mode=dark] .ue-note .brand-logo {
  background: rgba(220, 38, 38, 0.16);
  color: #fecaca;
  }
.brand-logo {
  height: var(--sidebar-brand-logo-height, 54px);
  max-width: 100%;
  }
.brand-favicon {
  height: calc(var(--sidebar-logo-size, 35px) + 2px);
  width: calc(var(--sidebar-logo-size, 35px) + 2px);
  }
.brand-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
  --tw-text-opacity: 1;
  }
.sidebar.collapsed .brand-title, .sidebar.collapsed .menu a span, .sidebar.collapsed .menu-update-pill, .sidebar.collapsed .user-meta,
html[data-admin-sidebar-pref="1"] body.panel-admin-shell .sidebar .brand-title,
html[data-admin-sidebar-pref="1"] body.panel-admin-shell .sidebar .menu a span,
html[data-admin-sidebar-pref="1"] body.panel-admin-shell .sidebar .menu-update-pill,
html[data-admin-sidebar-pref="1"] body.panel-admin-shell .sidebar .user-meta,
html[data-user-sidebar-pref="1"] body.panel-user-shell .sidebar .brand-title,
html[data-user-sidebar-pref="1"] body.panel-user-shell .sidebar .menu a span,
html[data-user-sidebar-pref="1"] body.panel-user-shell .sidebar .menu-update-pill,
html[data-user-sidebar-pref="1"] body.panel-user-shell .sidebar .user-meta {
  display: none;
  }
.sidebar.collapsed .brand-mark-logo,
html[data-admin-sidebar-pref="1"] body.panel-admin-shell .sidebar .brand-mark-logo,
html[data-user-sidebar-pref="1"] body.panel-user-shell .sidebar .brand-mark-logo {
  display: none;
  }
.sidebar.collapsed .brand-mark-favicon-only,
html[data-admin-sidebar-pref="1"] body.panel-admin-shell .sidebar .brand-mark-favicon-only,
html[data-user-sidebar-pref="1"] body.panel-user-shell .sidebar .brand-mark-favicon-only {
  display: flex;
  height: calc(var(--sidebar-logo-size, 35px) + 6px);
  margin: 0 auto;
  width: calc(var(--sidebar-logo-size, 35px) + 6px);
  }
.sidebar.collapsed .user-card {
  align-items: center;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: center;
  padding: 1rem 0.75rem;
  }
.sidebar.collapsed .sidebar-footer {
  display: flex;
  justify-content: center;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  }
.sidebar.collapsed .user-card.user-card-account {
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.625rem;
  justify-content: center !important;
  margin-left: auto;
  margin-right: auto;
  margin-inline: auto !important;
  max-width: 52px !important;
  padding: 0.625rem 0.375rem;
  width: 52px !important;
  }
.sidebar.collapsed .user-avatar {
  margin-left: auto;
  margin-right: auto;
  }
.sidebar.collapsed .user-card.user-card-account .user-avatar {
  align-self: center;
  border-radius: 14px !important;
  height: 40px !important;
  margin-inline: auto !important;
  width: 40px !important;
  }
.sidebar.collapsed .user-actions {
  align-items: center;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 0;
  padding-left: 0.25rem;
  padding-right: 0.25rem;
  width: auto;
  }
.sidebar.collapsed .user-card.user-card-account .user-actions {
  align-self: center;
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  margin: 0 auto !important;
  padding-inline: 0 !important;
  }
.sidebar.collapsed .user-card.user-card-account .logout-link, .sidebar.collapsed .user-card.user-card-account .theme-toggle-link {
  border-radius: 14px !important;
  height: 40px !important;
  width: 40px !important;
  }
.menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  list-style-type: none;
  }
.menu, .menu li {
  margin: 0;
  padding: 0;
  }
.menu a {
  align-items: center;
  background: transparent;
  border-radius: 1rem;
  border-width: 1px;
  display: flex;
  font-size: 1rem;
  font-weight: 500;
  gap: 0.75rem;
  line-height: 1.5rem;
  padding: 0.75rem 1rem;
  --tw-text-opacity: 1;
  border-color: transparent;
  transition-duration: 0.15s;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
.menu a:hover {
  background: rgba(148, 163, 184, 0.16);
  border-color: transparent;
  box-shadow: none;
  color: #f8fafc;
}

.menu a.active,
.menu a.active:hover {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--primary) 72%, #ffffff 28%) 0%,
    var(--primary-dark) 100%
  );
  border-color: transparent;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--primary) 32%, transparent 68%);
  color: #ffffff;
}
.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  }
.user-card {
  border-radius: 22px;
  border-width: 1px;
  gap: 0.75rem;
  padding: 0.75rem;
  --tw-text-opacity: 1;
  background: hsla(0, 0%, 100%, 0.05);
  border-color: rgba(148, 163, 184, 0.12);
  }
.u-avatar, .user-avatar, .user-card {
  align-items: center;
  display: flex;
  }
.user-card.user-card-account {
  align-items: center;
  column-gap: 0.625rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}
.u-avatar, .user-avatar {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 70%, #fff 30%) 0, var(--primary-dark) 100%);
  border-radius: 1rem;
  color: #fff;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 700;
  height: 2.75rem;
  justify-content: center;
  line-height: 1.25rem;
  text-transform: uppercase;
  width: 2.75rem;
  }
.u-avatar-box {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  }
.u-avatar-box[data-user-detail-open],
.u-avatar-box[data-user-detail-open] .u-name {
  cursor: pointer;
  }
.u-person-main {
  min-width: 0;
  }
.u-name-row {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  }
.u-name {
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  }
.u-status-dot {
  align-items: center;
  background: transparent;
  border: 0;
  display: inline-flex;
  font-size: 0.875rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition-duration: 0.15s;
  transition-property: color, transform, opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
  opacity: 0.96;
  }
.u-status-dot i {
  display: block;
  }
.u-status-dot.is-approved {
  color: var(--success);
  }
.u-status-dot.is-warning {
  color: var(--warning);
  }
.u-status-dot:hover {
  opacity: 1;
  transform: translateY(-1px);
  }
.u-copy-link {
  align-items: center;
  background-color: transparent;
  border-width: 0;
  color: inherit;
  display: inline-flex;
  gap: 0.25rem;
  min-width: 0;
  padding: 0;
  text-align: left;
  transition-duration: 0.15s;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
.u-copy-link:hover {
  color: var(--primary);
  }
.u-copy-primary {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5rem;
  }
.u-copy-secondary, .u-copy-sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-top: 0.25rem;
  }
.u-contact-stack {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  }
.u-search-box {
  align-items: center;
  display: inline-flex;
  min-height: 48px;
  min-width: 246px;
  position: relative;
  width: 246px;
  }
.u-search-icon {
  display: inline-flex;
  left: 1rem;
  position: absolute;
  top: 50%;
  --tw-translate-y: -50%;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  justify-content: center;
  line-height: 1.25rem;
  pointer-events: none;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewx(var(--tw-skew-x)) skewy(var(--tw-skew-y)) scalex(var(--tw-scale-x)) scaley(var(--tw-scale-y));
  }
.u-search-input {
  padding-left: 42px;
  width: 100%;
  }
.u-page-size-wrap {
  align-items: center;
  background: var(--surface);
  border-color: var(--line);
  border-radius: 1rem;
  border-width: 1px;
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  gap: 0.75rem;
  min-height: 48px;
  padding: 0.5rem 1rem;
  }
.u-page-size-wrap label {
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  white-space: nowrap;
  }
.u-page-size-input {
  min-width: 110px;
  padding: 10px 14px;
  width: 110px;
  }
.u-person-row td {
  padding-bottom: 1.25rem;
  padding-top: 1.25rem;
  }
.u-pagination-wrap {
  border-color: var(--line);
  border-top-width: 1px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  }
@media (min-width: 768px) {
  .u-pagination-wrap {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    }
  }
.u-pagination-info {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  }
.u-pagination-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  }
#pg-users .u-pagination-wrap {
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  }
#pg-users .u-pagination-info {
  text-align: center;
  width: 100%;
  }
#pg-users #userPaginationLoading,
#pg-users #userPaginationEnd {
  font-weight: 600;
  }
#pg-users #userInfiniteSentinel {
  height: 1px;
  opacity: 0;
  pointer-events: none;
  width: 100%;
  }
.u-page-btn, .u-pagination-buttons {
  align-items: center;
  }
.u-page-btn {
  background: var(--surface);
  border-color: var(--line);
  border-radius: 1rem;
  border-width: 1px;
  box-shadow: var(--shadow-soft);
  color: var(--text-main);
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 600;
  justify-content: center;
  line-height: 1.25rem;
  min-height: 40px;
  min-width: 40px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  transition-duration: 0.15s;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
.u-page-btn:hover:not(:disabled) {
  --tw-translate-y: -0.125rem;
  border-color: var(--line);
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewx(var(--tw-skew-x)) skewy(var(--tw-skew-y)) scalex(var(--tw-scale-x)) scaley(var(--tw-scale-y));
  }
.u-page-btn.active {
  background: var(--btn-gradient);
  border-color: transparent;
  box-shadow: 0 16px 30px color-mix(in srgb, var(--primary) 18%, transparent 82%);
  color: #fff;
  }
.u-page-btn:disabled {
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.45;
  }
.u-actions {
  align-items: center;
  display: inline-flex;
  gap: 0.75rem;
  }
.u-actions > * + * {
  margin-left: 4px;
  }
.modal-shell-desc, .u-meta, .base-empty-cell, .base-page-subtitle, .user-meta small {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.25rem;
  }
.modal-shell-desc {
  line-height: 1.4rem;
  margin: 0;
}
.base-page-subtitle {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6rem;
  margin: 0;
  max-width: 560px;
}
.base-empty-cell {
  padding: 2.5rem 1rem;
  text-align: center;
}
.user-meta .name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  --tw-text-opacity: 1;
  }
.user-info-text, .user-meta {
  flex: 1 1 0%;
  min-width: 0;
  }
.user-info-text .name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  }
.user-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 0.75rem;
  margin-left: 0;
  }
.logout-link, .mobile-close-btn, .modern-menu-btn, .theme-toggle-link, .toggle-btn, .base-button-icon {
  align-items: center;
  background: var(--surface);
  border-color: var(--line);
  border-radius: 1rem;
  border-width: 1px;
  box-shadow: var(--shadow-soft);
  color: var(--text-main);
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 600;
  height: 2.75rem;
  justify-content: center;
  line-height: 1.25rem;
  transition-duration: 0.15s;
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  width: 2.75rem;
  }
.sidebar .mobile-close-btn, .sidebar .toggle-btn {
  align-self: flex-end;
  background: #fff;
  border-color: hsla(0, 0%, 100%, 0.72);
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  color: #0f172a;
  height: 28px;
  position: absolute;
  right: -18px;
  top: 18px;
  width: 28px;
  z-index: 30;
  }
.mobile-close-btn {
  display: none;
  }
.sidebar.collapsed .sidebar-header.logo-only {
  padding-left: 0;
  padding-right: 0;
  }
.sidebar.collapsed .sidebar-header.logo-only .brand-has-logo, .sidebar.collapsed .sidebar-header.logo-only h2 {
  justify-content: center;
  }



/* ===== AppCss Migrated: SidebarDarkAndResponsive ===== */
body[data-theme-mode=dark] .u-copy-link:hover {
  color: color-mix(in srgb, var(--primary) 74%, #fff 26%);
  }
body[data-theme-mode=dark] .u-page-size-wrap {
  background: rgba(15, 23, 42, 0.92);
  border-color: var(--line);
  }
body[data-theme-mode=dark] .u-status-dot.is-approved {
  color: color-mix(in srgb, var(--success) 86%, #fff 14%);
  }
body[data-theme-mode=dark] .u-status-dot.is-warning {
  color: color-mix(in srgb, var(--warning) 86%, #fff 14%);
  }
body[data-theme-mode=dark] .u-page-btn {
  background: rgba(15, 23, 42, 0.92);
  border-color: var(--line);
  color: #e2e8f0;
  }
body[data-theme-mode=dark] .u-page-btn.active {
  border-color: transparent;
  color: #fff;
  }
.menu-update-pill {
  font-size: 10px;
  margin-left: auto;
  }
.mobile-only {
  display: none;
  }
@media (max-width: 991px) {
  .sidebar {
    transform: translatex(-100%);
    width: min(88vw, var(--sidebar-width, 280px));
    }
  .sidebar.collapsed {
    width: min(88vw, var(--sidebar-width, 280px));
    }
  .sidebar.active {
    transform: translatex(0);
    }
  .content, .sidebar.collapsed ~ .content {
    margin-left: 0;
    }
  .mobile-only {
    display: block;
    }
  .toggle-btn {
    display: none;
    }
  .mobile-close-btn {
    display: none;
    pointer-events: none;
    }
  .sidebar.active .mobile-close-btn {
    display: inline-flex;
    pointer-events: auto;
    }
  .sidebar.collapsed .brand-title {
    display: block;
    }
  .sidebar.collapsed .menu a span {
    display: inline;
    }
  .sidebar.collapsed .menu-update-pill {
    display: inline-flex;
    }
  .sidebar.collapsed .user-meta {
    display: block;
    }
  .sidebar.collapsed .brand-mark-logo {
    display: flex;
    }
  .sidebar.collapsed .brand-mark-favicon-only {
    display: none;
    }
  .panel-mobile-shell-head {
    align-items: center;
    background: var(--surface);
    border-color: var(--line);
    border-radius: 22px;
    border-width: 1px;
    box-shadow: var(--shadow-soft);
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1rem;
    }
  }

/* Build-free explicit colors for dark sidebar text */
.sidebar .sidebar-header h2,
.sidebar .brand-title {
  color: #f8fafc;
}

.sidebar .menu a {
  color: #cfd8e3;
}

.sidebar .menu a i {
  color: inherit;
}

.sidebar .menu a:hover,
.sidebar .menu a.active {
  color: #ffffff;
}

.sidebar .user-meta .name {
  color: #f8fafc;
}

.sidebar .user-meta small {
  color: #cbd5e1;
}

