/*
 * DrTime V67.1 — Staff application shell
 *
 * This file is the authoritative shell layer.
 * Do not move these rules back into legacy ui.css.
 */

/* ---------------------------------------------------------------
   Application canvas
---------------------------------------------------------------- */

html body:has(.drt-panel-theme-v31[data-drt-sidebar]) {
  color: #0a343a !important;
  background: #fbfaf7 !important;
  background-image: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] {
  min-height: 100vh;
  background: var(--drt-staff-bg) !important;
  background-image: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-main {
  min-height: 100vh !important;
  background: var(--drt-staff-bg) !important;
  background-image: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-main-stage {
  background: var(--drt-staff-bg) !important;
  background-image: none !important;
  padding: 1rem 1rem 1.35rem !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-page-surface {
  min-height: calc(100vh - 6.5rem);
  border: 1px solid var(--drt-staff-line) !important;
  border-radius: var(--drt-staff-radius-lg) !important;
  background: var(--drt-staff-surface) !important;
  background-image: none !important;
  box-shadow: 0 12px 36px rgba(9, 62, 69, 0.045) !important;
}

/* ---------------------------------------------------------------
   Sidebar
---------------------------------------------------------------- */

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
  padding: 0.72rem 0.68rem !important;

  color: var(--drt-staff-sidebar-ink) !important;
  background: var(--drt-staff-sidebar) !important;
  background-image:
    radial-gradient(circle at 80% 4%, rgba(110, 189, 182, 0.11), transparent 24%),
    linear-gradient(180deg, var(--drt-staff-sidebar-2) 0%, var(--drt-staff-sidebar) 54%, #05383e 100%) !important;
  border-color: rgba(4, 46, 52, 0.86) !important;
  filter: none !important;
}

html[dir="rtl"] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
  box-shadow: -12px 0 30px rgba(5, 44, 49, 0.10) !important;
}

html[dir="ltr"] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
  box-shadow: 12px 0 30px rgba(5, 44, 49, 0.10) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar::before {
  display: none !important;
  content: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar > * {
  position: relative;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-panel-brand-v31 {
  min-height: 2.9rem;
  padding: 0.18rem 0.34rem;
  color: var(--drt-staff-sidebar-ink) !important;
  text-decoration: none;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-panel-brand-mark-v31 {
  color: var(--drt-staff-sidebar) !important;
  background: var(--drt-staff-mint) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar .text-slate-900,
.drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar .text-xl {
  color: var(--drt-staff-sidebar-ink) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar .text-slate-600 {
  color: var(--drt-staff-sidebar-muted) !important;
}

/* ---------------------------------------------------------------
   User identity block
---------------------------------------------------------------- */

.drt-panel-theme-v31[data-drt-sidebar] .drt-user-card {
  margin-top: 0.5rem !important;
  padding: 0.48rem 0.58rem !important;
  gap: 0.5rem !important;

  color: var(--drt-staff-sidebar-ink) !important;
  background: var(--drt-staff-sidebar-panel-strong) !important;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.025), transparent 72%) !important;
  border: 1px solid rgba(220, 239, 238, 0.18) !important;
  border-radius: var(--drt-staff-radius-md) !important;

  box-shadow: none !important;
  backdrop-filter: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-user-avatar {
  color: var(--drt-staff-sidebar) !important;
  background: var(--drt-staff-mint) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-user-name {
  color: var(--drt-staff-sidebar-ink) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-user-meta {
  color: var(--drt-staff-sidebar-muted) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-user-link {
  color: var(--drt-staff-sidebar-muted) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-user-link:hover {
  color: var(--drt-staff-sidebar) !important;
  background: var(--drt-staff-mint) !important;
}

/* ---------------------------------------------------------------
   Navigation — workspace first
---------------------------------------------------------------- */

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar-scroll {
  margin-top: 0.44rem !important;
  padding-inline-end: 0.02rem;
  scrollbar-width: none !important;
  -ms-overflow-style: none;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar-scroll::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar-scroll::-webkit-scrollbar-button,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar-scroll::-webkit-scrollbar-button:single-button,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar-scroll::-webkit-scrollbar-button:vertical:decrement,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar-scroll::-webkit-scrollbar-button:vertical:increment {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-menu {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 0.32rem;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-section {
  padding: 0.34rem !important;

  background: var(--drt-staff-sidebar-panel) !important;
  border: 1px solid rgba(220, 239, 238, 0.10) !important;
  border-radius: 18px !important;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025) !important;
  backdrop-filter: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-label {
  margin: 0 0 0.24rem;
  padding-inline: 0.5rem;

  color: #b8d5d2 !important;

  font-size: 0.64rem;
  font-weight: 820;
  letter-spacing: 0.025em;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-items,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-workspace-items {
  display: grid;
  gap: 0.02rem;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item {
  position: relative;

  display: flex;
  min-height: 2.16rem;
  align-items: center;
  gap: 0.52rem;

  padding: 0.36rem 0.58rem;

  color: #dcecea !important;
  background: transparent !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;

  font-size: 0.80rem;
  font-weight: 620;

  box-shadow: none !important;
  transform: none !important;

  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item::before,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item::after {
  display: none !important;
  content: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item svg {
  color: #b9d7d4 !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item-icon {
  display: inline-flex;
  width: 1.42rem;
  height: 1.42rem;

  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  color: inherit;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(220, 239, 238, 0.06) !important;
  border-radius: 9px;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item:hover {
  color: #ffffff !important;
  background: rgba(238, 247, 246, 0.105) !important;
  border-color: rgba(220, 239, 238, 0.16) !important;

  box-shadow: none !important;
  transform: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item:hover svg {
  color: var(--drt-staff-mint) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active {
  color: var(--drt-staff-sidebar-active-ink) !important;
  background: var(--drt-staff-sidebar-active) !important;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.10), transparent 48%) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  border-inline-start: 4px solid var(--drt-staff-sidebar-active-accent) !important;

  font-weight: 860;

  box-shadow: 0 7px 18px rgba(3, 34, 38, 0.14) !important;
  transform: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active .drt-nav-item-icon {
  color: #ffffff !important;
  background: var(--drt-staff-sidebar) !important;
  border-color: rgba(7, 63, 69, 0.14) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active svg {
  color: #ffffff !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-badge {
  min-width: 1.45rem;
  padding: 0.12rem 0.4rem;

  color: var(--drt-staff-sidebar) !important;
  background: var(--drt-staff-mint) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px;

  box-shadow: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-badge.danger {
  color: #b42318 !important;
  background: #fff1f0 !important;
  border-color: #ffd0cc !important;
}

/* ---------------------------------------------------------------
   Management zone
---------------------------------------------------------------- */

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-management-zone {
  margin-top: 0.36rem;
  padding: 0.24rem;
  background: rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(220, 239, 238, 0.09);
  border-radius: 16px;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-disclosure {
  margin: 0 !important;
  padding: 0 !important;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;

  box-shadow: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-disclosure-summary {
  display: flex;
  min-height: 2.16rem;
  align-items: center;
  gap: 0.52rem;

  padding: 0.36rem 0.58rem;

  color: #e7f2f1 !important;
  background: transparent !important;
  background-image: none !important;
  border: 1px solid transparent !important;
  border-radius: 12px !important;

  font-size: 0.80rem;
  font-weight: 720;

  box-shadow: none !important;
  cursor: pointer;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-disclosure-summary:hover {
  color: #ffffff !important;
  background: var(--drt-staff-sidebar-hover) !important;
  border-color: var(--drt-staff-sidebar-line) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-disclosure-items {
  display: grid;
  gap: 0.15rem;

  margin-top: 0.12rem;
  padding-inline-start: 0.5rem;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-disclosure-caret {
  color: var(--drt-staff-sidebar-muted) !important;
  transition: transform 150ms ease;
}

.drt-panel-theme-v31[data-drt-sidebar] details[open] .drt-nav-disclosure-caret {
  transform: rotate(180deg);
}

/* ---------------------------------------------------------------
   Logout
---------------------------------------------------------------- */

.drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar-logout-v31 {
  color: #e4f0ef !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border: 1px solid rgba(220, 239, 238, 0.18) !important;

  box-shadow: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar-logout-v31:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.10) !important;
  border-color: rgba(255, 255, 255, 0.26) !important;
}

/* ---------------------------------------------------------------
   Top bar — quiet, light and operational
---------------------------------------------------------------- */

.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-stage {
  padding: 0 !important;

  background: rgba(251, 250, 247, 0.96) !important;
  background-image: none !important;
  border: 0 !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar {
  margin: 0 !important;

  background: rgba(255, 255, 255, 0.97) !important;
  background-image: none !important;
  border: 0 !important;
  border-bottom: 1px solid var(--drt-staff-line) !important;
  border-radius: 0 !important;

  box-shadow: none !important;
  backdrop-filter: blur(14px);

  overflow: visible !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar::before,
.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar::after {
  display: none !important;
  content: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-layout {
  min-height: 4.05rem;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-panel-page-mark-v31 {
  color: var(--drt-staff-primary) !important;
  background: var(--drt-staff-mint-soft) !important;
  border: 1px solid var(--drt-staff-line) !important;

  box-shadow: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-page-title,
.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar--compact-title .drt-topbar-page-title {
  color: var(--drt-staff-ink) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-context-meta {
  color: var(--drt-staff-muted) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-search {
  color: #587275 !important;
  background: #fbfdfc !important;
  background-image: none !important;
  border: 1px solid var(--drt-staff-line) !important;

  box-shadow: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-search:focus-within {
  border-color: #93beba !important;
  box-shadow: 0 0 0 4px rgba(11, 112, 120, 0.08) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-search input {
  color: var(--drt-staff-ink) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-search input::placeholder {
  color: #87999b !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-pill,
.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-icon-button,
.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-branch-form {
  color: #426064 !important;
  background: var(--drt-staff-surface) !important;
  background-image: none !important;
  border-color: var(--drt-staff-line) !important;

  box-shadow: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-pill:hover,
.drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-icon-button:hover {
  color: var(--drt-staff-primary) !important;
  background: var(--drt-staff-mint-soft) !important;
  border-color: var(--drt-staff-line-strong) !important;

  transform: none !important;
}

/* ---------------------------------------------------------------
   Mobile
---------------------------------------------------------------- */

.drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar-overlay-v56 {
  background: rgba(10, 52, 58, 0.28) !important;
  backdrop-filter: blur(2px);
}

@media (max-width: 767px) {
  .drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item,
  .drt-panel-theme-v31[data-drt-sidebar] .drt-nav-disclosure-summary {
    min-height: 2.75rem;
    padding: 0.58rem 0.7rem;
    font-size: 0.84rem;
  }

  .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
    box-shadow: 0 24px 70px rgba(9, 62, 69, 0.16) !important;
  }

  html[dir="rtl"] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
    box-shadow: -12px 0 42px rgba(9, 62, 69, 0.16) !important;
  }

  html[dir="ltr"] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
    box-shadow: 12px 0 42px rgba(9, 62, 69, 0.16) !important;
  }

  .drt-panel-theme-v31[data-drt-sidebar] .drt-main-stage {
    padding: 0.7rem !important;
  }

  .drt-panel-theme-v31[data-drt-sidebar] .drt-page-surface {
    min-height: calc(100vh - 5.5rem);

    border-radius: var(--drt-staff-radius-md) !important;
  }

  .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-layout {
    min-height: 4rem;
    padding-inline: 0.75rem !important;
  }
}


@media (min-width: 768px) {
  html[dir="rtl"] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
    width: 17rem !important;
  }

  html[dir="rtl"] .drt-panel-theme-v31[data-drt-sidebar] .drt-main {
    padding-right: 17rem !important;
  }

  html[dir="ltr"] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
    width: 17rem !important;
  }

  html[dir="ltr"] .drt-panel-theme-v31[data-drt-sidebar] .drt-main {
    padding-left: 17rem !important;
  }
}

@media (min-width: 1024px) {
  .drt-panel-theme-v31[data-drt-sidebar] .drt-main-stage {
    padding: 1.2rem 1.35rem 1.5rem !important;
  }
}

/* ---------------------------------------------------------------
   V67.2 — stronger topbar distinction
---------------------------------------------------------------- */

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-stage {
  background: #dfeeea !important;
  border-bottom: 1px solid #b8d3cf !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.22), rgba(255,255,255,0.58)),
    #e5f1ee !important;
  border-bottom: 1px solid #93bdb8 !important;
  box-shadow:
    0 1px 0 rgba(7, 88, 97, 0.05),
    0 10px 24px rgba(9, 62, 69, 0.055) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-layout {
  position: relative;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-layout::after {
  position: absolute;
  inset-inline: 0;
  bottom: -1px;
  height: 3px;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(7, 88, 97, 0.06),
    rgba(7, 88, 97, 0.62),
    rgba(190, 164, 93, 0.26),
    rgba(7, 88, 97, 0.08)
  );
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-context {
  padding: 0.28rem 0.46rem;
  border-radius: 12px;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-page-title {
  color: #073f46 !important;
  font-weight: 900 !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-search,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-pill,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-icon-button,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-branch-form {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: #c5dcda !important;
}

/* ---------------------------------------------------------------
   V67.2 iteration 4 — desktop sidebar collapse + richer topbar
---------------------------------------------------------------- */

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-stage {
  background:
    linear-gradient(90deg, #eef8f6 0%, #e6f3f0 58%, #f8f4e8 138%) !important;
  border-bottom-color: #b8d6d2 !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar {
  background:
    linear-gradient(90deg, rgba(242, 249, 247, 0.98), rgba(232, 244, 241, 0.98)) !important;
  box-shadow:
    0 1px 0 rgba(7, 88, 97, 0.05),
    0 9px 28px rgba(9, 62, 69, 0.065) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-search {
  box-shadow: 0 5px 18px rgba(9, 62, 69, 0.045) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-layout::after {
  background: linear-gradient(
    90deg,
    rgba(190, 164, 93, 0.12),
    rgba(11, 112, 120, 0.7),
    rgba(7, 88, 97, 0.34),
    rgba(190, 164, 93, 0.18)
  );
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar-toggle-v672 {
  display: inline-flex !important;
}

@media (min-width: 768px) {
  .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar,
  .drt-panel-theme-v31[data-drt-sidebar] .drt-main {
    transition:
      width 180ms ease,
      padding 180ms ease !important;
  }

  html[dir] .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-sidebar {
    width: 5.4rem !important;
    padding-inline: 0.55rem !important;
  }

  html[dir="rtl"] .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-main {
    padding-right: 5.4rem !important;
  }

  html[dir="ltr"] .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-main {
    padding-left: 5.4rem !important;
  }

  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-panel-brand-v31 {
    width: 100%;
    justify-content: center;
  }

  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-panel-brand-v31 > div,
  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-user-card .min-w-0,
  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-user-link,
  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-nav-label,
  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-nav-item > .flex-1,
  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-nav-disclosure-summary > .flex-1,
  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-nav-disclosure-caret,
  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-nav-badge {
    display: none !important;
  }

  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-user-card {
    justify-content: center;
    padding: 0.5rem !important;
  }

  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-nav-section,
  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-nav-management-zone {
    padding-inline: 0.22rem !important;
  }

  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-nav-item,
  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-nav-disclosure-summary {
    justify-content: center;
    gap: 0;
    padding-inline: 0.35rem !important;
    border-inline-start-width: 1px !important;
  }

  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-nav-disclosure-items {
    padding-inline-start: 0 !important;
  }

  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-sidebar-logout-v31 {
    gap: 0 !important;
    overflow: hidden;
    font-size: 0 !important;
  }

  .drt-panel-theme-v31[data-drt-sidebar].is-sidebar-collapsed .drt-sidebar-logout-v31 svg {
    width: 1rem;
    height: 1rem;
  }
}

/* ---------------------------------------------------------------
   V67.2 iteration 5 — warmer topbar energy
---------------------------------------------------------------- */

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-stage {
  background:
    linear-gradient(90deg, #e7f5f2 0%, #e1f0ec 46%, #f6efd9 112%) !important;
  border-bottom-color: #b1d2ce !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar {
  background:
    linear-gradient(90deg, rgba(250, 253, 252, 0.98), rgba(238, 248, 245, 0.98) 58%, rgba(252, 247, 234, 0.98) 120%) !important;
  border-bottom-color: #8fbcb7 !important;
  box-shadow:
    0 1px 0 rgba(7, 88, 97, 0.06),
    0 14px 30px rgba(9, 62, 69, 0.07) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-layout::after {
  background: linear-gradient(
    90deg,
    rgba(217, 189, 118, 0.12),
    rgba(11, 112, 120, 0.82),
    rgba(66, 182, 194, 0.45),
    rgba(217, 189, 118, 0.28)
  );
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-context {
  background: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(200, 220, 216, 0.8);
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-search,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-pill,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-icon-button,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-branch-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 249, 0.92)) !important;
}

/* ---------------------------------------------------------------
   V67.2 iteration 6 — refined shell palette
---------------------------------------------------------------- */

html body:has(.drt-panel-theme-v31[data-drt-sidebar]) {
  background: #f7fafc !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
  background:
    radial-gradient(circle at 82% 3%, rgba(98, 194, 202, 0.18), transparent 22%),
    linear-gradient(180deg, #0f5261 0%, #0d4558 52%, #0a3446 100%) !important;
  border-color: rgba(7, 44, 60, 0.92) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-user-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)) !important;
  border-color: rgba(228, 243, 246, 0.18) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-section {
  border-color: rgba(216, 234, 238, 0.14) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item:hover,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-disclosure-summary:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active {
  color: #11465b !important;
  background: linear-gradient(90deg, #f4fbfd, #eaf7fb) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  border-inline-start-color: #76d3d0 !important;
  box-shadow: 0 12px 26px rgba(10, 52, 70, 0.12) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active .drt-nav-item-icon,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active svg {
  color: #126178 !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar-logout-v31 {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(223, 239, 244, 0.18) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-stage {
  background: linear-gradient(90deg, #eef6fb 0%, #f6fbfc 50%, #f8fbff 100%) !important;
  border-bottom-color: #c8dbe4 !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar {
  background: linear-gradient(90deg, rgba(255,255,255,0.98), rgba(244,250,252,0.98) 58%, rgba(247,249,255,0.98) 100%) !important;
  border-bottom-color: #b7cfda !important;
  box-shadow:
    0 1px 0 rgba(17, 70, 91, 0.05),
    0 14px 26px rgba(17, 70, 91, 0.05) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-layout::after {
  background: linear-gradient(90deg, rgba(24, 76, 101, 0.78), rgba(74, 156, 245, 0.42), rgba(99, 199, 198, 0.46));
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-context {
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(205, 223, 232, 0.9);
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-search,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-pill,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-icon-button,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-branch-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,252,0.96)) !important;
  border-color: rgba(201, 218, 226, 0.95) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-page-surface {
  background: linear-gradient(180deg, #ffffff, #fbfdfe) !important;
  border-color: #d6e2e8 !important;
}

/* ---------------------------------------------------------------
   V67.2 iteration 7 — global sidebar/theme harmonization
---------------------------------------------------------------- */

html body:has(.drt-panel-theme-v31[data-drt-sidebar]) {
  background: #f8fbfb !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
  background:
    radial-gradient(circle at 15% 0%, rgba(134, 214, 194, 0.18), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(109, 177, 209, 0.14), transparent 22%),
    linear-gradient(180deg, #163847 0%, #133241 48%, #102938 100%) !important;
  border-color: rgba(15, 42, 56, 0.95) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-user-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)) !important;
  border-color: rgba(227, 239, 238, 0.16) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-disclosure-summary {
  color: rgba(241, 248, 247, 0.92) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item:hover,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-disclosure-summary:hover {
  background: rgba(255, 255, 255, 0.09) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active {
  color: #143947 !important;
  background: linear-gradient(90deg, #f7fcfb, #e7f6f1) !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  border-inline-start-color: #79ceb8 !important;
  box-shadow: 0 12px 24px rgba(11, 33, 45, 0.16) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active .drt-nav-item-icon,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active svg {
  color: #1a6a78 !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-section-title,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-section-caption {
  color: rgba(201, 223, 220, 0.78) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar-logout-v31 {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(223, 239, 244, 0.15) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-stage {
  background: linear-gradient(90deg, #edf6f4 0%, #f5faf8 54%, #faf7ee 100%) !important;
  border-bottom-color: #bfd4d2 !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 247, 0.98) 62%, rgba(252, 248, 239, 0.98) 100%) !important;
  border-bottom-color: #afcac6 !important;
  box-shadow:
    0 1px 0 rgba(20, 57, 71, 0.05),
    0 14px 28px rgba(18, 50, 65, 0.055) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-layout::after {
  background: linear-gradient(90deg, rgba(22, 56, 71, 0.72), rgba(56, 140, 149, 0.50), rgba(121, 206, 184, 0.50), rgba(227, 199, 133, 0.36));
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-context {
  background: rgba(255, 255, 255, 0.50);
  border-color: rgba(197, 217, 214, 0.92);
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-search,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-pill,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-icon-button,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-branch-form {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.97)) !important;
  border-color: rgba(192, 212, 211, 0.95) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-page-surface {
  background: linear-gradient(180deg, #fffefd, #fbfdfd) !important;
  border-color: #d7e4e2 !important;
}

/* ---------------------------------------------------------------
   V67.2 iteration 8 — clinical blue global shell
---------------------------------------------------------------- */

html body:has(.drt-panel-theme-v31[data-drt-sidebar]) {
  background: #f7fafc !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
  background:
    radial-gradient(circle at 12% 0%, rgba(96, 180, 223, 0.18), transparent 24%),
    radial-gradient(circle at 90% 22%, rgba(127, 194, 224, 0.10), transparent 22%),
    linear-gradient(180deg, #174a70 0%, #123c5c 52%, #0e2f49 100%) !important;
  border-color: rgba(10, 40, 61, 0.96) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-user-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)) !important;
  border-color: rgba(222, 237, 247, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-disclosure-summary {
  color: rgba(246, 251, 255, 0.94) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item:hover,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-disclosure-summary:hover {
  background: rgba(255, 255, 255, 0.10) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active {
  color: #123c5c !important;
  background: linear-gradient(90deg, #f6fbff, #e8f3fa) !important;
  border-color: rgba(255, 255, 255, 0.24) !important;
  border-inline-start-color: #60b4df !important;
  box-shadow: 0 12px 24px rgba(8, 35, 54, 0.17) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active .drt-nav-item-icon,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active svg {
  color: #1f6f9f !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-section-title,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-section-caption {
  color: rgba(190, 213, 229, 0.82) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar-logout-v31 {
  background: rgba(255, 255, 255, 0.065) !important;
  border-color: rgba(222, 237, 247, 0.16) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-stage {
  background: linear-gradient(90deg, #edf5fa 0%, #f5f9fc 55%, #f9fbfd 100%) !important;
  border-bottom-color: #c2d7e5 !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar {
  background: linear-gradient(90deg, rgba(255,255,255,0.99), rgba(242,248,252,0.99) 64%, rgba(248,251,253,0.99) 100%) !important;
  border-bottom-color: #aac7d9 !important;
  box-shadow:
    0 1px 0 rgba(18, 60, 92, 0.05),
    0 14px 28px rgba(18, 60, 92, 0.055) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-layout::after {
  background: linear-gradient(90deg, rgba(18, 60, 92, 0.78), rgba(47, 134, 186, 0.55), rgba(96, 180, 223, 0.48));
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-context {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(194, 216, 230, 0.94);
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-search,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-pill,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-icon-button,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-branch-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(246,250,252,0.98)) !important;
  border-color: rgba(191, 212, 225, 0.96) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-page-surface {
  background: linear-gradient(180deg, #ffffff, #fbfdff) !important;
  border-color: #d7e4ed !important;
}

/* ---------------------------------------------------------------
   V67.2.8.1 repair — Soft Clinical Blue global shell
---------------------------------------------------------------- */

html body:has(.drt-panel-theme-v31[data-drt-sidebar]),
.drt-panel-theme-v31[data-drt-sidebar],
.drt-panel-theme-v31[data-drt-sidebar] .drt-main,
.drt-panel-theme-v31[data-drt-sidebar] .drt-main-stage {
  background: #F6F8FA !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
  color: #F7FAFC !important;
  background: #244B6A !important;
  background-image: none !important;
  border-color: #1E405B !important;
}

html[dir="rtl"] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
  box-shadow: -10px 0 26px rgba(33, 53, 71, 0.09) !important;
}

html[dir="ltr"] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
  box-shadow: 10px 0 26px rgba(33, 53, 71, 0.09) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-user-card {
  background: rgba(255, 255, 255, 0.075) !important;
  background-image: none !important;
  border-color: rgba(230, 240, 247, 0.16) !important;
  box-shadow: none !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-disclosure-summary {
  color: #F7FAFC !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item:hover,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-disclosure-summary:hover {
  background: #2D5A7C !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active {
  color: #163E5C !important;
  background: #E6F0F7 !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  border-inline-start-color: #5A91B8 !important;
  box-shadow: 0 8px 18px rgba(22, 62, 92, 0.12) !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active .drt-nav-item-icon,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item.is-active svg {
  color: #3D78A3 !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-section-title,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-section-caption,
.drt-panel-theme-v31[data-drt-sidebar] .drt-user-meta,
.drt-panel-theme-v31[data-drt-sidebar] .drt-user-link {
  color: #C7D6E1 !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar-logout-v31 {
  color: #F7FAFC !important;
  background: rgba(255, 255, 255, 0.055) !important;
  border-color: rgba(230, 240, 247, 0.16) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-stage {
  background: #F2F6F9 !important;
  border-bottom-color: #D9E3EA !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar {
  background: #FBFCFD !important;
  background-image: none !important;
  border-bottom-color: #C4D3DE !important;
  box-shadow:
    0 1px 0 rgba(33, 53, 71, 0.04),
    0 10px 22px rgba(33, 53, 71, 0.045) !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-layout::after {
  background: #5A91B8 !important;
  opacity: 0.72;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-context,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-search,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-pill,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-icon-button,
html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-branch-form {
  background: #FFFFFF !important;
  background-image: none !important;
  border-color: #D9E3EA !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-page-surface {
  background: #FFFFFF !important;
  background-image: none !important;
  border-color: #D9E3EA !important;
  box-shadow: 0 12px 30px rgba(33, 53, 71, 0.04) !important;
}


/* ---------------------------------------------------------------
   V67.2.8.2 final polish — approved Soft Clinical Blue shell
---------------------------------------------------------------- */

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-sidebar {
  background: #2A5270 !important;
  border-color: #244762 !important;
}

.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-item:hover,
.drt-panel-theme-v31[data-drt-sidebar] .drt-nav-disclosure-summary:hover {
  background: #345F7E !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-stage {
  background: #F4F8FB !important;
  border-bottom-color: #D9E3EA !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar {
  background: #FBFCFD !important;
  border-bottom-color: #BFD2DF !important;
}

html[dir] .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-layout::after {
  background: #5A91B8 !important;
  opacity: 0.58;
}


/* ---------------------------------------------------------------
   V68.UI6 — navigation and workflow discoverability
---------------------------------------------------------------- */
@media (max-width: 767px) {
  .drt-panel-theme-v31[data-drt-sidebar] .drt-topbar-quick-actions .drt-topbar-menu--wide {
    width: min(22rem, calc(100vw - 1rem));
    min-width: 0;
    max-width: calc(100vw - 1rem);
  }
}
