/* Smarttech-Billing v2.2.2 - Sidebar & Content Layout, non-destructive UI upgrade */
body.app-light {
  --sb-width: 246px;
  --sb-mini: 76px;
  --sb-bg: #222e40;
  --header-chip: rgba(255,255,255,.12);
  --sb-border: rgba(197, 210, 235, .12);
  --ui-line: #e1e7ef;
  --ui-ink: #22354b;
  --ui-muted: #68798f;
  overflow-x: hidden;
}
body.app-light .app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: var(--sb-width);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 0 11px 12px;
  overflow: hidden;
  color: #eaf0fb;
  background: linear-gradient(175deg, #28344a 0%, var(--sb-bg) 65%, #1c2737 100%);
  border-right: 1px solid var(--sb-border);
  box-shadow: 2px 0 15px #1520350e;
  transition: width .2s ease, transform .24s ease;
}
body.app-light .app-sidebar .app-sidebar-top {
  flex: none;
  margin: 0 -11px 13px;
  border-bottom: 1px solid var(--sb-border);
}
body.app-light .app-sidebar .smarttech-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 73px;
  min-width: 0;
  margin: 0;
  padding: 14px 15px;
  background: linear-gradient(110deg, #4e4cb2, #383c79 65%, #2b3459);
}
body.app-light .app-sidebar .smarttech-brand-mark {flex: 0 0 40px; width: 40px; height: 40px;}
body.app-light .app-sidebar .smarttech-brand-mark img {width: 40px; height: 40px;}
body.app-light .app-sidebar .smarttech-brand-text {min-width: 0; overflow: hidden;}
body.app-light .app-sidebar .smarttech-brand-text strong {font-size: 14px; letter-spacing: -.25px;}
body.app-light .app-sidebar .smarttech-brand-text small {font-size: 8px; letter-spacing: 1.05px;}
body.app-light .app-sidebar .app-profile {
  display: flex;
  min-width: 0;
  flex: none;
  align-items: center;
  gap: 10px;
  margin: 0 3px 10px;
  padding: 9px;
  border: 1px solid rgba(220, 228, 244, .11);
  border-radius: 11px;
  background: rgba(247, 249, 255, .06);
}
body.app-light .app-sidebar .app-profile:hover {background: rgba(240, 243, 255, .12); border-color: rgba(174, 168, 255, .42);}
body.app-light .app-sidebar .app-profile .app-avatar {flex: 0 0 37px; width: 37px; height: 37px; font-size: 15px;}
body.app-light .app-sidebar .app-profile-info {flex: 1; min-width: 0; overflow: hidden;}
body.app-light .app-sidebar .app-profile strong {font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
body.app-light .app-sidebar .app-profile small {font-size: 10px; margin-top: 3px; text-transform: capitalize;}
body.app-light .app-sidebar .avatar-edit-mark {flex: none; font-size: 12px;}
body.app-light .app-sidebar nav#app-navigation {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 11px;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 3px 2px 14px;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #66738c transparent;
}
body.app-light .app-sidebar nav#app-navigation::-webkit-scrollbar {width: 5px;}
body.app-light .app-sidebar nav#app-navigation::-webkit-scrollbar-thumb {background: #69768e; border-radius: 10px;}
body.app-light .app-sidebar nav .app-nav-group {display: grid; gap: 2px; min-width: 0;}
body.app-light .app-sidebar nav .app-nav-heading {
  margin: 8px 10px 5px;
  color: #8fa0b9;
  font-size: 10px;
  letter-spacing: 1px;
  font-weight: 750;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
body.app-light .app-sidebar nav a.app-nav-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 7px 10px;
  color: #cbd5e5;
  font-size: 12px;
  font-weight: 570;
  line-height: 1.3;
  text-align: left;
  border-radius: 8px;
  border: 1px solid transparent;
  border-left: 1px solid transparent;
  transition: background .14s ease, color .14s ease;
}
body.app-light .app-sidebar nav a.app-nav-link:hover,
body.app-light .app-sidebar nav a.app-nav-link:focus-visible {background: rgba(234, 239, 253, .085); color: #fff;}
body.app-light .app-sidebar nav a.app-nav-link.active {
  background: linear-gradient(92deg, rgba(107, 103, 229, .32), rgba(116, 104, 207, .13));
  color: #fff;
  border-color: rgba(167, 157, 255, .18);
  border-left: 3px solid #aaa3ff;
  padding-left: 8px;
  font-weight: 700;
}
body.app-light .app-sidebar nav .app-nav-icon {flex: 0 0 25px; width: 25px; height: 25px;}
body.app-light .app-sidebar nav .app-nav-text {flex: 1; min-width: 0; white-space: normal; overflow-wrap: anywhere;}
body.app-light .app-sidebar .account.app-sidebar-account {
  flex: none;
  min-width: 0;
  margin-top: 0;
  padding: 12px 3px 0;
  border-top: 1px solid var(--sb-border);
}
.app-sidebar-footer-label {margin: 0 6px 9px; color: #91a2b7; font-size: 9px; letter-spacing: .25px; white-space: nowrap; overflow: hidden;}
body.app-light .app-sidebar .account form.form {display: block; margin: 0; width: 100%;}
body.app-light .app-sidebar .account button.app-signout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid rgba(214, 225, 247, .12);
  border-radius: 8px;
  background: rgba(231, 238, 251, .065);
  color: #e6edf7;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
}
body.app-light .app-sidebar .account button.app-signout:hover {background: rgba(255, 255, 255, .13);}
.app-signout-icon {width: 25px; text-align: center; flex: 0 0 25px; font-size: 18px; line-height: 1;}
body.app-light .workspace {
  box-sizing: border-box;
  margin-left: var(--sb-width);
  width: calc(100% - var(--sb-width));
  max-width: none;
  min-width: 0;
  padding: 18px 21px 24px;
  transition: margin-left .2s ease, width .2s ease;
}
body.app-light .workspace > header.app-workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 67px;
  padding: 12px 17px;
  margin: 0 0 17px;
  border-radius: 11px;
  background: linear-gradient(100deg, #4f4bc0 0%, #38378b 100%);
  color: #fff;
  box-shadow: 0 5px 13px rgba(56, 57, 118, .10);
}
.app-header-left {display: flex; align-items: center; gap: 13px; flex: 1; min-width: 0;}
.app-header-title {min-width: 0;}
body.app-light .workspace > header .app-header-title small {display: block; color: #d8dbff; font-size: 9px; letter-spacing: 1px; font-weight: 650;}
body.app-light .workspace > header .app-header-title h1 {font-size: clamp(17px, 1.65vw, 22px); line-height: 1.25; font-weight: 750; letter-spacing: -.3px; margin: 4px 0 0; overflow-wrap: anywhere;}
.app-menu-toggle {
  display: grid;
  place-items: center;
  flex: 0 0 37px;
  width: 37px;
  height: 37px;
  min-width: 37px;
  padding: 0;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, .24);
  color: #fff;
  background: rgba(255, 255, 255, .12);
  cursor: pointer;
}
.app-menu-toggle:hover, .app-menu-toggle:focus-visible {background: rgba(255, 255, 255, .23); outline-offset: 2px;}
.app-toggle-bars, .app-toggle-bars::before, .app-toggle-bars::after {display: block; width: 17px; height: 2px; background: #fff; border-radius: 2px;}
.app-toggle-bars {position: relative;}
.app-toggle-bars::before, .app-toggle-bars::after {content: ''; position: absolute; left: 0;}
.app-toggle-bars::before {top: -6px;}
.app-toggle-bars::after {top: 6px;}
body.app-light .workspace > header .app-top-right {flex: none; gap: 9px;}
body.app-light .workspace > header .badge {padding: 7px 10px; background: rgba(255, 255, 255, .14); color: #f0f5ff; font-size: 10px; font-weight: 650;}
body.app-light .workspace > header .app-role {display: inline-flex; align-items: center; padding: 6px 10px; font-size: 11px;}
body.app-light .workspace > header .avatar-header-link img {width: 22px; height: 22px;}

body.app-light .workspace > header .app-top-right{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;min-width:0;}
body.app-light .workspace > header .app-user-dropdown{position:relative;flex:none;min-width:0;}
body.app-light .workspace > header .app-user-dropdown summary{list-style:none;}
body.app-light .workspace > header .app-user-dropdown summary::-webkit-details-marker{display:none;}
body.app-light .workspace > header .app-user-trigger{display:flex;align-items:center;gap:10px;min-height:40px;padding:5px 10px;border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(255,255,255,.10);color:#fff;cursor:pointer;}
body.app-light .workspace > header .app-user-trigger:hover{background:rgba(255,255,255,.18);}
body.app-light .workspace > header .app-user-avatar{display:grid;place-items:center;flex:0 0 31px;width:31px;height:31px;border-radius:50%;background:linear-gradient(145deg,#8e8bff,#5851d6);color:#fff;font-size:13px;font-weight:800;box-shadow:inset 0 1px 1px rgba(255,255,255,.4),0 3px 8px rgba(15,19,44,.25);overflow:hidden;}
body.app-light .workspace > header .app-user-avatar img{width:100%;height:100%;object-fit:cover;display:block;}
body.app-light .workspace > header .app-user-meta{display:flex;flex-direction:column;min-width:0;line-height:1.15;}
body.app-light .workspace > header .app-user-meta strong{font-size:12px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px;}
body.app-light .workspace > header .app-user-meta small{font-size:10px;color:#dfe5ff;}
body.app-light .workspace > header .app-user-caret{font-size:11px;color:#e8edff;}
body.app-light .workspace > header .app-user-panel{position:absolute;right:0;top:calc(100% + 8px);min-width:190px;padding:8px;background:#ffffff;border:1px solid #dce4ef;border-radius:12px;box-shadow:0 12px 24px rgba(32,46,72,.16);z-index:15;display:grid;gap:4px;}
body.app-light .workspace > header .app-user-item{display:flex;align-items:center;justify-content:flex-start;width:100%;min-height:36px;padding:8px 11px;border:0;border-radius:9px;background:transparent;color:#24405c;font-size:12px;font-weight:650;text-align:left;}
body.app-light .workspace > header a.app-user-item{text-decoration:none;}
body.app-light .workspace > header .app-user-item:hover{background:#f2f6fb;}
body.app-light .workspace > header .app-user-item.danger{color:#b83348;}
body.app-light .workspace > header .app-user-divider{height:1px;margin:4px 1px;background:#e5eaf1;}
body.app-light .app-sidebar .app-profile{display:none;}
body.app-light .app-sidebar .app-sidebar-top{margin-bottom:10px;}
body.app-light .app-sidebar nav#app-navigation{padding-top:8px;}
/* Content readability & data-table alignment across modules. */
body.app-light .workspace > :is(section,div) {min-width: 0;}
body.app-light .workspace :is(.panel,.dp-box,.pm-panel,.iv-panel,.hs-panel,.cm-panel,.nm-panel,.um-panel,.pr-panel,.ps-panel) {min-width: 0;}
body.app-light .workspace :is(.scroll,.cm-table-scroll,.hs-table,.ps-scroll) {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #afbed0 #f1f4f8;
}
body.app-light .workspace :is(.scroll,.cm-table-scroll,.hs-table,.ps-scroll) > table {width: 100%; min-width: 620px;}
body.app-light .workspace .cm-table-scroll > table {min-width: 900px;}
body.app-light .workspace table {font-variant-numeric: tabular-nums;}
body.app-light .workspace table th,
body.app-light .workspace table td {box-sizing: border-box; vertical-align: middle; line-height: 1.4;}
body.app-light .workspace table th {font-size: 10.5px; font-weight: 750; letter-spacing: .25px; white-space: nowrap;}
body.app-light .workspace table td {font-size: 12px;}
body.app-light .workspace .scroll > table thead th {position: sticky; top: 0; z-index: 2; background: #f1f5fa; box-shadow: 0 1px 0 #e1e7ef;}
body.app-light .workspace .scroll > table th,
body.app-light .workspace .scroll > table td {padding: 10px 12px; text-align: left;}
body.app-light .workspace table td :is(button,select,input) {max-width: 100%;}
body.app-light .workspace table td :is(.nm-actions,.cm-actions,.pm-actions,.iv-actions,.um-actions,.pr-actions) {display: flex; align-items: center; flex-wrap: wrap; gap: 5px;}
body.app-light .workspace .scroll :is(button,.nas-btn) {white-space: nowrap;}
body.app-light .workspace :is(.panel,.dp-box,.pm-panel,.iv-panel,.hs-panel,.cm-panel) :is(h2,h3) {line-height: 1.3;}
body.app-light .workspace :is(.panel,.dp-box,.pm-panel,.iv-panel,.hs-panel,.cm-panel) p {line-height: 1.5;}
body.app-light .workspace :is(.panel,.dp-box,.pm-panel,.iv-panel,.hs-panel,.cm-panel) :is(input,select,textarea) {min-width: 0; max-width: 100%;}
body.app-light .workspace > .panel form.form > label {min-width: min(190px,100%); flex: 1 1 205px;}
body.app-light .workspace :is(.form,.cm-filter,.pm-filter,.iv-filter,.nm-filters,.um-filter,.pr-filter,.hs-fields) {min-width: 0;}
body.app-light .workspace :is(.cm-filter,.pm-filter,.iv-filter,.nm-filters,.um-filter,.pr-filter) {row-gap: 9px;}
body.app-light .workspace :is(.cm-filter,.pm-filter,.iv-filter,.nm-filters,.um-filter,.pr-filter) label {min-width: 0;}
/* Keep page titles, filter controls and action columns in tidy rows. */
body.app-light .workspace :is(.dp-heading,.cm-head,.nm-heading,.pm-head,.iv-head,.um-head,.pr-head,.hs-heading,.wa-heading,.ps-heading) {
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 10px;
}
body.app-light .workspace :is(.dp-heading,.cm-head,.nm-heading,.pm-head,.iv-head,.um-head,.pr-head,.hs-heading,.wa-heading,.ps-heading) > div:first-child {
  min-width: 0;
  flex: 1 1 210px;
}
body.app-light .workspace :is(.cm-head,.nm-heading,.pm-head,.iv-head,.um-head,.pr-head,.hs-heading,.wa-heading,.ps-heading) h2 {
  line-height: 1.25;
  overflow-wrap: anywhere;
}
body.app-light .workspace :is(.wa-table,.scroll,.hs-table,.ps-scroll) {max-width: 100%;}
body.app-light .workspace :is(.nm-actions,.iv-actions,.pm-actions,.cm-actions,.um-actions,.pr-actions) {min-width: 0; gap: 5px;}
body.app-light .workspace :is(.nm-actions,.iv-actions,.pm-actions,.cm-actions,.um-actions,.pr-actions) :is(a,button) {line-height: 1.3;}
body.app-light .workspace .notice {line-height: 1.45; overflow-wrap: anywhere;}
/* Desktop compact sidebar: keep route links and 3D icons accessible. */
@media (min-width: 801px) {
  body.app-light.sidebar-compact .app-sidebar {width: var(--sb-mini);}
  body.app-light.sidebar-compact .workspace {margin-left: var(--sb-mini); width: calc(100% - var(--sb-mini));}
  body.app-light.sidebar-compact .app-sidebar .smarttech-sidebar-brand {justify-content: center; padding: 14px 5px;}
  body.app-light.sidebar-compact .app-sidebar .smarttech-brand-text,
  body.app-light.sidebar-compact .app-sidebar .app-nav-heading,
  body.app-light.sidebar-compact .app-sidebar .app-nav-text,
  body.app-light.sidebar-compact .app-sidebar .app-sidebar-footer-label,
  body.app-light.sidebar-compact .app-sidebar .app-signout-label {display: none;}
  body.app-light.sidebar-compact .app-sidebar nav#app-navigation {padding-right: 0; padding-left: 0;}
  body.app-light.sidebar-compact .app-sidebar nav .app-nav-group {gap: 5px; border-bottom: 1px solid var(--sb-border); padding-bottom: 7px;}
  body.app-light.sidebar-compact .app-sidebar nav a.app-nav-link,
  body.app-light.sidebar-compact .app-sidebar nav a.app-nav-link.active {justify-content: center; padding: 7px;}
  body.app-light.sidebar-compact .app-sidebar nav a.app-nav-link.active {border-left-width: 1px;}
  body.app-light.sidebar-compact .app-sidebar .account button.app-signout {justify-content: center; padding: 8px 3px;}
  body.app-light.sidebar-compact .app-sidebar .account {padding: 10px 0 0;}
}
.app-sidebar-backdrop {display: none;}
@media (max-width: 1100px) and (min-width: 801px) {
  body.app-light {--sb-width: 228px;}
  body.app-light .workspace {padding-left: 15px; padding-right: 15px;}
}
@media (max-width: 800px) {
  body.app-light {--sb-width: 256px;}
  body.app-light .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(var(--sb-width), calc(100vw - 54px));
    max-width: 320px;
    height: 100vh;
    height: 100dvh;
    padding: 0 11px 12px;
    transform: translateX(-105%);
    visibility: hidden;
    box-shadow: 5px 0 30px #0c142a38;
  }
  body.app-light.mobile-nav-open .app-sidebar {transform: translateX(0); visibility: visible;}
  body.app-light .app-sidebar nav#app-navigation {display: flex; margin: 0; overflow-y: auto; white-space: normal;}
  body.app-light .app-sidebar nav a.app-nav-link {padding: 7px 10px;}
  body.app-light .app-sidebar nav a.app-nav-link.active {padding-left: 8px; border-left-width: 3px;}
  body.app-light .app-sidebar .account {border-top: 1px solid var(--sb-border); padding: 12px 3px 0;}
  body.app-light .app-sidebar .account button.app-signout {width: 100%; padding: 8px 11px;}
  body.app-light .app-sidebar-backdrop {position: fixed; inset: 0; z-index: 59; border: 0; padding: 0; border-radius: 0; background: rgba(12, 22, 39, .52); width: 100%; height: 100%; cursor: pointer;}
  body.app-light.mobile-nav-open .app-sidebar-backdrop {display: block;}
  body.app-light.mobile-nav-open {overflow: hidden;}
  body.app-light .workspace, body.app-light.sidebar-compact .workspace {width: 100%; margin: 0; padding: 11px 12px 18px;}
  body.app-light .workspace > header.app-workspace-header {min-height: 60px; padding: 10px 12px; margin-bottom: 13px;}
  body.app-light .workspace > header .app-header-title h1 {font-size: 19px;}
  body.app-light .workspace > header .app-header-title small {font-size: 8px;}
  body.app-light .workspace > header .app-top-right .badge {display: none;}
  body.app-light .workspace > header .app-user-meta {display: none;}
  body.app-light .workspace > header .app-user-trigger {padding: 4px; border-radius: 50%; min-height: 38px; width: 38px; justify-content: center;}
  body.app-light .workspace > header .app-user-caret {display:none;}
  .app-header-left {gap: 10px;}
}
@media (max-width: 480px) {
  body.app-light .workspace {padding: 9px;}
  body.app-light .workspace > header.app-workspace-header {padding: 10px; gap: 7px;}
  body.app-light .workspace > header .app-header-title h1 {font-size: 17px;}
  .app-menu-toggle {flex-basis: 35px; min-width: 35px; width: 35px; height: 35px;}
  body.app-light .workspace > .panel {padding: 13px;}
  body.app-light .workspace :is(.scroll,.cm-table-scroll,.hs-table,.ps-scroll) > table {min-width: 600px;}
  body.app-light .workspace :is(.scroll,.cm-table-scroll) :is(button,.nas-btn) {width: auto;}
}
@media print {
  body.app-light .app-sidebar,body.app-light .app-sidebar-backdrop,body.app-light .app-menu-toggle {display: none!important;}
  body.app-light .workspace,body.app-light.sidebar-compact .workspace {margin: 0; width: 100%; padding: 0;}
}
@media (prefers-reduced-motion: reduce) {
  body.app-light .app-sidebar,body.app-light .workspace {transition: none;}
}

/* v2.6.2 — simplified enterprise sidebar / header rhythm */
body.app-light .app-sidebar {background:linear-gradient(180deg,#293850 0%,#222f43 56%,#1b2637 100%);}
body.app-light .app-sidebar .app-sidebar-top {margin-bottom:4px;border-bottom:1px solid rgba(219,231,255,.12);}
body.app-light .app-sidebar .smarttech-sidebar-brand {min-height:73px;background:linear-gradient(112deg,#394684 0%,#2e3e70 75%,#263550 100%);}
body.app-light .app-sidebar nav#app-navigation {gap:8px;padding-top:10px;padding-bottom:12px;}
body.app-light .app-sidebar nav .app-nav-heading {margin:6px 10px 7px;font-size:10px;letter-spacing:.8px;color:#96A9C4;}
body.app-light .app-sidebar nav .app-nav-group {gap:3px;}
body.app-light .app-sidebar nav a.app-nav-link {min-height:44px;padding:7px 10px;border-radius:10px;font-size:12px;gap:11px;color:#DCE5F4;}
body.app-light .app-sidebar nav a.app-nav-link.active {padding-left:8px;border-left:3px solid #AFA9FF;background:linear-gradient(90deg,rgba(106,104,226,.30),rgba(118,128,194,.09));}
body.app-light .app-sidebar nav a.app-nav-link:hover:not(.active){background:rgba(223,233,255,.085);}
body.app-light .app-sidebar-company {flex:0 0 auto;margin-top:auto;border-top:1px solid rgba(213,227,253,.13);padding:14px 9px 3px;color:#91A7C4;font-size:10px;letter-spacing:.16px;}
body.app-light .workspace {padding-top:16px;}
body.app-light .workspace > header.app-workspace-header {border-radius:12px;min-height:68px;margin-bottom:15px;background:linear-gradient(104deg,#4C4AC6 0%,#4243A5 54%,#343882 100%);box-shadow:0 7px 17px rgba(48,57,129,.1);}
body.app-light .workspace > header .app-user-trigger{border-radius:11px;}
body.app-light .workspace > header .app-user-dropdown[open] .app-user-trigger{background:rgba(255,255,255,.22);}
body.app-light .workspace > header .app-user-panel {box-shadow:0 18px 35px rgba(29,42,80,.21);}
body.app-light .workspace > header .app-user-item:focus-visible,
body.app-light .app-sidebar nav a.app-nav-link:focus-visible {outline:2px solid #A0CBFF;outline-offset:2px;}
@media (min-width:801px){
 body.app-light.sidebar-compact .app-sidebar .app-sidebar-company{font-size:0;height:12px;padding:8px 0;border-top:1px solid rgba(213,227,253,.13);}
 body.app-light.sidebar-compact .app-sidebar nav a.app-nav-link.active{padding-left:7px;}
}
@media (max-width:800px){
 body.app-light .workspace>header.app-workspace-header{gap:9px;}
 body.app-light .app-sidebar nav a.app-nav-link{min-height:44px;}
 body.app-light .app-sidebar-company{padding:12px 8px;}
}

/* Phones: keep the title readable and move NAS selector to row two. */
@media (max-width:600px) {
 body.app-light .workspace > header.app-workspace-header {
   display:grid; grid-template-columns:minmax(0,1fr) auto;
   grid-template-rows:auto auto; align-items:center;column-gap:8px;row-gap:10px;
   padding:11px 12px; min-height:unset;
 }
 body.app-light .workspace > header .app-header-left {grid-column:1;grid-row:1;min-width:0;}
 body.app-light .workspace > header .app-header-title {min-width:0;}
 body.app-light .workspace > header .app-header-title h1 {white-space:normal;overflow-wrap:normal;word-break:normal;font-size:18px;}
 body.app-light .workspace > header .app-top-right {display:contents;}
 body.app-light .workspace > header .nas-global-switch {grid-column:1/-1;grid-row:2;width:100%;box-sizing:border-box;margin:0;padding:5px 8px;}
 body.app-light .workspace > header .nas-global-switch label {display:block;flex:0 0 auto;}
 body.app-light .workspace > header .nas-global-switch select {width:100%;max-width:none;flex:1 1 auto;min-width:0;font-size:12px;}
 body.app-light .workspace > header .app-user-dropdown {grid-column:2;grid-row:1;justify-self:end;}
 body.app-light .workspace > header .app-top-right>.badge {display:none;}
}
/* Explicit sizing wins over earlier sidebar rules loaded after icon definitions. */
body.app-light .app-sidebar nav a.app-nav-link .app-nav-icon {width:30px;height:30px;flex:0 0 30px;}
