/*
 * CheckInBuddy Admin Shell
 * App-owned shell layer loaded after custom.css so the navigation system
 * stays independent from legacy template-era layout rules.
 */
:root {
  color-scheme: light;
  --cb-shell-font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --cb-shell-font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --cb-shell-surface: #ffffff;
  --cb-shell-surface-soft: rgba(255, 255, 255, 0.82);
  --cb-shell-surface-muted: #f4f8fc;
  --cb-shell-backdrop: #edf3f9;
  --cb-shell-border: rgba(148, 163, 184, 0.22);
  --cb-shell-border-strong: rgba(148, 163, 184, 0.34);
  --cb-shell-ink: #0f172a;
  --cb-shell-body: #334155;
  --cb-shell-muted: #64748b;
  --cb-shell-primary: #2457ff;
  --cb-shell-primary-strong: #1d46cc;
  --cb-shell-primary-soft: rgba(36, 87, 255, 0.12);
  --cb-shell-secondary: #c06240;
  --cb-shell-secondary-soft: rgba(192, 98, 64, 0.12);
  --cb-shell-success: #15803d;
  --cb-shell-success-soft: rgba(21, 128, 61, 0.12);
  --cb-shell-warning: #b45309;
  --cb-shell-warning-soft: rgba(180, 83, 9, 0.12);
  --cb-shell-danger: #dc2626;
  --cb-shell-danger-soft: rgba(220, 38, 38, 0.12);
  --cb-shell-shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.06);
  --cb-shell-shadow: 0 22px 54px rgba(15, 23, 42, 0.12);
}

html {
  scroll-behavior: smooth;
}

body.app-enterprise {
  --cb-shell-sidebar-width: clamp(248px, 18vw, 288px);
  --cb-shell-header-height: clamp(72px, 5vw, 78px);
  --cb-shell-gutter: clamp(12px, 1.5vw, 22px);
  --cb-shell-content-max: 1680px;
  --cb-shell-content-pad: clamp(6px, 0.8vw, 12px);
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(36, 87, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 100% 0, rgba(192, 98, 64, 0.08), transparent 26rem),
    linear-gradient(180deg, #f8fbff 0%, #eef4f9 100%);
  color: var(--cb-shell-body);
  font-family: var(--cb-shell-font-sans);
  font-optical-sizing: auto;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.app-enterprise .page-wrapper {
  min-height: 100vh;
}

body.app-enterprise .page-wrapper .page-body-wrapper {
  margin-left: var(--cb-shell-sidebar-width) !important;
  min-height: 100vh;
  min-width: 0;
  padding: calc(var(--cb-shell-header-height) + 10px) var(--cb-shell-gutter) var(--cb-shell-gutter);
  background: transparent;
  transition: margin-left 0.25s ease, padding 0.25s ease;
}

body.app-enterprise .page-wrapper .page-body-wrapper .page-body {
  position: relative;
  width: min(100%, var(--cb-shell-content-max));
  margin-inline: auto;
  min-height: calc(100vh - var(--cb-shell-header-height) - 8rem);
  min-width: 0;
  padding: 4px var(--cb-shell-content-pad) calc(var(--cb-shell-gutter) + 2px);
}

body.app-enterprise.app-no-sidebar {
  background:
    radial-gradient(circle at top left, rgba(36, 87, 255, 0.08), transparent 28rem),
    linear-gradient(180deg, #fbfdff 0%, #f3f7fb 100%);
}

body.app-enterprise.app-no-sidebar .page-wrapper .page-body-wrapper {
  margin-left: 0 !important;
  padding-top: 22px;
  padding-inline: var(--cb-shell-gutter);
}

body.app-enterprise.app-no-sidebar .page-wrapper .page-body-wrapper .page-body {
  min-height: calc(100vh - 5rem);
  padding: 0 0 16px;
}

body.app-enterprise .page-wrapper,
body.app-enterprise .page-body-wrapper,
body.app-enterprise .page-body,
body.app-enterprise .page-body > *,
body.app-enterprise .page-body .row > [class*="col-"],
body.app-enterprise .page-body .d-flex > *,
body.app-enterprise .page-body .d-grid > *,
body.app-enterprise .page-body .tab-content > *,
body.app-enterprise .page-body .offcanvas-body > * {
  min-width: 0;
}

body.app-enterprise .page-body > .container,
body.app-enterprise .page-body > .container-fluid,
body.app-enterprise .page-body > .container-sm,
body.app-enterprise .page-body > .container-md,
body.app-enterprise .page-body > .container-lg,
body.app-enterprise .page-body > .container-xl,
body.app-enterprise .page-body > .container-xxl {
  width: 100%;
  max-width: 100%;
  padding-inline: clamp(2px, 0.4vw, 8px);
}

body.app-enterprise .page-body .card,
body.app-enterprise .page-body .table-responsive,
body.app-enterprise .page-body .chart-container,
body.app-enterprise .page-body .apexcharts-canvas,
body.app-enterprise .page-body canvas,
body.app-enterprise .page-body img,
body.app-enterprise .page-body svg,
body.app-enterprise .page-body form,
body.app-enterprise .page-body .input-group,
body.app-enterprise .page-body .select2,
body.app-enterprise .page-body .select2-container {
  max-width: 100%;
}

body.app-enterprise .page-body .card {
  border-radius: clamp(14px, 1.2vw, 18px);
}

body.app-enterprise .page-body .card .card-body {
  min-width: 0;
  overflow: visible;
}

body.app-enterprise .page-body .table-responsive {
  border-radius: clamp(14px, 1.2vw, 18px);
}

body.app-enterprise .page-body .form-control,
body.app-enterprise .page-body .form-select,
body.app-enterprise .page-body .form-check-input,
body.app-enterprise .page-body .btn,
body.app-enterprise .page-body .input-group-text {
  max-width: 100%;
}

body.app-enterprise .page-body .btn:not(.btn-sm):not(.btn-link),
body.app-enterprise .page-body .form-control,
body.app-enterprise .page-body .form-select {
  min-height: clamp(2.5rem, 2.35rem + 0.4vw, 2.85rem);
}

a {
  color: inherit;
  text-decoration: none;
}

.b-center,
.bg-size {
  background-position: center center;
}

.bg-size {
  background-repeat: no-repeat;
  background-size: cover;
}

.tap-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.92);
  color: #ffffff;
  box-shadow: var(--cb-shell-shadow);
  cursor: pointer;
  z-index: 1040;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.tap-top:hover,
.tap-top:focus {
  background: #0f172a;
  color: #ffffff;
  transform: translateY(-2px);
}

.tap-top i {
  font-size: 1rem;
  line-height: 1;
}

.f-light {
  color: var(--cb-shell-muted) !important;
}

.f-w-600 {
  font-weight: 600 !important;
}

.f-w-700 {
  font-weight: 700 !important;
}

.font-primary,
.txt-primary {
  color: var(--cb-shell-primary) !important;
}

.font-secondary,
.txt-secondary {
  color: var(--cb-shell-secondary) !important;
}

.txt-success {
  color: var(--cb-shell-success) !important;
}

.txt-warning {
  color: var(--cb-shell-warning) !important;
}

.txt-danger {
  color: var(--cb-shell-danger) !important;
}

.badge-light-primary,
.badge-light-secondary,
.badge-light-success,
.badge-light-warning,
.badge-light-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.badge-light-primary {
  color: var(--cb-shell-primary);
  background: var(--cb-shell-primary-soft);
  border-color: rgba(36, 87, 255, 0.14);
}

.badge-light-secondary {
  color: #9a3412;
  background: var(--cb-shell-secondary-soft);
  border-color: rgba(192, 98, 64, 0.16);
}

.badge-light-success {
  color: var(--cb-shell-success);
  background: var(--cb-shell-success-soft);
  border-color: rgba(21, 128, 61, 0.16);
}

.badge-light-warning {
  color: var(--cb-shell-warning);
  background: var(--cb-shell-warning-soft);
  border-color: rgba(180, 83, 9, 0.16);
}

.badge-light-danger {
  color: var(--cb-shell-danger);
  background: var(--cb-shell-danger-soft);
  border-color: rgba(220, 38, 38, 0.14);
}

.box-col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

.box-col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.box-col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.box-col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.box-col-5 {
  flex: 0 0 40%;
  max-width: 40%;
}

.box-col-7 {
  flex: 0 0 60%;
  max-width: 60%;
}

.box-col-8 {
  flex: 0 0 70%;
  max-width: 70%;
}

.box-col-4e {
  flex: 0 0 30%;
  max-width: 30%;
}

.box-col-8e {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.box-col-none {
  display: none !important;
}

body.app-enterprise .page-wrapper .app-topbar {
  position: fixed;
  top: 0;
  left: var(--cb-shell-sidebar-width);
  right: 0;
  width: auto;
  height: auto;
  z-index: 1030;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.app-enterprise .page-wrapper .app-topbar .header-wrapper {
    min-height: var(--cb-shell-header-height);
    padding-inline: max(16px, calc(var(--cb-shell-gutter) + 2px));
    border-bottom: 1px solid rgb(98 90 90 / 62%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.app-topbar__inner {
  min-height: var(--cb-shell-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-topbar__primary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
}

.app-topbar__titleblock {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
}

.app-topbar__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--cb-shell-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.app-topbar__eyebrow--date {
  width: fit-content;
  gap: 0.7rem;
  padding: 0.45rem 0.7rem 0.45rem 0.5rem;
  border: 1px solid rgba(36, 87, 255, 0.12);
  border-radius: 999px;
  background: rgba(36, 87, 255, 0.06);
  color: var(--cb-shell-ink);
  letter-spacing: 0;
  text-transform: none;
}

.app-topbar__eyebrow-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(36, 87, 255, 0.12);
  color: var(--cb-shell-primary);
}

.app-topbar__eyebrow-copy {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
  line-height: 1;
}

.app-topbar__eyebrow-copy strong {
  color: var(--cb-shell-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-topbar__eyebrow-copy small {
  color: var(--cb-shell-muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.app-topbar__title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
}

.app-topbar__title {
  margin: 0;
  font-family: var(--cb-shell-font-display);
  color: var(--cb-shell-ink);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.04;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-topbar__date-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--cb-shell-border);
  background: rgba(255, 255, 255, 0.88);
  color: var(--cb-shell-muted);
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: var(--cb-shell-shadow-sm);
}

.app-topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.82rem;
  flex: 0 0 auto;
}

.app-topbar__workspace,
.app-topbar__account {
  min-height: 48px;
}

.app-topbar__workspace {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.4rem 0.88rem 0.4rem 0.42rem;
}

.app-topbar__property-switch {
  margin: 0;
}

.app-topbar__workspace--switcher {
  padding-inline: 5px;
  margin: 0;
}

.app-topbar__workspace-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--cb-shell-primary-soft);
  color: var(--cb-shell-primary);
}

.app-topbar__workspace-copy,
.app-topbar__user-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.app-topbar__workspace-copy small,
.app-topbar__user-copy small {
  color: var(--cb-shell-muted);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-topbar__workspace-copy strong,
.app-topbar__user-copy strong {
  color: var(--cb-shell-ink);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.app-topbar__property-select-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.app-topbar__property-select-wrap::after {
  content: "\25be";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  color: var(--cb-shell-muted);
  font-size: 0.76rem;
  pointer-events: none;
}

.app-topbar__property-select {
  width: 100%;
  border: 0;
  padding: 0 1rem 0 0;
  background: transparent;
  color: var(--cb-shell-ink);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.app-topbar__property-select:focus {
  outline: none;
}

.app-topbar__account {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  padding: 0.34rem 0.62rem 0.34rem 0.34rem;
  color: var(--cb-shell-ink);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.app-topbar__account:hover,
.app-topbar__account:focus {
  color: var(--cb-shell-ink);
  border-color: rgba(36, 87, 255, 0.18);
  box-shadow: var(--cb-shell-shadow);
  transform: translateY(-1px);
}

.app-topbar__avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--cb-shell-primary) 0%, #5597ff 100%);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 24px rgba(36, 87, 255, 0.18);
}

.app-topbar__account-caret {
  color: #94a3b8;
  font-size: 0.76rem;
}

.app-topbar__menu,
.sidebar-mobile-user-dropdown {
  min-width: 15rem;
  padding: 0.5rem;
  border: 1px solid var(--cb-shell-border);
  border-radius: 20px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.1);
}

.app-topbar__menu-head {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.45rem 0.45rem 0.65rem;
}

.app-topbar__menu-head strong {
  color: var(--cb-shell-ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.app-topbar__menu-head span {
  color: var(--cb-shell-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.app-topbar__menu .dropdown-item,
.sidebar-mobile-user-dropdown .dropdown-item {
  border-radius: 14px;
  padding: 0.78rem 0.82rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.app-topbar__menu .dropdown-item:hover,
.sidebar-mobile-user-dropdown .dropdown-item:hover {
  background: var(--cb-shell-surface-muted);
  color: var(--cb-shell-ink);
}

body.app-enterprise .dashboard-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--cb-shell-sidebar-width);
  height: 100vh;
  padding: 0;
  z-index: 1020;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.97);
  border-right: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 16px 0 34px rgba(15, 23, 42, 0.06);
}

body.app-enterprise .dashboard-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  border-right: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.97);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  pointer-events: none;
}

body.app-enterprise .dashboard-sidebar > * {
  position: relative;
  z-index: 1;
}

body.app-enterprise .dashboard-sidebar .sidebar-header {
  min-height: var(--cb-shell-header-height);
  height: auto;
  padding: 0 18px 0 18px !important;
  background: transparent;
  border: 0 !important;
}

body.app-enterprise .dashboard-sidebar .sidebar-body {
  min-height: calc(100vh - var(--cb-shell-header-height));
  max-height: calc(100vh - var(--cb-shell-header-height));
  padding: 0;
}

.sidebar-brand {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
  gap: 0.85rem !important;
  padding: 0.2rem 0.4rem;
  border-radius: 22px;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-brand:hover {
  background: rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 0 0 1px rgba(36, 87, 255, 0.08);
  transform: translateX(1px);
}

.sidebar-logo-main {
  display: block;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  max-width: 52px;
  max-height: 52px;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 12px 24px rgba(36, 87, 255, 0.18));
}

.sidebar-logo-compact {
  display: none;
  width: 34px;
  height: 34px;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--cb-shell-surface-muted);
  border: 1px solid var(--cb-shell-border);
  padding: 0.28rem;
}

.sidebar-brand-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  line-height: 1;
}

.sidebar-brand-kicker {
  display: inline-flex;
  align-items: center;
  color: var(--cb-shell-primary);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-brand-name {
  font-family: var(--cb-shell-font-display);
  color: var(--cb-shell-ink);
  font-size: 1.03rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-scroll {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0;
}

.sidebar-scroll::-webkit-scrollbar {
  width: 10px;
}

.sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
  background-clip: padding-box;
}

.sidebar-menu-shell {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  margin-top: 0 !important;
}

.sidebar-group-toggle {
  min-height: 40px;
  padding: 0.52rem 0.66rem !important;
  border: none !important;
  border-radius: 14px;
  background: transparent;
  color: var(--cb-shell-muted);
  box-shadow: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.sidebar-group-toggle .badge {
  background: rgba(255, 255, 255, 0.94) !important;
  border-color: var(--cb-shell-border) !important;
  color: var(--cb-shell-muted) !important;
  box-shadow: var(--cb-shell-shadow-sm);
}

.sidebar-group-toggle .sidebar-chevron {
  color: var(--cb-shell-muted);
  transition: transform 0.18s ease;
}

.sidebar-pins .sidebar-group-toggle {
  background: rgba(255, 244, 217, 0.7);
}

[data-menu-group-body] .list-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-top: 0.08rem;
}

.sidebar-nav-item {
  position: relative;
}

.sidebar-nav-link {
  min-height: 50px;
  padding: 0.56rem 0.78rem !important;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: var(--cb-shell-body);
  gap: 0.68rem;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease;
}

body.app-enterprise .dashboard-sidebar .list-group-item:hover,
.sidebar-nav-link:hover {
  color: var(--cb-shell-ink);
  background: transparent;
  border-color: var(--cb-shell-border);
  box-shadow: var(--cb-shell-shadow-sm);
}

body.app-enterprise .dashboard-sidebar .list-group-item.active,
.sidebar-nav-item.active .sidebar-nav-link,
.sidebar-nav-link.active {
  color: var(--cb-shell-primary);
  background: rgba(36, 87, 255, 0.1);
  border-color: rgba(36, 87, 255, 0.16);
  box-shadow: 0 16px 28px rgba(36, 87, 255, 0.08);
}

.sidebar-nav-link__icon-wrap {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  color: var(--cb-shell-muted);
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-nav-link:hover .sidebar-nav-link__icon-wrap,
.sidebar-nav-item.active .sidebar-nav-link__icon-wrap,
.sidebar-nav-link.active .sidebar-nav-link__icon-wrap {
  background: transparent;
  color: var(--cb-shell-primary);
  transform: scale(1.03);
}

.sidebar-nav-link__icon {
  font-size: 0.9rem;
}

.sidebar-nav-link__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
}

.sidebar-nav-link__label {
  color: var(--cb-shell-ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-pin {
  position: absolute;
  top: 50%;
  right: 0.62rem;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border-radius: 10px;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  z-index: 2;
  transform: translateY(-50%);
  transition: opacity 0.18s ease, transform 0.18s ease, color 0.18s ease;
}

.sidebar-nav-item:hover .menu-pin,
.sidebar-nav-item.active .menu-pin,
.menu-pin.opacity-100 {
  opacity: 1;
}

.menu-pin:hover {
  transform: translateY(-50%) scale(1.03);
}

body.app-enterprise .dashboard-sidebar a:focus,
body.app-enterprise .dashboard-sidebar button:focus,
body.app-enterprise .dashboard-sidebar a:focus-visible,
body.app-enterprise .dashboard-sidebar button:focus-visible,
#sidebarOffcanvas a:focus,
#sidebarOffcanvas button:focus,
#sidebarOffcanvas a:focus-visible,
#sidebarOffcanvas button:focus-visible,
#superadminSidebarOffcanvas a:focus,
#superadminSidebarOffcanvas button:focus,
#superadminSidebarOffcanvas a:focus-visible,
#superadminSidebarOffcanvas button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

body.app-enterprise .dashboard-sidebar .sidebar-nav-link:focus,
body.app-enterprise .dashboard-sidebar .menu-pin:focus {
  background: transparent;
  border-color: transparent;
  color: inherit;
  transform: none;
}

#sidebarOffcanvas .sidebar-group-toggle:focus,
#superadminSidebarOffcanvas .sidebar-group-toggle:focus,
#sidebarOffcanvas .sidebar-mobile-user-menu:focus,
#superadminSidebarOffcanvas .sidebar-mobile-user-menu:focus {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(148, 163, 184, 0.18);
  color: #475569;
}

#sidebarOffcanvas .sidebar-mobile-user-dropdown .dropdown-item:focus,
#superadminSidebarOffcanvas .sidebar-mobile-user-dropdown .dropdown-item:focus {
  background: transparent;
  color: inherit;
}

#sidebarOffcanvas .sidebar-mobile-user-dropdown__danger:focus,
#superadminSidebarOffcanvas .sidebar-mobile-user-dropdown__danger:focus {
  background: transparent !important;
  color: #b91c1c !important;
}

.sidebar-empty-state {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.32rem;
  padding: 1rem;
  border: 1px dashed var(--cb-shell-border-strong);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--cb-shell-muted);
}

.sidebar-empty-state i {
  color: var(--cb-shell-primary);
  font-size: 1rem;
}

.sidebar-empty-state strong {
  color: var(--cb-shell-ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.sidebar-empty-state span {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.sidebar-empty-state--static {
  margin-top: 0.35rem;
}

body.app-enterprise .footer {
  margin-left: 0;
  padding: 0 10px 6px;
  background: transparent;
}

body.app-enterprise .footer .container-fluid {
  padding-inline: 10px;
}

body.app-enterprise .footer p {
  color: #8b98ab;
  font-size: 0.82rem;
  font-weight: 700;
}

.app-mobile-topbar {
  display: none;
}

.app-mobile-topbar__brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
}

.app-mobile-topbar__logo {
  display: block;
  width: auto;
  height: 36px;
  max-width: min(58vw, 180px);
  object-fit: contain;
  object-position: left center;
}

.sidebar-mobile-drawer {
  width: min(92vw, 372px);
  border-right: 0;
  background: #fbfdff;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.22);
}

.sidebar-mobile-drawer .offcanvas-header,
.sidebar-mobile-drawer__header {
  padding: 18px 18px 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sidebar-mobile-drawer__brand {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.sidebar-mobile-drawer__logo {
  display: block;
  width: auto;
  max-width: min(70vw, 214px);
  height: 40px;
  max-height: 40px;
  object-fit: contain;
  object-position: left center;
}

.sidebar-mobile-drawer__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.sidebar-mobile-drawer__nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 10px 10px 16px !important;
}

.sidebar-mobile-drawer .sidebar-group-toggle,
.sidebar-mobile-drawer .sidebar-group-toggle--mobile {
  min-height: 44px;
  padding: 0.68rem 0.82rem !important;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.sidebar-mobile-drawer .sidebar-nav-link,
.sidebar-mobile-drawer .sidebar-nav-link--mobile {
  min-height: 50px;
  padding: 0.58rem 0.82rem !important;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid transparent;
}

#sidebarOffcanvas .sidebar-nav-link:hover,
#superadminSidebarOffcanvas .sidebar-nav-link:hover {
  background: transparent;
}

#sidebarOffcanvas .list-group-item.active,
#superadminSidebarOffcanvas .list-group-item.active,
.sidebar-mobile-drawer .sidebar-nav-item.active .sidebar-nav-link,
.sidebar-mobile-drawer .sidebar-nav-link.active {
  color: var(--cb-shell-primary);
  background: rgba(36, 87, 255, 0.12);
  border-color: rgba(36, 87, 255, 0.16);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.08);
}

.sidebar-mobile-drawer .menu-pin {
  right: 0.72rem;
  opacity: 1;
}

.sidebar-mobile-drawer__footer {
  position: relative;
  margin-top: auto;
  width: 100%;
  padding: 10px 10px calc(env(safe-area-inset-bottom, 0px) + 10px) !important;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.05);
}

.sidebar-mobile-property-switch {
  margin-bottom: 10px;
}

.sidebar-mobile-property-switch__label {
  display: block;
  margin: 0 0 0.45rem;
  padding: 0 0.25rem;
  color: var(--cb-shell-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-mobile-property-switch__shell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.78rem 0.88rem;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.sidebar-mobile-property-switch__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--cb-shell-primary-soft);
  color: var(--cb-shell-primary);
}

.sidebar-mobile-property-switch__select {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--cb-shell-ink);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.sidebar-mobile-property-switch__select:focus {
  outline: none;
}

.sidebar-mobile-property-switch--dropdown {
  margin: 0;
  padding: 0.2rem 0.25rem 0.35rem;
}

.sidebar-mobile-user-dropdown__property-wrap {
  list-style: none;
}

.sidebar-mobile-user-dropdown .sidebar-mobile-property-switch__label {
  margin-bottom: 0.4rem;
  padding: 0 0.1rem;
  font-size: 0.66rem;
}

.sidebar-mobile-user-dropdown .sidebar-mobile-property-switch__shell {
  gap: 0.6rem;
  padding: 0.68rem 0.72rem;
  border-radius: 14px;
  box-shadow: none;
  border-color: rgba(148, 163, 184, 0.18);
}

.sidebar-mobile-user-dropdown .sidebar-mobile-property-switch__icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 12px;
}

.sidebar-mobile-user-dropdown .sidebar-mobile-property-switch__select {
  font-size: 0.88rem;
}

.sidebar-mobile-user-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.98);
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  box-shadow: 0 -12px 28px rgba(15, 23, 42, 0.05);
}

.sidebar-mobile-user-summary {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(239, 246, 255, 0.96);
  border: 1px solid rgba(191, 219, 254, 0.6);
}

.sidebar-mobile-user-summary .min-w-0,
.sidebar-mobile-user-copy,
.sidebar-mobile-user-line > * {
  min-width: 0;
}

.sidebar-mobile-user-avatar {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.98rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--cb-shell-primary);
  flex: 0 0 46px;
  border-radius: 14px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  background: rgba(219, 234, 254, 1);
}

.sidebar-mobile-user-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
}

.sidebar-mobile-user-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sidebar-mobile-user-name {
  flex: 0 1 auto;
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--cb-shell-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-mobile-user-separator,
.sidebar-mobile-user-property-inline {
  color: var(--cb-shell-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.sidebar-mobile-user-property-inline {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-mobile-user-menu {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
  color: #475569;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.sidebar-mobile-user-menu:hover,
.sidebar-mobile-user-menu.show {
  background: #eff6ff;
  border-color: rgba(96, 165, 250, 0.34);
  color: var(--cb-shell-primary);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.sidebar-mobile-user-dropdown {
  min-width: 190px;
  padding: 8px;
  margin-bottom: 10px !important;
}

.sidebar-mobile-user-dropdown__icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 28px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--cb-shell-primary);
}

.sidebar-mobile-user-dropdown__danger {
  color: #b91c1c !important;
}

.sidebar-mobile-user-dropdown__danger .sidebar-mobile-user-dropdown__icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--cb-shell-danger);
}

.sidebar-mobile-user-dropdown__danger:hover {
  background: linear-gradient(180deg, #fff7f7 0%, #fff1f2 100%) !important;
  color: #991b1b !important;
}

@media (max-width: 1439.98px) and (min-width: 1200px) {
  body.app-enterprise {
    --cb-shell-sidebar-width: 268px;
    --cb-shell-gutter: 14px;
  }
}

@media (max-width: 1199.98px) {
  body.app-enterprise {
    --cb-shell-header-height: 64px;
    --cb-shell-gutter: 12px;
  }

  body.app-enterprise .page-wrapper .page-body-wrapper {
    margin-left: 0 !important;
    padding: 0 var(--cb-shell-gutter) var(--cb-shell-gutter);
  }

  body.app-enterprise .page-wrapper .page-body-wrapper .page-body {
    min-height: auto;
    width: 100%;
    padding: 6px 0 calc(var(--cb-shell-gutter) + 2px);
  }

  .app-mobile-topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--cb-shell-header-height);
    padding: 12px var(--cb-shell-gutter) 8px;
    background: rgba(248, 251, 255, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .app-mobile-topbar__brand {
    padding: 0.68rem 0.84rem;
  }

  .app-mobile-nav-toggle {
    width: 48px;
    height: 48px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    border: 1px solid var(--cb-shell-border);
    background: rgba(255, 255, 255, 0.92);
    color: var(--cb-shell-ink);
    box-shadow: var(--cb-shell-shadow-sm);
  }

  .app-mobile-nav-toggle:hover,
  .app-mobile-nav-toggle:focus {
    color: var(--cb-shell-primary);
    border-color: rgba(36, 87, 255, 0.18);
  }

  body.app-enterprise .footer {
    padding-inline: 0;
  }
}

@media (max-width: 1320px) {
  .app-topbar__workspace {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .tap-top {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  body.app-enterprise .page-wrapper .page-body-wrapper {
    padding-inline: 0;
  }

  .sidebar-mobile-drawer {
    width: min(94vw, 344px);
  }

  .sidebar-mobile-drawer .offcanvas-header,
  .sidebar-mobile-drawer__header {
    padding: 16px 16px 12px;
  }

  .sidebar-mobile-drawer__search {
    padding-inline: 12px;
  }

  .sidebar-mobile-drawer__nav {
    padding: 8px 8px 14px !important;
  }

  .sidebar-mobile-drawer__footer {
    padding: 8px 8px calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
  }

  .sidebar-mobile-user-card {
    padding: 11px 10px;
  }

  .sidebar-mobile-user-summary {
    padding: 10px;
  }

  .sidebar-mobile-user-avatar {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 0.9rem;
  }
}

@media (max-width: 575.98px) {
  body.app-enterprise {
    --cb-shell-gutter: 10px;
  }

  .app-mobile-topbar__brand {
    padding: 0.62rem 0.74rem;
  }

  .app-mobile-topbar__logo {
    height: 34px;
    max-width: min(62vw, 156px);
  }

  .sidebar-mobile-user-dropdown {
    min-width: 176px;
  }
}

@media (max-width: 1199.98px) {
  .box-col-12,
  .box-col-6,
  .box-col-4,
  .box-col-3,
  .box-col-5,
  .box-col-7,
  .box-col-8,
  .box-col-4e,
  .box-col-8e {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
