/*!
 * DES Lexa Digital UI shell — Inter + Material Symbols
 */
:root {
  --des-primary: #004e9f;
  --des-primary-dark: #00458e;
  --des-primary-soft: #d7e3ff;
  --des-secondary: #4648d4;
  --des-success: #16a34a;
  --des-success-soft: #dcfce7;
  --des-warning: #ca8a04;
  --des-warning-soft: #fef9c3;
  --des-danger: #ba1a1a;
  --des-danger-soft: #ffdad6;
  --des-info: #0284c7;
  --des-info-soft: #e0f2fe;
  --des-dark: #0b1c30;
  --des-gray-100: #f8f9ff;
  --des-gray-200: #e5eeff;
  --des-gray-300: #c1c6d5;
  --des-gray-400: #727784;
  --des-gray-500: #727784;
  --des-gray-600: #414753;
  --des-gray-700: #414753;
  --des-gray-800: #0b1c30;
  --des-sidebar-width: 260px;
  --des-sidebar-mini: 78px;
  --des-header-height: 64px;
  --des-radius: .75rem;
  --des-radius-sm: .5rem;
  --des-shadow: 0 4px 12px rgba(0, 0, 0, .03);
  --des-shadow-lg: 0 8px 24px rgba(0, 0, 0, .06);
  --des-font: "Inter", "Segoe UI", sans-serif;
  --des-font-display: "Inter", "Segoe UI", sans-serif;
  --des-ease: cubic-bezier(.4,0,.2,1);
}

* { box-sizing: border-box; }

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none;
}

body.des-body {
  margin: 0;
  font-family: var(--des-font);
  letter-spacing: -0.011em;
  background: #f8f9ff;
  color: var(--des-gray-800);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--des-primary); text-decoration: none; transition: color .2s var(--des-ease); }
a:hover { color: var(--des-primary-dark); }

.des-app { display: flex; min-height: 100vh; }

/* Sidebar — light Metronic */
.des-sidebar {
  width: var(--des-sidebar-width);
  background: #ffffff;
  color: var(--des-gray-700);
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--des-gray-200);
  box-shadow: none;
  transition: width .25s var(--des-ease);
  overflow: hidden;
}

.des-sidebar-brand {
  min-height: var(--des-header-height);
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem .65rem .7rem .85rem;
  border-bottom: 1px solid var(--des-gray-200);
  position: relative;
}

.des-brand-link {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
}

.des-brand-link:hover {
  color: inherit;
}

.des-logo {
  display: block;
  width: auto;
  object-fit: contain;
  object-position: left center;
}

.des-logo-mark {
  width: 42px;
  height: 42px;
  object-fit: cover;
  object-position: 6% center;
  border-radius: .55rem;
  flex-shrink: 0;
  background: #e8f1ff;
}

.des-logo-sidebar {
  height: 40px;
  max-width: 168px;
}

.des-logo-header {
  height: 36px;
  max-width: 220px;
}

.des-header-logo-link {
  display: inline-flex;
  align-items: center;
  color: inherit;
}

.des-header-logo-link:hover {
  color: inherit;
}

.des-brand-text {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  transition: opacity .2s var(--des-ease);
  line-height: 1.15;
}

.des-sidebar-brand .logo-text {
  display: block;
  font-family: var(--des-font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f2744;
  letter-spacing: .04em;
  line-height: 1.05;
  text-transform: uppercase;
}

.des-sidebar-brand .logo-sub {
  display: block;
  font-size: .58rem;
  color: #6b7c90;
  font-weight: 600;
  margin-top: .12rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.des-sidebar-collapse-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--des-gray-300);
  background: #fff;
  color: var(--des-gray-600);
  border-radius: .5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all .2s var(--des-ease);
}

.des-sidebar-collapse-btn:hover {
  color: var(--des-primary);
  border-color: var(--des-primary);
  background: var(--des-primary-soft);
}

.des-sidebar-collapse-btn svg,
.des-sidebar-collapse-btn .material-symbols-outlined {
  width: 1.15rem;
  height: 1.15rem;
  font-size: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s var(--des-ease);
}

.des-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: .4rem;
  background: var(--des-primary);
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
}

.des-brand-mark .material-symbols-outlined {
  font-size: 1.25rem;
}

.des-menu {
  list-style: none;
  margin: .65rem 0;
  padding: 0 .85rem 1rem;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

.des-menu-section {
  font-size: .625rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--des-gray-400);
  padding: .95rem .75rem .35rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}

.des-menu a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem .85rem;
  border-radius: .65rem;
  color: var(--des-gray-700);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .12rem;
  transition: all .2s var(--des-ease);
  position: relative;
  white-space: nowrap;
}

.des-menu a:hover {
  background: #dce9ff;
  color: var(--des-primary);
  transform: none;
}

.des-menu a.active {
  background: #eef4ff;
  color: var(--des-primary);
  box-shadow: none;
  font-weight: 600;
}

.des-menu a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: .65rem 0 0 .65rem;
  background: var(--des-primary);
}

.des-menu a.active:hover {
  background: #e5eeff;
  color: var(--des-primary);
}

.des-menu .menu-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .95;
  flex-shrink: 0;
}

.des-menu .menu-icon svg,
.des-menu .menu-icon .material-symbols-outlined {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.des-menu .menu-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.des-sidebar-foot {
  padding: .75rem .85rem 1.1rem;
  border-top: 1px solid var(--des-gray-200);
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.des-sidebar-foot a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .65rem .85rem;
  border-radius: .65rem;
  color: var(--des-gray-700);
  font-weight: 600;
  font-size: .9rem;
  transition: all .15s var(--des-ease);
}

.des-sidebar-foot a:hover {
  background: var(--des-gray-100);
  color: var(--des-primary);
}

.des-sidebar-foot a.is-logout {
  color: var(--des-danger);
}

.des-sidebar-foot a.is-logout:hover {
  background: var(--des-danger-soft);
  color: #93000a;
}

.des-sidebar-foot a svg,
.des-sidebar-foot a .material-symbols-outlined {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 1.25rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.des-sidebar-foot-text {
  display: none;
}

.des-sidebar-backdrop {
  display: none;
}

/* Collapsed (mini) sidebar */
body.aside-minimize .des-sidebar {
  width: var(--des-sidebar-mini);
}

body.aside-minimize .des-main {
  margin-left: var(--des-sidebar-mini);
}

body.aside-minimize .des-brand-text,
body.aside-minimize .des-menu-section,
body.aside-minimize .menu-title,
body.aside-minimize .des-sidebar-foot-text {
  opacity: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

body.aside-minimize .des-logo-mark {
  width: 40px;
  height: 40px;
  object-position: 6% center;
}

body.aside-minimize .des-logo-sidebar {
  height: 40px;
  width: 40px;
  max-width: 40px;
  object-fit: cover;
  object-position: 8% center;
}

body.aside-minimize .des-sidebar-brand {
  justify-content: center;
  padding: 1.1rem .6rem;
  gap: 0;
}

body.aside-minimize .des-brand-link {
  flex: 0 0 auto;
  justify-content: center;
}

body.aside-minimize .des-sidebar-collapse-btn {
  position: absolute;
  right: .45rem;
  top: .85rem;
  width: 26px;
  height: 26px;
}

body.aside-minimize .des-sidebar-collapse-btn svg,
body.aside-minimize .des-sidebar-collapse-btn .material-symbols-outlined {
  transform: rotate(180deg);
}

body.aside-minimize .des-brand-mark {
  width: 40px;
  height: 40px;
}

body.aside-minimize .des-menu {
  padding: .75rem .55rem;
}

body.aside-minimize .des-menu a {
  justify-content: center;
  padding: .8rem 0;
  gap: 0;
}

body.aside-minimize .des-menu a:hover {
  transform: none;
}

body.aside-minimize .des-menu a::after,
body.aside-minimize .des-sidebar-foot a::after {
  content: attr(data-title);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--des-dark);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .4rem .6rem;
  border-radius: .45rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  transition: opacity .15s var(--des-ease);
  z-index: 120;
}

body.aside-minimize .des-sidebar-foot a {
  position: relative;
  justify-content: center;
  padding: .7rem 0;
}

body.aside-minimize .des-sidebar-foot a:hover::after {
  opacity: 1;
}

body.aside-minimize .des-menu a:hover::after {
  opacity: 1;
}

body.aside-minimize .des-sidebar-foot {
  padding: .75rem;
  text-align: center;
}

.des-main {
  margin-left: var(--des-sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: margin-left .25s var(--des-ease);
}

.des-header {
  min-height: var(--des-header-height);
  height: var(--des-header-height);
  background: #ffffff;
  border-bottom: 1px solid var(--des-gray-300);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  overflow: visible;
}

.des-header-brand-line {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.des-header-app-name {
  margin: 0;
  font-family: var(--des-font-display);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--des-primary);
  letter-spacing: -.02em;
}

.des-session-pill {
  display: inline-flex;
  align-items: center;
  padding: .25rem .75rem;
  border-radius: 2rem;
  background: #eff4ff;
  color: var(--des-primary);
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}

.des-header-actions {
  display: flex;
  align-items: center;
  gap: .55rem;
}

.des-icon-round {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--des-gray-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s var(--des-ease);
}

.des-icon-round:hover {
  color: var(--des-primary);
  border-color: var(--des-primary);
  background: var(--des-primary-soft);
}

.des-icon-round svg,
.des-icon-round .material-symbols-outlined {
  width: 1.25rem;
  height: 1.25rem;
  font-size: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Header toggle */
.des-header-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .9rem;
  flex: 1;
}

.des-header-copy {
  min-width: 0;
  flex: 1;
}

.des-sidebar-toggle {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: .5rem;
  border: 0;
  background: transparent;
  color: var(--des-gray-600);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  transition: all .15s var(--des-ease);
}

.des-sidebar-toggle:hover {
  border-color: var(--des-primary);
  color: var(--des-primary);
  background: var(--des-primary-soft);
}

.des-sidebar-toggle svg,
.des-sidebar-toggle .material-symbols-outlined {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 1.35rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.des-breadcrumb {
  margin-bottom: .3rem;
}

.des-breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem;
}

.des-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: .15rem;
  font-size: .75rem;
  color: var(--des-gray-500);
  font-weight: 600;
}

.des-breadcrumb-link {
  color: var(--des-primary) !important;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}

.des-breadcrumb-link:hover {
  color: var(--des-primary-dark) !important;
  border-bottom-color: var(--des-primary);
}

.des-breadcrumb-current {
  color: var(--des-gray-700);
  font-weight: 700;
}

.des-breadcrumb-item.is-current .des-breadcrumb-current {
  color: var(--des-gray-800);
}

.des-breadcrumb-sep {
  display: inline-flex;
  color: var(--des-gray-400);
  margin: 0 .12rem;
}

.des-breadcrumb-sep svg {
  width: .85rem;
  height: .85rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.des-header-title {
  font-size: 1.25rem;
  font-weight: 780;
  color: var(--des-dark);
  margin: 0;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.des-header-sub {
  margin: .2rem 0 0;
  color: var(--des-gray-600);
  font-size: .82rem;
  line-height: 1.35;
}

.des-user-chip {
  display: flex;
  align-items: center;
  gap: .85rem;
  flex-shrink: 0;
  padding-left: 1rem;
  border-left: 1px solid var(--des-gray-300);
}

.des-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--des-secondary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .8rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
  cursor: pointer;
}

.des-user-meta { line-height: 1.25; text-align: right; }
.des-user-meta strong { display: block; font-size: .75rem; font-weight: 600; color: var(--des-dark); letter-spacing: .04em; }
.des-user-meta .des-badge { margin-top: .15rem; }
.des-user-meta .role-line {
  display: block;
  margin-top: .1rem;
  font-size: .6875rem;
  font-weight: 500;
  color: var(--des-primary);
}

.des-content {
  padding: 2rem 2rem 2.5rem;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  animation: desFade .35s var(--des-ease);
}

@keyframes desFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* Surfaces */
.des-card {
  background: #fff;
  border: 1px solid var(--des-gray-200);
  border-radius: var(--des-radius);
  box-shadow: var(--des-shadow);
  padding: 1.35rem 1.45rem;
}

.des-page-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
}

.des-page-head h2 {
  margin: 0;
  font-family: var(--des-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--des-dark);
  letter-spacing: -.03em;
}

.des-page-head p {
  margin: .35rem 0 0;
  color: var(--des-gray-600);
  font-size: .9rem;
  max-width: 42rem;
}

.des-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.des-kpi-grid:has(.des-kpi:nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.des-kpi {
  background: #fff;
  border: 1px solid var(--des-gray-300);
  border-radius: .75rem;
  padding: 1.25rem;
  box-shadow: var(--des-shadow);
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: box-shadow .2s var(--des-ease);
}

.des-kpi:hover {
  box-shadow: var(--des-shadow-lg);
}

.des-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: .5rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.des-kpi-icon svg,
.des-kpi-icon .material-symbols-outlined {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 1.5rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.des-kpi-icon.blue { background: #eff4ff; color: var(--des-secondary); }
.des-kpi-icon.green { background: #dcfce7; color: #16a34a; }
.des-kpi-icon.amber { background: #fef9c3; color: #ca8a04; }
.des-kpi-icon.cyan { background: #e0f2fe; color: #0284c7; }

.des-kpi .label {
  color: var(--des-gray-600);
  font-size: .75rem;
  font-weight: 500;
  margin: 0 0 .15rem;
}

.des-kpi .value {
  font-family: var(--des-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--des-dark);
  letter-spacing: -.04em;
  line-height: 1.1;
  margin: 0;
}

.des-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .9rem;
  margin-bottom: 1.15rem;
}

.des-stat {
  background: #fff;
  border: 1px solid var(--des-gray-200);
  border-radius: var(--des-radius);
  padding: 1.15rem;
  box-shadow: var(--des-shadow);
}

.des-stat .label { color: var(--des-gray-600); font-size: .82rem; margin-bottom: .35rem; font-weight: 600; }
.des-stat .value { font-family: var(--des-font-display); font-size: 1.45rem; font-weight: 700; color: var(--des-dark); letter-spacing: -.04em; }

/* Badges / buttons */
.des-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .28rem .7rem;
  border-radius: 2rem;
  font-size: .75rem;
  font-weight: 600;
  background: #dcfce7;
  color: #16a34a;
  letter-spacing: .01em;
}

.des-badge::before {
  content: "";
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: currentColor;
}

.des-badge.inactive,
.des-badge.role-hod { background: #fef9c3; color: #ca8a04; }
.des-badge.role-super_admin { background: #eef2ff; color: #4338ca; }
.des-badge.role-admin { background: var(--des-primary-soft); color: var(--des-primary); }
.des-badge.role-faculty { background: var(--des-success-soft); color: #0ea44c; }

.btn-des {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 0;
  border-radius: .5rem;
  padding: .65rem 1.1rem;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  background: var(--des-primary);
  color: #fff;
  transition: filter .15s var(--des-ease), box-shadow .2s var(--des-ease);
  box-shadow: none;
  font-family: inherit;
  text-decoration: none;
}

.btn-des:hover {
  filter: brightness(1.06);
  color: #fff;
}

.btn-des .material-symbols-outlined {
  font-size: 1.1rem;
}

.btn-des-light {
  background: #fff;
  color: var(--des-gray-800);
  border: 1px solid var(--des-gray-300);
  box-shadow: none;
}

.btn-des-light:hover {
  background: var(--des-gray-100);
  color: var(--des-dark);
  filter: none;
}

.btn-des-danger {
  background: linear-gradient(180deg, #ff4d78, var(--des-danger));
  box-shadow: 0 6px 14px rgba(248,40,90,.22);
}

.btn-des-sm {
  padding: .45rem .75rem;
  font-size: .8rem;
  border-radius: .45rem;
}

.btn-des svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Toolbar / search */
.des-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.des-search {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  align-items: center;
  flex: 1;
}

.des-search input,
.des-search select,
.des-form-grid input,
.des-form-grid select,
.des-field input,
.des-field select,
.des-field textarea,
.des-field input[type="file"] {
  border: 1px solid var(--des-gray-300);
  border-radius: var(--des-radius-sm);
  padding: .72rem .9rem;
  background: #fff;
  font: inherit;
  color: var(--des-gray-800);
  transition: border-color .15s, box-shadow .15s;
}

.des-search input:focus,
.des-search select:focus,
.des-form-grid input:focus,
.des-form-grid select:focus,
.des-field input:focus,
.des-field select:focus {
  outline: none;
  border-color: var(--des-primary);
  box-shadow: 0 0 0 4px rgba(0, 78, 159, .12);
}

.des-search input { min-width: 220px; flex: 1; max-width: 320px; }
.des-search select { min-width: 180px; }

.des-toolbar-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

/* Table */
.des-table-card {
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--des-gray-300);
  border-radius: .75rem;
  box-shadow: var(--des-shadow);
}

.des-table-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.15rem 1.35rem;
  border-bottom: 1px solid var(--des-gray-200);
  gap: .75rem;
  flex-wrap: wrap;
}

.des-table-head h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--des-dark);
}

.des-table-head span {
  color: var(--des-gray-400);
  font-size: .8rem;
  font-weight: 600;
}

.des-table {
  width: 100%;
  border-collapse: collapse;
}

.des-table th,
.des-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--des-gray-200);
  text-align: left;
  font-size: .9rem;
  vertical-align: middle;
}

.des-table th {
  background: #f8f9ff;
  color: var(--des-gray-400);
  font-weight: 700;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.des-table tbody tr {
  transition: background .15s var(--des-ease);
}

.des-table tbody tr:hover {
  background: #eff4ff;
}

.des-table tbody tr:last-child td {
  border-bottom: 0;
}

.des-table .des-col-sno {
  width: 3.5rem;
  min-width: 3.5rem;
  max-width: 4.5rem;
  text-align: center;
  color: var(--des-gray-400);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
  padding-left: .75rem;
  padding-right: .75rem;
}

.des-table th.des-col-sno {
  text-align: center;
}

.des-table code,
.des-code {
  background: #d7e3ff;
  color: var(--des-primary);
  padding: .2rem .65rem;
  border-radius: 2rem;
  font-size: .75rem;
  font-weight: 700;
  font-family: inherit;
}

.des-entity {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.des-entity-avatar {
  width: 40px;
  height: 40px;
  border-radius: .55rem;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .85rem;
  background: var(--des-primary-soft);
  color: var(--des-primary);
  flex-shrink: 0;
}

.des-entity-avatar.blue { background: var(--des-primary-soft); color: var(--des-primary); }
.des-entity-avatar.cyan { background: var(--des-info-soft); color: #0891ad; }

.des-entity strong {
  display: block;
  color: var(--des-dark);
  font-weight: 700;
  font-size: .92rem;
}

.des-entity small {
  color: var(--des-gray-500);
  font-size: .75rem;
}

.des-actions {
  display: flex;
  gap: .4rem;
  align-items: center;
  justify-content: flex-end;
}

.des-actions form { display: inline; margin: 0; }

.des-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: .5rem;
  border: 1px solid var(--des-gray-300);
  background: #fff;
  color: var(--des-gray-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .15s var(--des-ease);
}

.des-icon-btn:hover {
  border-color: var(--des-primary);
  color: var(--des-primary);
  background: var(--des-primary-soft);
}

.des-icon-btn.danger:hover {
  border-color: var(--des-danger);
  color: var(--des-danger);
  background: var(--des-danger-soft);
}

.des-icon-btn svg,
.des-icon-btn .material-symbols-outlined {
  width: 1.1rem;
  height: 1.1rem;
  font-size: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.des-empty {
  text-align: center;
  color: var(--des-gray-600);
  padding: 2.75rem 1rem !important;
}

.des-empty-box {
  max-width: 360px;
  margin: 0 auto;
}

.des-empty-box strong {
  display: block;
  color: var(--des-dark);
  margin-bottom: .35rem;
  font-size: 1rem;
}

/* Forms */
.des-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.1rem;
}

.des-field { margin-bottom: 0; }
.des-field-full { grid-column: 1 / -1; }

.des-field label {
  display: block;
  font-weight: 700;
  font-size: .82rem;
  margin-bottom: .4rem;
  color: var(--des-gray-800);
}

.des-field input,
.des-field select,
.des-field textarea {
  width: 100%;
}

.des-field-error {
  color: var(--des-danger);
  font-size: .78rem;
  margin-top: .35rem;
  font-weight: 600;
}

.des-check {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.75rem;
  font-weight: 700;
}

.des-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--des-gray-200);
}

.des-form-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed var(--des-gray-200);
}

.des-form-section h4 {
  margin: 0 0 .85rem;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--des-gray-600);
  font-weight: 750;
}

.des-form-shell {
  max-width: 880px;
}

.des-import-drop {
  border: 1.5px dashed var(--des-gray-300);
  border-radius: var(--des-radius);
  padding: 1.5rem;
  background: linear-gradient(180deg, #fcfdff, #f7f9fc);
  text-align: center;
  transition: border-color .15s, background .15s;
}

.des-import-drop:hover {
  border-color: var(--des-primary);
  background: var(--des-primary-soft);
}

.des-import-drop input[type="file"] {
  margin-top: .85rem;
}

.des-pagination {
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--des-gray-200);
  background: #fcfcfd;
}

.des-pagination nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .25rem; }
.des-pagination span,
.des-pagination a {
  display: inline-flex;
  padding: .4rem .7rem;
  border-radius: .45rem;
  border: 1px solid var(--des-gray-300);
  color: var(--des-gray-700);
  font-size: .82rem;
  font-weight: 600;
  background: #fff;
}

.des-pagination .active span,
.des-pagination [aria-current="page"] span {
  background: var(--des-primary);
  border-color: var(--des-primary);
  color: #fff;
}

/* Alerts */
.des-alert {
  border-radius: var(--des-radius-sm);
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  font-size: .88rem;
  font-weight: 600;
  animation: desFade .3s var(--des-ease);
}

.des-alert-error {
  background: var(--des-danger-soft);
  color: var(--des-danger);
  border: 1px solid #ffd0dc;
}

.des-alert-success {
  background: var(--des-success-soft);
  color: #0ea44c;
  border: 1px solid #b9efcb;
}

/* Auth */
.des-auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff;
}

.des-auth-simple {
  grid-template-columns: 1fr;
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(0, 78, 159, .08), transparent 60%),
    var(--des-gray-100);
}

.des-auth-simple .des-auth-form-wrap {
  min-height: 100vh;
  background: transparent;
}

.des-auth-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 40px;
  padding: 0 .85rem;
  margin-bottom: 1.15rem;
  border-radius: .7rem;
  background: linear-gradient(135deg, var(--des-primary), var(--des-info));
  color: #fff;
  font-weight: 800;
  letter-spacing: .04em;
  font-size: .9rem;
  box-shadow: 0 8px 18px rgba(0, 78, 159, .22);
}

.des-auth-aside {
  background:
    linear-gradient(155deg, rgba(7,20,55,.92), rgba(11,107,203,.78)),
    radial-gradient(circle at 20% 20%, rgba(11,185,216,.35), transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  color: #fff;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.des-auth-aside::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  right: -60px;
  bottom: -40px;
}

.des-auth-aside h1 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  font-weight: 800;
  letter-spacing: -.03em;
  position: relative;
  z-index: 1;
}

.des-auth-aside p {
  font-size: 1.02rem;
  opacity: .92;
  max-width: 28rem;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.des-auth-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
}

.des-auth-chips span {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  padding: .4rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 650;
}

.des-auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(600px 280px at 80% 0%, rgba(0, 78, 159, .06), transparent 60%),
    #fff;
}

.des-auth-form {
  width: 100%;
  max-width: 420px;
  animation: desFade .4s var(--des-ease);
}

.des-auth-form h2 {
  margin: 0 0 .35rem;
  color: var(--des-dark);
  font-family: var(--des-font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -.04em;
}

.des-auth-form .subtitle {
  color: var(--des-gray-600);
  margin-bottom: 1.75rem;
}

.des-auth-form .des-field { margin-bottom: 1.05rem; }

.des-version {
  font-size: .75rem;
  color: var(--des-gray-500);
  margin-top: 1.5rem;
}

.des-demo-users {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--des-gray-100);
  border: 1px solid var(--des-gray-200);
  border-radius: var(--des-radius-sm);
  font-size: .8rem;
  color: var(--des-gray-700);
  line-height: 1.55;
}

.des-demo-users code {
  background: #fff;
  padding: .1rem .35rem;
  border-radius: .3rem;
  border: 1px solid var(--des-gray-300);
  color: var(--des-primary);
  font-weight: 700;
}

.des-welcome-panel {
  display: grid;
  grid-template-columns: 1.4fr .9fr;
  gap: 1rem;
}

.des-welcome-panel h3 {
  margin: 0 0 .5rem;
  font-size: 1.2rem;
  font-weight: 780;
  color: var(--des-dark);
}

/* Dashboard — Lexa Digital mockup */
.des-hero-banner {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--des-gray-300);
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--des-shadow);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.des-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0, 78, 159, .05), transparent);
  pointer-events: none;
}

.des-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.des-hero-banner h2 {
  margin: 0 0 .5rem;
  font-family: var(--des-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--des-dark);
  letter-spacing: -.04em;
  line-height: 1.25;
}

.des-hero-banner p {
  margin: 0 0 2rem;
  color: var(--des-gray-600);
  font-size: 1rem;
  line-height: 1.5;
  opacity: .8;
}

.des-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
}

.des-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem 1rem;
  border-radius: 2rem;
  font-size: .875rem;
  font-weight: 600;
  background: #fff;
  color: var(--des-gray-600);
  border: 1px solid var(--des-gray-300);
  box-shadow: var(--des-shadow);
}

.des-pill.ok {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
  box-shadow: none;
}

.des-pill.ok::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: #16a34a;
}

.des-hero-art {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 1rem;
  background: var(--des-primary-soft);
  color: var(--des-primary);
  display: none;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--des-shadow);
}

@media (min-width: 1024px) {
  .des-hero-art { display: grid; }
}

.des-hero-art .material-symbols-outlined {
  font-size: 3rem;
  font-variation-settings: "FILL" 0, "wght" 200, "GRAD" 0, "opsz" 48;
}

.des-dash-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .des-dash-grid {
    flex-direction: row;
    align-items: flex-start;
  }
}

.des-workspace {
  flex: 1;
  min-width: 0;
}

.des-workspace-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.des-workspace-head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--des-dark);
  line-height: 1.4;
}

.des-workspace-head span {
  font-size: .75rem;
  font-weight: 700;
  color: var(--des-gray-400);
  text-transform: uppercase;
  letter-spacing: .16em;
}

.des-desk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .des-desk-grid { grid-template-columns: 1fr 1fr; }
}

.des-setting-tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--des-gray-300);
  border-radius: .75rem;
  padding: 1.25rem;
  box-shadow: var(--des-shadow);
  color: inherit;
  text-decoration: none;
  transition: box-shadow .2s var(--des-ease);
}

.des-setting-tile:hover {
  color: inherit;
  box-shadow: var(--des-shadow-lg);
}

.des-setting-icon {
  width: 40px;
  height: 40px;
  border-radius: .5rem;
  display: grid;
  place-items: center;
  background: #eff4ff;
  color: var(--des-primary);
  flex-shrink: 0;
  transition: background .2s var(--des-ease), color .2s var(--des-ease);
}

.des-setting-tile:hover .des-setting-icon {
  background: var(--des-primary);
  color: #fff;
}

.des-setting-icon .material-symbols-outlined {
  font-size: 1.25rem;
}

.des-setting-copy {
  flex: 1;
  min-width: 0;
}

.des-setting-copy strong {
  display: block;
  font-size: .95rem;
  font-weight: 600;
  color: var(--des-dark);
}

.des-setting-copy small {
  display: block;
  margin-top: .15rem;
  font-size: .75rem;
  color: var(--des-gray-600);
}

.des-setting-chevron {
  color: var(--des-gray-400);
  opacity: 0;
  transition: opacity .2s var(--des-ease);
}

.des-setting-tile:hover .des-setting-chevron {
  opacity: 1;
}

.des-activity-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--des-gray-300);
  border-radius: .75rem;
  box-shadow: var(--des-shadow);
  padding: 1.5rem;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .des-activity-card { width: 20rem; }
}

@media (min-width: 1280px) {
  .des-activity-card { width: 24rem; }
}

.des-activity-card h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--des-dark);
}

.des-activity-all {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--des-primary);
}

.des-activity-all:hover {
  text-decoration: underline;
}

.des-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.des-activity-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .75rem;
  border-radius: .5rem;
  transition: background .15s var(--des-ease);
}

.des-activity-list li:hover {
  background: #eff4ff;
}

.des-activity-dot {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #eff4ff;
  color: var(--des-secondary);
}

.des-activity-dot.cyan {
  background: #e0f2fe;
  color: #0284c7;
}

.des-activity-dot.warn {
  background: var(--des-danger-soft);
  color: var(--des-danger);
}

.des-activity-dot.ok {
  background: #dcfce7;
  color: #16a34a;
}

.des-activity-dot svg,
.des-activity-dot .material-symbols-outlined {
  width: .9rem;
  height: .9rem;
  font-size: .9rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}

.des-activity-body {
  flex: 1;
  min-width: 0;
}

.des-activity-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .75rem;
}

.des-activity-row time,
.des-activity-list time {
  font-size: .625rem;
  color: var(--des-gray-400);
  white-space: nowrap;
}

.des-activity-list strong {
  display: block;
  font-size: .875rem;
  color: var(--des-dark);
  font-weight: 600;
}

.des-activity-list span {
  display: block;
  font-size: .75rem;
  color: var(--des-gray-600);
  margin-top: .15rem;
}

.des-activity-divider {
  height: 1px;
  background: var(--des-gray-300);
  margin: .5rem 0;
}

.des-kpi .value.sm {
  font-size: 1.25rem;
  line-height: 1.4;
}

.des-kpi .hint {
  margin: .15rem 0 0;
  font-size: .6875rem;
  color: var(--des-gray-400);
  font-weight: 400;
}

.des-access-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .65rem;
}

.des-access-item {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .85rem .9rem;
  border: 1px solid var(--des-gray-200);
  border-radius: .7rem;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.des-access-item:hover {
  border-color: var(--des-primary);
  box-shadow: var(--des-shadow);
}

.des-access-item input[type="checkbox"] {
  margin-top: .2rem;
  accent-color: var(--des-primary);
}

.des-access-body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
}

.des-access-body strong {
  color: var(--des-dark);
  font-size: .9rem;
}

.des-access-body small {
  color: var(--des-gray-500);
  font-size: .75rem;
}

.des-access-perms {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .35rem;
  font-size: .75rem;
  color: var(--des-gray-700);
  font-weight: 600;
}

.des-access-perms span {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.des-quick-links {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.des-quick-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  border: 1px solid var(--des-gray-200);
  border-radius: var(--des-radius-sm);
  background: #fff;
  color: var(--des-gray-800);
  font-weight: 700;
  transition: all .15s var(--des-ease);
}

.des-quick-links a:hover {
  border-color: var(--des-primary);
  background: var(--des-primary-soft);
  color: var(--des-primary);
  transform: translateX(3px);
}

@media (max-width: 1100px) {
  .des-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .des-welcome-panel { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
  .des-auth { grid-template-columns: 1fr; }
  .des-auth-aside { min-height: 240px; padding: 2rem; }
  .des-sidebar {
    width: var(--des-sidebar-width) !important;
    transform: translateX(-105%);
    transition: transform .25s var(--des-ease);
    z-index: 200;
  }
  .des-main { margin-left: 0 !important; }
  .des-sidebar-collapse-btn { display: none; }
  .des-sidebar-toggle { display: inline-flex; }
  .des-logo-header { height: 30px; max-width: 160px; }
  body.aside-mobile-on .des-sidebar {
    transform: translateX(0);
  }
  body.aside-mobile-on .des-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(11, 28, 48, .4);
    z-index: 150;
    border: 0;
  }
  body.aside-minimize .des-brand-text,
  body.aside-minimize .des-menu-section,
  body.aside-minimize .menu-title,
  body.aside-minimize .des-sidebar-foot-text {
    opacity: 1;
    width: auto;
    pointer-events: auto;
  }
  body.aside-minimize .des-menu a::after,
  body.aside-minimize .des-sidebar-foot a::after { display: none; }
  .des-form-grid { grid-template-columns: 1fr; }
  .des-kpi-grid { grid-template-columns: 1fr 1fr; }
  .des-desk-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .des-kpi-grid { grid-template-columns: 1fr; }
  .des-content { padding: 1rem; }
  .des-header { padding: 0 1rem; }
  .des-session-pill { display: none; }
  .des-user-meta { display: none; }
  .des-hero-banner { padding: 1.5rem; }
  .des-hero-banner h2 { font-size: 1.5rem; }
}

/* Body page head (breadcrumb + title) — not in top header */
.des-body-page-head {
  margin-bottom: 1.5rem;
}

.des-body-page-head .des-breadcrumb {
  margin-bottom: .45rem;
}

.des-body-page-title {
  margin: 0;
  font-family: var(--des-font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--des-dark);
  letter-spacing: -.04em;
  line-height: 1.25;
}

.des-body-page-sub {
  margin: .4rem 0 0;
  color: var(--des-gray-600);
  font-size: 1rem;
  line-height: 1.5;
  max-width: 46rem;
}

/* Role Access mini sidebar shell */
.des-ra-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.des-ra-shell.is-collapsed {
  grid-template-columns: 72px minmax(0, 1fr);
}

.des-ra-nav {
  background: #fff;
  border: 1px solid var(--des-gray-200);
  border-radius: var(--des-radius);
  box-shadow: var(--des-shadow);
  position: sticky;
  top: calc(var(--des-header-height) + .75rem);
  max-height: calc(100vh - var(--des-header-height) - 1.5rem);
  overflow: auto;
}

.des-ra-nav-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--des-gray-200);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: var(--des-gray-500);
}

.des-ra-nav-toggle {
  width: 28px;
  height: 28px;
  border: 1px solid var(--des-gray-300);
  border-radius: .45rem;
  background: #fff;
  color: var(--des-gray-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.des-ra-nav-toggle svg {
  width: .9rem;
  height: .9rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s var(--des-ease);
}

.des-ra-shell.is-collapsed .des-ra-nav-toggle svg {
  transform: rotate(180deg);
}

.des-ra-menu {
  list-style: none;
  margin: 0;
  padding: .55rem;
}

.des-ra-menu a {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .7rem .75rem;
  border-radius: .6rem;
  color: var(--des-gray-700);
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .15rem;
  transition: all .15s var(--des-ease);
}

.des-ra-menu a:hover {
  background: var(--des-gray-100);
  color: var(--des-primary);
}

.des-ra-menu a.active {
  background: var(--des-secondary);
  color: #fff;
  box-shadow: none;
}

.des-ra-icon {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  flex-shrink: 0;
}

.des-ra-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.des-ra-empty {
  padding: .85rem;
  color: var(--des-gray-500);
  font-size: .82rem;
}

.des-ra-main { min-width: 0; }

.des-ra-shell.is-collapsed .des-ra-nav-head span,
.des-ra-shell.is-collapsed .des-ra-label {
  display: none;
}

.des-ra-shell.is-collapsed .des-ra-menu a {
  justify-content: center;
  padding: .75rem .4rem;
}

.des-access-child {
  margin-left: 1rem;
  border-style: dashed;
}

.des-empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.des-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--des-primary-soft);
  color: var(--des-primary);
  display: grid;
  place-items: center;
}

.des-empty-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.des-empty-state strong {
  display: block;
  font-size: 1.1rem;
  color: var(--des-dark);
  margin-bottom: .35rem;
}

.des-empty-state p {
  margin: 0;
  color: var(--des-gray-600);
  font-size: .9rem;
}

.des-entity-avatar svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

/* —— Global API loader (Lexa secure API) —— */
.des-api-loader {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(239, 244, 255, .92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.des-api-loader[hidden] {
  display: none !important;
}

body.des-api-busy {
  overflow: hidden;
}

.des-api-loader-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 28rem;
  animation: des-api-fade-in .28s var(--des-ease);
}

.des-api-loader-mark-wrap {
  position: relative;
  width: 7.5rem;
  height: 7.5rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.75rem;
}

.des-api-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px dashed #90caf9;
  animation: des-api-spin 1.35s linear infinite;
  pointer-events: none;
}

.des-api-loader-mark {
  position: relative;
  z-index: 1;
  width: 5.25rem;
  height: 5.25rem;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 78, 159, .12), 0 2px 8px rgba(11, 28, 48, .06);
  display: grid;
  place-items: center;
  padding: .65rem;
}

.des-api-loader-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.des-api-loader-title {
  margin: 0 0 1rem;
  font-family: var(--des-font);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
  color: #0b1c30;
}

.des-api-loader-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .55rem 1.15rem;
  border-radius: 999px;
  background: #eff4ff;
  border: 1px solid #d7e3ff;
  color: var(--des-primary);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.3;
}

.des-api-loader-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 50%;
  background: var(--des-primary);
  flex-shrink: 0;
  animation: des-api-pulse 1.1s ease-in-out infinite;
}

@keyframes des-api-spin {
  to { transform: rotate(360deg); }
}

@keyframes des-api-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.85); }
}

@keyframes des-api-fade-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .des-api-loader-ring,
  .des-api-loader-dot,
  .des-api-loader-panel {
    animation: none;
  }
}

@media (max-width: 991px) {
  .des-ra-shell,
  .des-ra-shell.is-collapsed {
    grid-template-columns: 1fr;
  }
  .des-ra-nav {
    position: static;
    max-height: none;
  }
}
