:root {
  --bg: #F5F5F5;
  --page-bg-start: #F7F7F7;
  --page-bg-end: #F3F3F3;
  --surface: #fff;
  --surface-2: #fafaf8;
  --surface-3: #f4f3ee;
  --border: #e6e5de;
  --text: #1a1a2e;
  --text-dim: #5a5a72;
  --text-muted: #8e8ea0;
  --c-azure: #0078d4;
  --c-m365: #d83b01;
  --c-entra: #107c10;
  --c-security: #5c2d91;
  --c-partner: #e97c00;
  --c-intune: #00a4ef;
  --c-winserver: #7a7574;
  --c-azure-bg: rgba(0, 120, 212, .08);
  --c-m365-bg: rgba(216, 59, 1, .08);
  --c-entra-bg: rgba(16, 124, 16, .08);
  --c-security-bg: rgba(92, 45, 145, .08);
  --c-partner-bg: rgba(233, 124, 0, .08);
  --c-intune-bg: rgba(0, 164, 239, .08);
  --c-winserver-bg: rgba(122, 117, 116, .08);
  --green: #f59e0b;
  --nav-item-hover-bg: color-mix(in srgb, var(--green) 12%, var(--surface) 88%);
  --nav-item-active-bg: color-mix(in srgb, var(--green) 16%, var(--surface) 84%);
  --orange: #d97706;
  --red: #dc2626;
  --sev-crit: #dc2626;
  --sev-imp: #d97706;
  --sev-mod: #2563eb;
  --sev-low: #6b7280;
  --modal-bg: #fff;
  --shadow: rgba(0, 0, 0, .15);
  --topnav-offset: 121px;
  --mobile-safe-top: env(safe-area-inset-top, 0px);
  --mobile-safe-bottom: env(safe-area-inset-bottom, 0px);
  --networking-sticky-offset: 104px
}

[data-theme="dark"] {
  --bg: #0f1117;
  --page-bg-start: #111520;
  --page-bg-end: #0f1117;
  --surface: #181a24;
  --surface-2: #1f2231;
  --surface-3: #282b3a;
  --border: #2e3145;
  --text: #e2e4ed;
  --text-dim: #a0a3b5;
  --text-muted: #6b6f82;
  --c-azure: #4da6ff;
  --c-azure-bg: rgba(0, 120, 212, .15);
  --c-m365: #ff8a5c;
  --c-m365-bg: rgba(216, 59, 1, .15);
  --c-entra: #4eca4e;
  --c-entra-bg: rgba(16, 124, 16, .15);
  --c-security: #b088d4;
  --c-security-bg: rgba(92, 45, 145, .15);
  --c-partner: #ffaa44;
  --c-partner-bg: rgba(233, 124, 0, .15);
  --c-intune: #5ec4f5;
  --c-intune-bg: rgba(0, 164, 239, .15);
  --c-winserver: #a89f9e;
  --c-winserver-bg: rgba(122, 117, 116, .15);
  --sev-crit: #ff6b6b;
  --sev-imp: #fbbf24;
  --sev-mod: #60a5fa;
  --sev-low: #9ca3af;
  --modal-bg: #1f2231;
  --shadow: rgba(0, 0, 0, .5);
  --nav-item-hover-bg: color-mix(in srgb, var(--green) 18%, var(--surface) 82%);
  --nav-item-active-bg: color-mix(in srgb, var(--green) 22%, var(--surface) 78%)
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}

html,
body {
  overflow-x: hidden
}

body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  background: linear-gradient(180deg, var(--page-bg-start) 0%, var(--page-bg-end) 34%, var(--bg) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s
}

#appRoot {
  display: none;
}

html[data-auth-state="authenticated"][data-app-ready="true"] #appRoot {
  display: block;
}

.auth-splash {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-splash-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  text-align: center;
}

.auth-splash-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}

.auth-splash-message {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-splash-details {
  margin-top: 8px;
  min-height: 18px;
  color: var(--text-dim);
  font-size: 12px;
}

.auth-splash-actions {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.auth-splash-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 8px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.auth-splash-btn-primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

html[data-auth-state="authenticated"][data-app-ready="true"] .auth-splash {
  display: none;
}

.ctr {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 24px
}

/* ── Top Navigation ── */
.topnav {
  background: var(--surface);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--mobile-safe-top) 24px 0
}

.topnav::before,
.topnav::after {
  display: none
}

.topnav-top {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 84px;
  min-width: 0
}

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none
}

.topnav-brand-text {
  border-left: 1.5px solid var(--border);
  padding-left: 14px
}

.topnav-brand-text h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.5px;
  line-height: 1.1;
  color: var(--text)
}

.topnav-brand-text h1 .brand-blue {
  color: var(--green)
}

.topnav-brand-text p {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: .1px;
  margin-top: 3px
}

.topnav-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.mobile-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  border: none;
  background: rgba(0, 0, 0, .34);
  z-index: 980;
}

.topnav-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none
}

.topnav-icon:hover {
  background: var(--nav-item-hover-bg);
  color: var(--green);
  border-color: var(--green)
}

.profile-menu {
  position: relative;
}

.profile-menu-btn {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all .15s;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-menu-btn:hover,
.profile-menu-btn:focus-visible,
.profile-menu.open .profile-menu-btn {
  background: var(--nav-item-hover-bg);
  color: var(--green);
  border-color: var(--green);
}

.profile-menu-avatar {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 252px;
  background: color-mix(in srgb, var(--surface) 94%, #fff 6%);
  border: 1px solid color-mix(in srgb, var(--border) 82%, var(--green) 18%);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.15);
  backdrop-filter: blur(6px);
  z-index: 260;
  padding: 9px;
  opacity: 0;
  transform: translateY(4px) scale(.985);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}

.profile-menu.open .profile-menu-dropdown {
  opacity: 1;
  transform: translateY(0) scale(1);
  visibility: visible;
  pointer-events: auto;
  transition: opacity .16s ease, transform .16s ease;
}

.profile-menu-user {
  padding: 8px 9px 9px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, var(--green) 12%);
  margin-bottom: 8px;
}

.profile-menu-name {
  font-size: 12px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

.profile-menu-email {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.profile-menu-item {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent 24%);
  background: color-mix(in srgb, var(--surface-2) 84%, transparent 16%);
  color: var(--text-dim);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  transition: all .14s ease;
}

.profile-menu-item:hover {
  background: color-mix(in srgb, var(--green) 10%, var(--surface) 90%);
  border-color: color-mix(in srgb, var(--green) 58%, var(--border) 42%);
  color: var(--text);
}

.profile-menu-item[disabled] {
  opacity: .55;
  cursor: default;
}

.topnav-bottom {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 0
}

.topnav-bottom::-webkit-scrollbar {
  display: none
}

.nav-section {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-right: 20px;
  margin-right: 12px;
  margin-bottom: 0
}

.nav-section::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border)
}

.nav-section:last-child::after {
  display: none
}

.nav-section:last-child {
  padding-right: 0;
  margin-right: 0
}

.nav-section-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .9px;
  margin-bottom: 4px;
  padding-left: 10px
}

.nav-section:nth-child(1) .nav-section-label {
  color: var(--green)
}

.nav-section:nth-child(2) .nav-section-label {
  color: var(--green)
}

.nav-section:nth-child(3) .nav-section-label {
  color: var(--green)
}

.nav-section:nth-child(4) .nav-section-label {
  color: var(--green)
}

.nav-section-items {
  display: flex;
  align-items: stretch;
  gap: 2px;
  flex: 1
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
  position: relative;
  margin-bottom: 0;
  border-radius: 10px 10px 0 0
}

.nav-item:hover {
  color: var(--green);
  background: var(--nav-item-hover-bg)
}

.nav-item.active {
  color: var(--green);
  border-bottom-color: var(--green);
  background: var(--nav-item-active-bg);
  font-weight: 600
}

.nav-section:nth-child(2) .nav-item:hover {
  color: var(--green);
  background: var(--nav-item-hover-bg)
}

.nav-section:nth-child(2) .nav-item.active {
  color: var(--green);
  border-bottom-color: var(--green);
  background: var(--nav-item-active-bg)
}

.nav-section:nth-child(3) .nav-item:hover {
  color: var(--green);
  background: var(--nav-item-hover-bg)
}

.nav-section:nth-child(3) .nav-item.active {
  color: var(--green);
  border-bottom-color: var(--green);
  background: var(--nav-item-active-bg)
}

.nav-section:nth-child(4) .nav-item:hover {
  color: var(--green);
  background: var(--nav-item-hover-bg)
}

.nav-section:nth-child(4) .nav-item.active {
  color: var(--green);
  border-bottom-color: var(--green);
  background: var(--nav-item-active-bg)
}

.nav-item span {
  position: relative;
  z-index: 1
}

.nav-item.nav-item-disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none
}

.nav-badge {
  background: var(--c-azure);
  color: #fff;
  border-radius: 8px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 700;
  position: relative;
  z-index: 1
}

.nav-badge.red {
  background: var(--red)
}

.main-content {
  max-width: 1200px;
  margin: var(--topnav-offset) auto 28px;
  padding: 0 20px;
  width: calc(100% - 20px);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 12px 12px;
  display: flow-root;
  position: relative;
  overflow-x: clip
}

.main-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  pointer-events: none;
  z-index: 0
}

.admin-page .topnav {
  z-index: 1200
}

header {
  display: none
}

.tb {
  display: none
}

.tp {
  padding-top: 0
}

.tp,
.costx,
.anl,
.networking-block,
.networking-analytics {
  min-width: 0
}

@media (max-width:980px) {
  :root {
    --topnav-offset: 88px;
    --networking-sticky-offset: 84px
  }

  body.mobile-nav-open {
    overflow: hidden
  }

  .mobile-nav-toggle {
    display: inline-flex
  }

  .topnav {
    padding-left: 10px;
    padding-right: 10px
  }

  .topnav-top {
    height: auto;
    min-height: 72px;
    padding: 8px 0;
    flex-wrap: wrap;
    gap: 8px
  }

  .topnav-brand {
    flex: 1 1 auto
  }

  .topnav-brand img {
    width: 40px !important;
    height: 40px !important
  }

  .topnav-brand-text {
    padding-left: 10px
  }

  .topnav-brand-text h1 {
    font-size: 18px
  }

  .topnav-brand-text p {
    display: none
  }

  .top-tools {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 6px
  }

  .top-tools>.rfb {
    min-height: 40px
  }

  .gsw {
    width: 100%;
    min-width: 0;
    order: 4
  }

  #gSearchResults {
    min-width: 0;
    width: 100%;
    right: auto;
    left: 0
  }

  .scope-panel {
    position: fixed;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: calc(12px + var(--mobile-safe-bottom));
    width: auto;
    min-width: 0;
    max-height: 78dvh;
    overflow: auto
  }

  .topnav-bottom {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(86vw, 340px);
    max-width: 340px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    z-index: 1001;
    padding: calc(18px + var(--mobile-safe-top)) 12px calc(20px + var(--mobile-safe-bottom));
    overflow-y: auto;
    transform: translateX(-104%);
    transition: transform .22s ease;
    display: block
  }

  body.mobile-nav-open .topnav-bottom {
    transform: translateX(0)
  }

  .mobile-nav-backdrop {
    display: block;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease
  }

  body.mobile-nav-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto
  }

  .nav-section {
    margin-right: 0;
    padding-right: 0;
    margin-bottom: 8px
  }

  .nav-section::after {
    display: none
  }

  .nav-section-label {
    display: block;
    font-size: 10px;
    margin-bottom: 6px;
    padding-left: 2px
  }

  .nav-section-items {
    display: block
  }

  .nav-item {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    margin-bottom: 4px
  }

  .main-content {
    width: 100%;
    margin-top: var(--topnav-offset);
    margin-bottom: 16px;
    border-radius: 0;
    padding: 0 12px
  }

  .main-content::before {
    display: none
  }

  .rfb,
  .scope-dd-btn,
  .showback-period-select,
  .authi,
  .fsel {
    min-height: 42px
  }
}

@media(max-width:768px) {
  :root {
    --topnav-offset: 97px;
    --networking-sticky-offset: 88px
  }

  .topnav-brand-text p {
    display: none
  }

  .nav-section-label {
    display: none
  }

  .nav-section-items {
    padding-top: 4px
  }

  .nav-item {
    padding: 0 8px 8px;
    font-size: 12px
  }
}

.tt {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  color: var(--text-dim);
  text-decoration: none
}

.tt:hover {
  border-color: var(--text-muted);
  color: var(--text)
}

.tb {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-top: 20px;
  overflow-x: auto
}

.tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .2s;
  white-space: nowrap
}

.tab:hover {
  color: var(--text)
}

.tab.active {
  color: var(--c-azure);
  border-bottom-color: var(--c-azure)
}

.tc {
  font-size: 11px;
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 6px
}

.tp {
  display: none
}

.tp.active {
  display: block
}

.sr {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted)
}

.st {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto
}

.ctl {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 11px 0 11px;
  border-bottom: 1px solid var(--border)
}

.fc {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
  flex: 1
}

.chip {
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
  user-select: none
}

.chip:hover {
  border-color: var(--text-muted);
  color: var(--text)
}

.chip.ca.active {
  background: var(--c-azure-bg);
  border-color: var(--c-azure);
  color: var(--c-azure)
}

.chip.ce.active {
  background: var(--c-entra-bg);
  border-color: var(--c-entra);
  color: var(--c-entra)
}

.chip.cm.active {
  background: var(--c-m365-bg);
  border-color: var(--c-m365);
  color: var(--c-m365)
}

.chip.cs.active {
  background: var(--c-security-bg);
  border-color: var(--c-security);
  color: var(--c-security)
}

.chip.cp.active {
  background: var(--c-partner-bg);
  border-color: var(--c-partner);
  color: var(--c-partner)
}

.chip.ci.active {
  background: var(--c-intune-bg);
  border-color: var(--c-intune);
  color: var(--c-intune)
}

.chip.cw.active {
  background: var(--c-winserver-bg);
  border-color: var(--c-winserver);
  color: var(--c-winserver)
}

.chip.cd.active {
  background: var(--surface-3);
  border-color: var(--text-muted);
  color: var(--text)
}

.rb {
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  height: 22px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  white-space: nowrap
}

.rb:hover {
  border-color: var(--red);
  color: var(--red)
}

.fsel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 18px 0 8px;
  height: 28px;
  font-size: 12px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  cursor: pointer;
  transition: border-color .2s;
  appearance: none;
  max-width: 120px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23bbb'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 7px center
}

.fsel:focus {
  outline: none;
  border-color: var(--c-azure)
}

.fsel option {
  background: var(--surface);
  color: var(--text)
}

.frow {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 0 10px;
  border-bottom: 1px solid var(--border)
}

.frow label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  white-space: nowrap
}

.fa-sep {
  display: inline-block;
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 2px;
  flex-shrink: 0;
  align-self: center
}

.fa-seg {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0
}

.di {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 8px;
  height: 28px;
  font-size: 12px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
  width: 110px
}

.di:focus {
  border-color: var(--c-azure)
}

.di::-webkit-calendar-picker-indicator {
  filter: var(--cal-icon, none);
  cursor: pointer
}

[data-theme="dark"] .di::-webkit-calendar-picker-indicator {
  filter: invert(0.8)
}

.drb {
  padding: 0 10px;
  height: 28px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: all .2s;
  font-family: inherit
}

.drb:hover {
  border-color: var(--red);
  color: var(--red)
}

.sb {
  position: relative
}

.sb input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px 8px 36px;
  font-size: 13px;
  color: var(--text);
  font-family: inherit;
  width: 260px;
  outline: none;
  transition: border-color .2s
}

.sb input::placeholder {
  color: var(--text-muted)
}

.sb input:focus {
  border-color: var(--c-azure)
}

.sb svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted)
}

.authw {
  position: relative;
  flex-shrink: 0;
  margin-left: auto
}

.authb {
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  padding: 0 11px;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
  white-space: nowrap
}

.authb:hover {
  border-color: var(--text-dim);
  color: var(--text)
}

.authb.on {
  color: var(--c-azure);
  border-color: var(--c-azure);
  background: var(--c-azure-bg)
}

.authdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green)
}

.authp {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 300px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px;
  z-index: 220;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
  display: none
}

.authp.open {
  display: block
}

.authttl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--text-muted);
  margin-bottom: 8px
}

.authmsg {
  display: none;
  margin-bottom: 8px;
  padding: 7px 8px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.4
}

.authmsg.ok {
  display: block;
  background: rgba(245, 158, 11, .11);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, .25)
}

.authmsg.err {
  display: block;
  background: rgba(220, 38, 38, .11);
  color: var(--red);
  border: 1px solid rgba(220, 38, 38, .25)
}

.authf {
  display: flex;
  flex-direction: column;
  gap: 7px
}

.authi {
  width: 100%;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 0 10px;
  font-size: 12.5px;
  color: var(--text);
  font-family: inherit;
  outline: none
}

.authi:hover {
  border-color: var(--green);
  background: rgba(245, 158, 11, .04)
}

.authi:focus {
  border-color: var(--c-azure);
  background: var(--surface)
}

.admin-meta {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: .04em
}

.admin-select-wrap {
  position: relative
}

.admin-select-wrap::after {
  content: '▼';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 11px;
  pointer-events: none
}

.admin-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 32px;
  cursor: pointer
}

.vnet-compact-cell {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.vnet-customer-cell {
  font-weight: 600;
  color: var(--text);
}

.autha {
  display: flex;
  gap: 7px
}

.autha button {
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 12px;
  padding: 0 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s
}

.autha button:hover {
  border-color: var(--green);
  color: var(--green);
  background: #F7FAF6
}

.autha button.pri {
  background: var(--c-azure);
  border-color: var(--c-azure);
  color: #fff
}

.autha button.pri:hover {
  filter: brightness(.95)
}

.authmeta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px
}

.authu {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
  word-break: break-all
}

.gsw {
  position: relative;
  width: 280px;
  margin-left: 0;
  margin-right: 0;
  flex-shrink: 0
}

.gsb {
  display: flex;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s
}

.gsb:hover {
  border-color: var(--green);
  background: #F7FAF6
}

.gsb:focus-within {
  border-color: var(--c-azure);
  background: var(--surface)
}

.gsb>svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin: 0 7px 0 10px;
  pointer-events: none
}

#gSI {
  flex: 1;
  background: transparent;
  border: none;
  padding: 5px 4px;
  font-size: 12px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  min-width: 0
}

#gSI::placeholder {
  color: var(--text-muted)
}

#gSClear {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 5px;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0
}

#gSClear:hover {
  color: var(--text)
}

#gScopeBtn {
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  padding: 0 9px;
  height: 30px;
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  font-family: inherit;
  flex-shrink: 0;
  transition: background .15s
}

#gScopeBtn:hover {
  background: #F7FAF6;
  color: var(--green)
}

.gspanel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  z-index: 200;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
  display: none
}

.gspanel.open {
  display: block
}

.gsp-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin-bottom: 6px;
  padding: 0 4px
}

.gsp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-dim);
  transition: background .15s;
  border: none;
  background: transparent;
  text-align: left;
  width: 100%;
  font-family: inherit
}

.gsp-item:hover {
  background: var(--surface-2);
  color: var(--text)
}

.gsp-item.active {
  color: var(--text)
}

.gsp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all .15s
}

.gsp-item.active .gsp-dot {
  background: var(--c-azure);
  border-color: var(--c-azure)
}

.top-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: -8px;
  flex-wrap: wrap;
  min-width: 0;
  position: relative
}

.filter-summary {
  font-size: 11px;
  color: var(--text-muted);
  max-width: 380px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scope-panel {
  position: absolute;
  top: 40px;
  left: 0;
  z-index: 250;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  min-width: 520px;
  max-width: 760px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}

.scope-dd {
  position: relative
}

.scope-dd-btn {
  width: 100%;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12.5px;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  cursor: pointer;
}

.scope-dd-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: #F7FAF6
}

.scope-dd-btn:focus {
  outline: none;
  border-color: var(--c-azure);
  background: var(--surface)
}

.scope-dd-caret {
  font-size: 11px;
  color: var(--text-muted)
}

.scope-dd-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  z-index: 260;
  display: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  max-height: 280px;
  overflow: auto;
}

.scope-dd-menu.open {
  display: block
}

.scope-dd-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 13px;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.scope-dd-item:hover {
  background: #F7FAF6;
  color: var(--green)
}

.scope-dd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2f7fd5;
  opacity: .8;
  flex-shrink: 0;
}

.scope-subscription-list {
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
}

#gSearchResults {
  max-height: 320px;
  overflow: auto;
  left: auto;
  right: 0;
  min-width: 480px
}

#gSearchResults .gsp-item {
  align-items: flex-start
}

#gSearchResults .gsp-meta {
  font-size: 11px;
  color: var(--text-muted)
}

#gSearchResults .gsp-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text)
}

#gSearchResults .gsp-snippet {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.35;
  margin-top: 2px
}

.tbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 8px;
  font-size: 12px;
  color: var(--text-muted)
}

.tbar .cnt {
  color: var(--text-dim);
  font-weight: 600
}

.rfb {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-dim);
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px
}

.rfb:hover {
  border-color: var(--green);
  color: var(--green);
  background: #F7FAF6
}

.rfb.loading svg {
  animation: spin 1s linear infinite
}

.customer-row-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap
}

.customer-row-action {
  min-width: 54px;
  justify-content: center;
  white-space: nowrap;
  padding: 5px 10px
}

.customer-row-action:hover {
  border-color: rgba(245, 158, 11, .45);
  color: var(--green);
  background: #F7FAF6
}

.customer-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.customer-type-badge.platform {
  color: var(--c-azure);
  background: var(--c-azure-bg);
  border-color: rgba(0, 120, 212, .45);
}

.customer-type-badge.client {
  color: var(--c-entra);
  background: var(--c-entra-bg);
  border-color: rgba(16, 124, 16, .45);
}

.customer-type-badge.shared {
  color: var(--orange);
  background: rgba(217, 119, 6, .1);
  border-color: rgba(217, 119, 6, .45);
}

.showback-link-btn {
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.showback-link-btn:hover {
  color: var(--c-azure)
}

.showback-link-btn.is-platform {
  font-weight: 700;
}

.showback-customer-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.showback-customer-cell.is-child {
  padding-left: 14px;
}

.showback-linked-prefix {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1;
  flex: 0 0 auto;
}

.showback-breakdown {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.showback-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--surface-3);
}

.showback-breakdown-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.showback-breakdown-left {
  min-width: 0;
  flex: 1;
}

.showback-breakdown-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.showback-breakdown-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.showback-breakdown-right {
  text-align: right;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text);
  white-space: nowrap;
}

.showback-breakdown-right div {
  margin-top: 2px;
}

.showback-breakdown-right div:first-child {
  margin-top: 0;
  font-size: 13px;
  font-weight: 600;
}

.showback-role-grid {
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.showback-role-grid > div {
  min-width: 0;
}

.showback-detail-section {
  margin-top: 18px;
}

.showback-detail-section-tight {
  margin-bottom: 8px;
}

.showback-reconciliation-card {
  margin-top: 8px;
}

.showback-detail-list-shell {
  margin-top: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-2);
  overflow: hidden;
}

.showback-detail-list-scroll {
  max-height: none;
  overflow: visible;
  padding: 0 10px 10px;
}

.showback-line-details {
  margin-top: 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.showback-line-details > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 9px 10px;
}

.showback-line-details > summary::-webkit-details-marker {
  display: none;
}

.showback-line-details > summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
}

.showback-line-details[open] > summary::before {
  content: "▾";
}

.showback-rg-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.showback-rg-summary-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showback-rg-summary-amount {
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.showback-line-details .showback-detail-list-shell {
  margin: 0 8px 8px;
}

.showback-charge-list {
  margin-top: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-2);
  overflow: hidden;
}

.showback-charge-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.showback-charge-row:last-child {
  border-bottom: none;
}

.showback-charge-main {
  min-width: 0;
}

.showback-charge-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.showback-charge-meta {
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.showback-charge-amount {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.showback-recon-list {
  background: transparent;
}

.showback-invoice-summary {
  margin: 0 0 18px;
}

.showback-finance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 18px;
  margin-bottom: 14px;
}

.showback-finance-item {
  min-width: 0;
}

.showback-finance-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.showback-finance-value {
  font-size: 30px;
  font-size: clamp(18px, 2.5vw, 30px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
}

.showback-finance-value.is-excluded {
  color: var(--orange);
}

.showback-finance-value.is-strong {
  color: var(--green);
}

.showback-net-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(34, 197, 94, .3);
  border-left: 8px solid rgba(34, 197, 94, .8);
  border-radius: 8px;
  background: color-mix(in srgb, var(--green) 6%, var(--surface) 94%);
}

.showback-net-hero-title {
  font-size: 36px;
  font-size: clamp(23px, 4.3vw, 36px);
  line-height: 1.02;
  font-weight: 700;
  color: var(--text);
}

.showback-net-hero-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.showback-net-hero-value {
  font-size: 42px;
  font-size: clamp(30px, 5.2vw, 42px);
  line-height: 1;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.showback-section-title {
  font-size: 27px;
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.showback-section-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 10px;
}

.showback-role-summary-card {
  margin-bottom: 18px;
}

.showback-role-summary-card-tight {
  margin-top: -6px;
}

.showback-role-summary-shell {
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--surface-2);
  padding: 10px 12px;
}

.showback-role-summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.showback-role-summary-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.showback-role-summary-value {
  font-size: 24px;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.showback-role-block {
  margin-top: 12px;
}

.showback-role-block-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.showback-role-block-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.showback-role-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 7px 2px;
  border-bottom: 1px solid var(--border-subtle);
}

.showback-role-line:last-child {
  border-bottom: none;
}

.showback-role-line.is-emphasis {
  background: color-mix(in srgb, var(--green) 7%, var(--surface-2) 93%);
  border-radius: 7px;
  margin-top: 6px;
  padding: 8px 10px;
  border-bottom: none;
}

.showback-role-line-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.showback-role-line-value {
  font-size: 22px;
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.05;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.showback-role-line-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--orange);
  font-weight: 500;
}

.showback-detail-stack {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.showback-detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.showback-detail-stat {
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--surface-2);
}

.showback-detail-stat.showback-detail-stat-wide {
  grid-column: 1 / -1;
}

.showback-detail-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.showback-detail-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  word-break: break-word;
}

.showback-detail-card {
  border-top: 1px solid var(--border);
  padding: 16px 0 4px;
  margin-top: 4px;
}

.showback-detail-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.showback-detail-card-title {
  font-size: 32px;
  font-size: clamp(20px, 3vw, 32px);
  line-height: 1.08;
  font-weight: 700;
  color: var(--text);
}

.showback-detail-card-value {
  font-size: 28px;
  font-size: clamp(16px, 2.1vw, 28px);
  line-height: 1.1;
  font-weight: 700;
  color: var(--text);
}

.showback-detail-card-meta {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
}

.showback-detail-excluded {
  color: var(--orange);
}

.showback-detail-billed {
  color: var(--green);
}

.showback-detail-breakdown {
  margin-top: 10px;
}

.showback-owned-trace-wrap {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.showback-owned-trace-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.showback-detail-grouped-note {
  margin-top: 8px;
  margin-bottom: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

.sbi-root {
  --sbi-bg: #f6f5f3;
  --sbi-panel: #fbfaf8;
  --sbi-card: #f9f8f6;
  --sbi-border: #dedbd6;
  --sbi-border-soft: #e8e4de;
  --sbi-text: #1f2130;
  --sbi-muted: #72768a;
  --sbi-muted-2: #8f93a3;
  --sbi-green: #1f7a4c;
  --sbi-green-soft: #e8eee5;
  --sbi-green-accent: #90c06a;
  --sbi-orange: #d8781a;
  border-top: 0;
  padding-top: 0;
  color: var(--sbi-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] .sbi-root {
  --sbi-bg: transparent;
  --sbi-panel: rgba(24, 26, 36, 0.35);
  --sbi-card: rgba(24, 26, 36, 0.42);
  --sbi-border: rgba(120, 130, 166, 0.36);
  --sbi-border-soft: rgba(120, 130, 166, 0.26);
  --sbi-text: #e8ebf5;
  --sbi-muted: #c0c7da;
  --sbi-muted-2: #aab3cb;
  --sbi-green: #56c488;
  --sbi-green-soft: rgba(72, 116, 86, 0.3);
  --sbi-green-accent: #8ac16c;
  --sbi-orange: #ff9a3d;
}

.sbi-stats-grid {
  align-items: start;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 24px;
  margin-bottom: 10px;
}

.sbi-stat-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sbi-muted);
  line-height: 1.3;
}

.sbi-stat-value {
  font-size: 16px;
  line-height: 1.15;
  font-weight: 600;
  color: var(--sbi-text);
}

.sbi-green {
  color: var(--sbi-green);
}

.sbi-orange {
  color: var(--sbi-orange);
}

.sbi-strike {
  text-decoration: line-through;
}

.sbi-hero {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  background: var(--sbi-green-soft);
  border: 1px solid var(--sbi-border);
  border-radius: 10px;
  overflow: hidden;
  margin: 6px 0 14px;
}

.sbi-hero-accent {
  height: 100%;
  background: var(--sbi-green-accent);
}

.sbi-hero-copy {
  padding: 10px 12px 9px 10px;
}

.sbi-hero-title {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 2px;
}

.sbi-hero-subtitle {
  margin: 0;
  color: var(--sbi-muted);
  font-size: 11px;
  line-height: 1.4;
}

.sbi-hero-amount {
  padding: 10px 14px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sbi-section-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.sbi-card {
  background: var(--sbi-card);
  border: 1px solid var(--sbi-border);
  border-radius: 10px;
  padding: 10px 10px 6px;
  box-shadow: 0 1px 0 rgba(31, 33, 48, 0.02);
}

.sbi-top-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--sbi-border-soft);
  margin-bottom: 7px;
}

.sbi-top-row h3 {
  margin: 0 0 3px;
  font-size: 14px;
  line-height: 1.2;
}

.sbi-top-row p {
  margin: 0;
  color: var(--sbi-muted);
  font-size: 11px;
  line-height: 1.45;
  max-width: 620px;
}

.sbi-raw-total-block {
  min-width: 140px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #eaf3ff;
  border: 1px solid #d5e6ff;
  text-align: center;
}

.sbi-raw-total-label {
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5f7697;
  margin-bottom: 3px;
}

.sbi-raw-total-value {
  font-size: 18px;
  line-height: 1.1;
  font-weight: 700;
  color: #274c77;
  white-space: nowrap;
}

.sbi-breakdown-section {
  padding: 0 0 2px;
  border-bottom: 1px solid var(--sbi-border-soft);
  margin-bottom: 6px;
}

.sbi-breakdown-section:last-of-type {
  margin-bottom: 6px;
}

.sbi-section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 7px;
  margin-bottom: 3px;
}

.sbi-badge {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #efeeeb;
  color: var(--sbi-text);
  font-weight: 700;
  font-size: 12px;
  margin-top: 1px;
}

.sbi-section-head h4 {
  margin: 0 0 2px;
  font-size: 14px;
  line-height: 1.2;
}

.sbi-section-head p {
  margin: 0;
  color: var(--sbi-muted);
  font-size: 11px;
  line-height: 1.4;
  max-width: 610px;
}

.sbi-head-value {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.sbi-subline {
  margin: 3px 0 0 27px;
  font-size: 12px;
  font-weight: 600;
}

.sbi-summary-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 4px 6px;
  border-radius: 7px;
}

.sbi-row-label {
  font-size: 12px;
  font-weight: 600;
}

.sbi-row-value {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.sbi-summary-row-soft {
  background: #eef1ea;
  border: 1px solid var(--sbi-border);
}

.sbi-charge-list-footer {
  padding: 5px 8px 7px;
  border-top: 1px solid var(--sbi-border-soft);
}

.sbi-inline-note {
  margin-top: -3px;
  padding: 0 6px 4px;
  color: var(--sbi-muted);
  font-size: 11px;
}

.sbi-subsection {
  margin-top: 12px;
}

.sbi-subsection-note {
  margin: 0 0 5px;
  color: var(--sbi-muted);
  font-size: 11px;
  line-height: 1.45;
}

.sbi-charge-list,
.sbi-total-list {
  background: var(--sbi-card);
  border: 1px solid var(--sbi-border);
  border-radius: 10px;
  overflow: hidden;
}

.sbi-charge-item,
.sbi-total-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 7px 10px;
  align-items: start;
  border-bottom: 1px solid var(--sbi-border-soft);
}

.sbi-charge-item:last-child,
.sbi-total-item:last-child {
  border-bottom: 0;
}

.sbi-charge-item h4 {
  margin: 0 0 2px;
  font-size: 13px;
  line-height: 1.25;
}

.sbi-charge-item p {
  margin: 0;
  color: var(--sbi-muted);
  font-size: 10.5px;
  line-height: 1.4;
  max-width: 620px;
}

.sbi-charge-value,
.sbi-total-value {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  padding-top: 1px;
}

.sbi-total-label {
  font-size: 12px;
  line-height: 1.25;
}

.sbi-total-item-net {
  background: #eef1ea;
}

.sbi-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px 2px;
  border-radius: 5px;
  background: rgba(31, 122, 76, 0.06);
  color: #125c38;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sbi-total-item .sbi-total-value {
  color: var(--sbi-green);
  font-size: 14px;
}

.sbi-detail-sections {
  margin-top: 20px;
}

.sbi-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 14px;
}

.sbi-detail-stat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sbi-muted-2);
  margin-bottom: 3px;
}

.sbi-detail-stat-value {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.1;
}

.sbi-detail-block + .sbi-detail-block {
  margin-top: 18px;
}

.sbi-detail-card {
  padding: 10px 10px 0;
  border: 1px solid var(--sbi-border);
  border-radius: 10px;
  background: var(--sbi-card);
  overflow: hidden;
}

.sbi-detail-header h3 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.2;
}

.sbi-detail-meta {
  font-size: 13px;
  color: var(--sbi-text);
  margin-bottom: 5px;
}

.sbi-detail-inline {
  font-size: 11px;
  line-height: 1.45;
}

.sbi-detail-inline.sbi-billed {
  color: var(--sbi-green);
}

.sbi-detail-inline.sbi-excluded {
  color: var(--sbi-orange);
}

.sbi-platform-head {
  padding: 8px 0 5px;
  font-size: 12px;
  color: var(--sbi-muted);
  border-top: 1px solid var(--sbi-border-soft);
  margin-top: 8px;
}

.sbi-detail-card .sbi-platform-head:first-of-type {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.sbi-platform-head strong {
  color: var(--sbi-text);
}

.sbi-platform-subscriptions {
  margin-top: 4px;
  color: #a6aab8;
  font-size: 11px;
  line-height: 1.4;
  word-break: break-word;
}

.sbi-net-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 16px;
  margin-top: 5px;
}

.sbi-net-summary-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sbi-muted-2);
  margin-bottom: 2px;
}

.sbi-net-summary-value {
  font-size: 24px;
  font-size: clamp(15px, 2.2vw, 24px);
  line-height: 1.1;
  font-weight: 600;
  color: var(--sbi-text);
}

.sbi-line-table {
  border-top: 1px solid var(--sbi-border-soft);
  margin-top: 6px;
}

.sbi-line-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  border-top: 1px solid var(--sbi-border-soft);
}

.sbi-line-row:first-child {
  border-top: 0;
}

.sbi-line-name {
  font-size: 12px;
  line-height: 1.35;
}

.sbi-consumed {
  color: var(--sbi-muted);
  font-size: 0.9em;
}

.sbi-line-amount {
  font-size: 12px;
  white-space: nowrap;
}

.sbi-line-amount-strike {
  text-decoration: line-through;
  color: var(--sbi-muted);
}

.sbi-line-status {
  min-width: 80px;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.sbi-line-status-billed {
  color: var(--sbi-green);
}

.sbi-line-status-excluded {
  color: var(--sbi-orange);
}

.sbi-line-table-compact {
  margin-top: 5px;
}

.sbi-line-table-compact .sbi-line-row {
  padding: 5px 0;
  gap: 10px;
}

.sbi-line-row-metric .sbi-line-name {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sbi-muted-2);
}

.sbi-line-row-metric .sbi-line-amount {
  font-size: 13px;
  font-weight: 700;
}

.sbi-subscription-groups {
  margin-top: 12px;
}

.sbi-subscription-details,
.sbi-resource-group-card {
  border: 1px solid var(--sbi-border);
  border-radius: 8px;
  background: var(--sbi-card);
  overflow: hidden;
}

.sbi-subscription-details {
  background: var(--sbi-card);
}

.sbi-subscription-summary,
.sbi-resource-group-summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.sbi-subscription-summary::-webkit-details-marker,
.sbi-resource-group-summary::-webkit-details-marker {
  display: none;
}

.sbi-subscription-summary {
  padding: 8px 12px;
}

.sbi-summary-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--sbi-text);
}

.sbi-summary-subtext {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--sbi-muted);
}

.sbi-summary-icon {
  color: var(--sbi-muted);
  font-size: 13px;
  transition: transform 0.2s ease;
}

.sbi-subscription-details[open] .sbi-summary-icon {
  transform: rotate(180deg);
}

.sbi-resource-groups-list {
  padding: 0 8px 8px;
  border-top: 1px solid var(--sbi-border-soft);
  background: transparent;
}

.sbi-resource-group-card {
  margin-top: 8px;
  border-style: solid;
  background: var(--sbi-card);
}

.sbi-resource-group-summary {
  padding: 7px 10px;
}

.sbi-group-name {
  font-size: 12px;
  font-weight: 700;
  color: #5b6078;
}

.sbi-group-count {
  color: var(--sbi-muted);
  font-weight: 600;
}

.sbi-group-total {
  font-size: 12px;
  font-weight: 700;
  color: #5b6078;
  white-space: nowrap;
}

.sbi-resource-group-body {
  padding: 6px 10px 10px;
  border-top: 1px dashed var(--sbi-border);
  background: transparent;
}

.sbi-group-raw {
  color: var(--sbi-muted);
  font-size: 11px;
  margin-bottom: 6px;
}

.sbi-assigned-resource {
  padding: 7px 0;
  border-top: 1px solid var(--sbi-border-soft);
}

.sbi-assigned-resource:first-of-type {
  border-top: 0;
}

.sbi-assigned-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: start;
}

.sbi-assigned-name,
.sbi-assigned-price {
  font-size: 12px;
  font-weight: 700;
  color: #5b6078;
}

.sbi-assigned-meta {
  margin-top: 3px;
  color: #9a9eb0;
  font-size: 11px;
  line-height: 1.4;
  word-break: break-word;
}

.sbi-assigned-status-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  color: var(--sbi-muted);
  font-size: 11px;
  text-transform: lowercase;
}

.sbi-assigned-status {
  color: var(--sbi-green);
  font-weight: 700;
}

.sbi-excluded-text {
  color: var(--sbi-orange);
}

.sbi-section-footer-total {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 8px -14px 0;
  padding: 8px 14px;
  background: #eef1ea;
  border-top: 1px solid var(--sbi-border);
}

.sbi-root .showback-line-details {
  border: 1px solid var(--sbi-border);
  border-radius: 8px;
  background: var(--sbi-card);
  overflow: hidden;
  margin-top: 8px;
}

.sbi-root .showback-line-details > summary {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 7px 10px;
  color: #5b6078;
  font-size: 12px;
  font-weight: 700;
}

.sbi-root .showback-line-details > summary::before {
  content: none;
}

.sbi-root .showback-line-details > summary::-webkit-details-marker {
  display: none;
}

.sbi-root .showback-line-details > summary .showback-rg-summary-label,
.sbi-root .showback-line-details > summary .showback-rg-summary-amount {
  color: #5b6078;
  font-size: 12px;
  font-weight: 700;
}

.sbi-root .showback-line-details .showback-detail-list-shell {
  margin: 5px 8px 8px;
  border: 1px solid var(--sbi-border-soft);
  border-radius: 7px;
  background: transparent;
}

.sbi-section-footer-chip {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  padding: 2px 8px 3px;
  border-radius: 6px;
  background: rgba(31, 122, 76, 0.08);
  color: #125c38;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sbi-section-footer-value {
  color: var(--sbi-green);
  font-size: 16px;
  line-height: 1.1;
  font-weight: 700;
  white-space: nowrap;
}

[data-theme="dark"] .sbi-group-name,
[data-theme="dark"] .sbi-group-total,
[data-theme="dark"] .sbi-assigned-name,
[data-theme="dark"] .sbi-assigned-price,
[data-theme="dark"] .sbi-root .showback-line-details > summary,
[data-theme="dark"] .sbi-root .showback-line-details > summary .showback-rg-summary-label,
[data-theme="dark"] .sbi-root .showback-line-details > summary .showback-rg-summary-amount {
  color: var(--sbi-text);
}

[data-theme="dark"] .sbi-platform-subscriptions,
[data-theme="dark"] .sbi-assigned-meta,
[data-theme="dark"] .sbi-group-count {
  color: var(--sbi-muted);
}

[data-theme="dark"] .sbi-section-footer-total,
[data-theme="dark"] .sbi-summary-row-soft,
[data-theme="dark"] .sbi-total-item-net {
  background: rgba(86, 196, 136, 0.1);
}

[data-theme="dark"] .sbi-section-footer-chip,
[data-theme="dark"] .sbi-chip {
  background: rgba(86, 196, 136, 0.14);
  color: #90e2b9;
}

[data-theme="dark"] .sbi-raw-total-block {
  background: rgba(77, 131, 194, 0.16);
  border-color: rgba(139, 180, 226, 0.4);
}

[data-theme="dark"] .sbi-raw-total-label {
  color: #b8d1ed;
}

[data-theme="dark"] .sbi-raw-total-value {
  color: #d3e7ff;
}

@media (max-width: 760px) {
  .sbi-top-row {
    grid-template-columns: 1fr;
  }

  .sbi-raw-total-block {
    text-align: left;
    min-width: 0;
  }

  .sbi-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 24px;
  }

  .sbi-hero {
    grid-template-columns: 10px 1fr;
  }

  .sbi-hero-amount {
    grid-column: 2;
    padding-top: 0;
  }

  .sbi-top-row,
  .sbi-section-head,
  .sbi-charge-item,
  .sbi-total-item,
  .sbi-summary-row,
  .sbi-line-row {
    grid-template-columns: 1fr;
  }

  .sbi-head-value,
  .sbi-charge-value,
  .sbi-total-value,
  .sbi-row-value,
  .sbi-line-status {
    text-align: left;
    min-width: 0;
  }

  .sbi-subline {
    margin-left: 0;
  }

  .sbi-detail-grid {
    grid-template-columns: 1fr;
  }

  .sbi-net-summary-grid {
    grid-template-columns: 1fr;
  }

  .sbi-section-footer-total {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.customer-platform-section {
  margin: 0 0 14px
}

.customer-platform-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
}

.customer-platform-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.customer-platform-meta {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.tenant-row-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: nowrap
}

.tenant-row-action {
  min-width: 58px;
  justify-content: center;
  white-space: nowrap;
  padding: 5px 10px
}

.tenant-row-action:hover {
  border-color: rgba(245, 158, 11, .45);
  color: var(--green);
  background: #F7FAF6
}

.tenant-row-action-delete {
  border-color: var(--red) !important;
  color: var(--red) !important
}

.tenant-row-action-delete:hover {
  background: rgba(220, 38, 38, .08) !important;
  border-color: var(--red) !important;
  color: var(--red) !important
}

.tp .rfb:not(.btn-primary):hover {
  border-color: rgba(245, 158, 11, .45);
  color: var(--green);
  background: #F7FAF6
}

.tp#panel-add-customer .rfb:not(.btn-primary):hover {
  border-color: rgba(245, 158, 11, .45);
  color: var(--green);
  background: #F7FAF6
}

.customer-launch-tools {
  gap: 8px;
  flex-wrap: nowrap;
  align-items: center
}

.customer-launch-left,
.customer-launch-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap
}

.customer-launch-right {
  margin-left: auto;
  justify-content: flex-end
}

.customer-filter-select {
  min-width: 188px;
}

.customer-filter-select.customer-filter-env {
  min-width: 150px;
}

.customer-launch-tools .rfb {
  height: 34px;
  padding: 0 12px;
}

.customer-filter-select .authi,
.customer-search-input,
.customer-toolbar-btn {
  height: 34px;
}

.customer-toolbar-btn {
  min-width: 34px;
  justify-content: center;
}

.customer-toolbar-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.customer-launch-tools .rfb.is-active {
  border-color: var(--green);
  color: var(--green);
  background: rgba(245, 158, 11, .1);
}

.customer-launch-box {
  padding-top: 16px;
  padding-bottom: 16px
}

.customer-search-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  justify-content: flex-end
}

.admin-accounts-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 290px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 0 10px;
}

.admin-accounts-search-box:hover {
  border-color: rgba(245, 158, 11, .45);
}

.admin-accounts-search-box:focus-within {
  border-color: var(--c-azure);
  background: var(--surface);
}

.admin-accounts-search-box svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.admin-accounts-search .customer-search-input {
  width: 100%;
  max-width: 100%;
  border: none;
  background: transparent;
  padding: 0;
}

.admin-accounts-search .customer-search-input:hover,
.admin-accounts-search .customer-search-input:focus {
  border: none;
  background: transparent;
}

@media (max-width: 1280px) {
  .customer-launch-tools,
  .customer-launch-left,
  .customer-launch-right {
    flex-wrap: wrap;
  }

  .customer-launch-right {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

.service-choice-btn {
  min-width: 220px;
  justify-content: center;
  font-weight: 600
}

.service-choice-btn span {
  display: inline-flex;
  align-items: center;
  justify-content: center
}

.mapping-main-label {
  font-weight: 700;
  color: var(--text)
}

.mapping-sub-label {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45
}

.customer-connection-box,
.customer-connection-box * {
  text-align: left
}

.customer-connection-head {
  justify-content: space-between
}

.customer-connection-box .anl-bs {
  max-width: none;
  margin-bottom: 14px
}

.customer-connection-box table thead th,
.customer-connection-box table tbody td {
  text-align: left
}

.customer-connection-note {
  text-align: left
}

@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.audit-summary {
  min-height: 40px
}

.audit-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px
}

.audit-stat {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2))
}

.audit-stat-value {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--text)
}

.audit-stat-label {
  margin-top: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  font-weight: 700
}

.audit-feed {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.audit-entry {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2))
}

.audit-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px
}

.audit-entry-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap
}

.audit-entry-user {
  font-size: 14px;
  font-weight: 700;
  color: var(--text)
}

.audit-entry-time {
  text-align: right
}

.audit-entry-age {
  font-size: 13px;
  font-weight: 700;
  color: var(--text)
}

.audit-entry-exact {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px
}

.audit-entry-details {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface-3);
  font: 12px/1.55 'JetBrains Mono', monospace;
  color: var(--text-dim);
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto
}

.audit-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em
}

.audit-pill.info {
  background: var(--c-azure-bg);
  color: var(--c-azure)
}

.audit-pill.success {
  background: rgba(245, 158, 11, .1);
  color: var(--green)
}

.audit-pill.warm {
  background: rgba(217, 119, 6, .12);
  color: var(--orange)
}

.audit-pill.danger {
  background: rgba(220, 38, 38, .1);
  color: var(--red)
}

.audit-empty {
  padding: 20px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center
}

.conn-test-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.conn-test-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2))
}

.conn-test-card.ok {
  border-color: rgba(245, 158, 11, .22)
}

.conn-test-card.fail {
  border-color: rgba(220, 38, 38, .22)
}

.conn-test-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px
}

.conn-test-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text)
}

.conn-test-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px
}

.conn-test-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em
}

.conn-test-status.ok {
  background: rgba(245, 158, 11, .1);
  color: var(--green)
}

.conn-test-status.fail {
  background: rgba(220, 38, 38, .1);
  color: var(--red)
}

.conn-test-section {
  margin-top: 4px
}

.conn-test-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 8px
}

.conn-test-subs {
  margin: 0;
  padding-left: 18px
}

.conn-test-subs li {
  margin-bottom: 8px
}

.conn-test-subs code {
  font-size: 11px
}

.conn-test-error {
  border: 1px solid rgba(220, 38, 38, .18);
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(220, 38, 38, .05);
  color: var(--red);
  font-size: 12px;
  line-height: 1.5
}

.env-select-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end
}

.env-chip-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: var(--surface-2)
}

.env-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: all .15s
}

.env-chip:hover {
  border-color: rgba(245, 158, 11, .45);
  color: var(--green);
  background: #F7FAF6
}

.env-chip input {
  margin: 0
}

.env-chip input:checked+span {
  color: var(--green)
}

.cust-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px
}

.cust-detail-stat {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px 14px 18px;
  background: var(--surface);
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none !important;
  overflow: hidden
}

.cust-detail-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c-azure)
}

.cust-detail-stat:nth-child(2)::before {
  background: var(--c-entra)
}

.cust-detail-stat:nth-child(3)::before {
  background: var(--c-partner)
}

.cust-detail-stat:nth-child(4)::before {
  background: var(--c-security)
}

.cust-detail-stat:nth-child(5)::before {
  background: var(--c-m365)
}

.cust-detail-stat:nth-child(6)::before {
  background: var(--c-intune)
}

.cust-detail-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: 6px
}

.cust-detail-value {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2
}

.cust-detail-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px
}

.cust-detail-section {
  margin-top: 18px
}

.cust-detail-hdr {
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .08em
}

.cust-detail-tenant {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 16px 16px 20px;
  background: var(--surface);
  margin-bottom: 12px;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none !important;
  overflow: hidden
}

.cust-detail-tenant::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c-security)
}

.cust-detail-tenant-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px
}

.cust-detail-tenant-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text)
}

.cust-detail-tenant-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px
}

.cust-detail-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.cust-detail-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--surface)
}

.cust-detail-badge.env {
  color: var(--c-azure);
  background: var(--c-azure-bg);
  border-color: rgba(0, 120, 212, .18)
}

.cust-detail-badge.success {
  color: var(--green);
  background: rgba(245, 158, 11, .1);
  border-color: rgba(245, 158, 11, .2)
}

.cust-detail-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.cust-detail-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px 12px 16px;
  background: var(--surface);
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none !important;
  overflow: hidden
}

.cust-detail-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--c-azure)
}

.cust-detail-cols .cust-detail-card:nth-child(2)::before {
  background: var(--c-entra)
}

.cust-detail-cols .cust-detail-card:nth-child(3)::before {
  background: var(--c-partner)
}

.cust-detail-cols .cust-detail-card:nth-child(4)::before {
  background: var(--c-intune)
}

.cust-detail-card ul {
  margin: 8px 0 0 18px
}

.cust-detail-card li {
  margin-bottom: 6px
}

.cust-detail-card code {
  font-size: 11px
}

.cust-detail-empty {
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-muted);
  box-shadow: none !important
}

.tw {
  overflow: hidden;
  background: var(--surface)
}

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

thead th {
  text-align: left;
  padding: 9px 16px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 2;
  cursor: pointer;
  user-select: none
}

thead th:hover {
  color: var(--text-dim)
}

thead th .sa {
  margin-left: 4px;
  opacity: .4
}

thead th.sorted .sa {
  opacity: 1;
  color: var(--c-azure)
}

tbody tr {
  border-bottom: 1px solid var(--surface-3);
  transition: background .15s
}

tbody tr:last-child {
  border-bottom: none
}

tbody tr:hover {
  background: var(--surface-2)
}

tbody tr.ck {
  cursor: pointer
}

td {
  padding: 10px 16px;
  font-size: 13px;
  vertical-align: middle
}

@media (max-width:768px) {
  .tw table.responsive-mobile,
  .tw table.responsive-mobile tbody,
  .tw table.responsive-mobile tr,
  .tw table.responsive-mobile td {
    display: block;
    width: 100%;
  }

  .tw table.responsive-mobile thead {
    display: none;
  }

  .tw table.responsive-mobile tbody tr {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  .tw table.responsive-mobile tbody tr:hover {
    background: var(--surface);
  }

  .tw table.responsive-mobile td {
    border: none;
    padding: 7px 0;
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tw table.responsive-mobile td::before {
    content: attr(data-label);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    flex: 0 0 42%;
    max-width: 42%;
  }

  .tw table.responsive-mobile td[colspan] {
    display: block;
    padding: 0;
  }

  .tw table.responsive-mobile td[colspan]::before {
    content: none;
  }
}

#resourceInventoryTableWrap td[colspan="7"] > div > table {
  width: 100%;
  table-layout: fixed;
}

#resourceInventoryTableWrap td[colspan="7"] > div > table th,
#resourceInventoryTableWrap td[colspan="7"] > div > table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#resourceInventoryTableWrap td[colspan="7"] > div > table td > div {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#resourceInventoryTableWrap td[colspan="7"] > div > table code {
  display: block;
  font-size: 10px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tdt a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color .15s;
  line-height: 1.4
}

.tdt a:hover {
  color: var(--c-azure)
}

.tdt .tt2 {
  font-weight: 500;
  line-height: 1.4
}

.nb {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  background: var(--c-azure-bg);
  color: var(--c-azure);
  margin-left: 6px;
  vertical-align: middle;
  letter-spacing: .3px;
  border: 1px solid rgba(0, 120, 212, .2)
}

.cb {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap
}

.cb.sa2 {
  background: var(--c-azure-bg);
  color: var(--c-azure)
}

.cb.sm2 {
  background: var(--c-m365-bg);
  color: var(--c-m365)
}

.cb.se2 {
  background: var(--c-entra-bg);
  color: var(--c-entra)
}

.cb.ss2 {
  background: var(--c-security-bg);
  color: var(--c-security)
}

.cb.sp2 {
  background: var(--c-partner-bg);
  color: var(--c-partner)
}

.cb.si2 {
  background: var(--c-intune-bg);
  color: var(--c-intune)
}

.cb.sw2 {
  background: var(--c-winserver-bg);
  color: var(--c-winserver)
}

.cb.sd2 {
  background: var(--surface-3);
  color: var(--text-dim)
}

.customer-env-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-start
}

.customer-env-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  background: var(--surface);
  color: var(--text-dim)
}

.customer-env-badge.development {
  color: var(--red);
  background: rgba(220, 38, 38, .08);
  border-color: rgba(220, 38, 38, .65)
}

.customer-env-badge.production {
  color: var(--c-azure);
  background: var(--c-azure-bg);
  border-color: rgba(0, 120, 212, .55)
}

.customer-env-badge.acceptance {
  color: var(--c-entra);
  background: var(--c-entra-bg);
  border-color: rgba(16, 124, 16, .55)
}

.customer-env-badge.testing {
  color: var(--c-security);
  background: var(--c-security-bg);
  border-color: rgba(92, 45, 145, .55)
}

[data-theme="dark"] .customer-env-badge.development {
  background: rgba(255, 107, 107, .12);
  border-color: rgba(255, 107, 107, .5);
  color: #ff8a8a
}

[data-theme="dark"] .customer-env-badge.production {
  background: rgba(77, 166, 255, .12);
  border-color: rgba(77, 166, 255, .45);
  color: #7cbcff
}

[data-theme="dark"] .customer-env-badge.acceptance {
  background: rgba(78, 202, 78, .12);
  border-color: rgba(78, 202, 78, .45);
  color: #77d977
}

[data-theme="dark"] .customer-env-badge.testing {
  background: rgba(176, 136, 212, .12);
  border-color: rgba(176, 136, 212, .45);
  color: #c2a6e5
}

.tdd {
  color: var(--text-dim);
  font-size: 12px;
  white-space: nowrap
}

.tds {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap
}

.stb {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap
}

.stb.dev {
  background: rgba(217, 119, 6, .1);
  color: #d97706
}

.stb.prev {
  background: rgba(0, 120, 212, .08);
  color: var(--c-azure)
}

.stb.ga {
  background: rgba(245, 158, 11, .1);
  color: #f59e0b
}

.stb.ret {
  background: rgba(220, 38, 38, .1);
  color: var(--red)
}

.stb.def {
  background: var(--surface-3);
  color: var(--text-dim)
}

[data-theme="dark"] .stb.dev {
  background: rgba(251, 191, 36, .12);
  color: #fbbf24
}

[data-theme="dark"] .stb.prev {
  background: rgba(77, 166, 255, .12);
  color: #4da6ff
}

[data-theme="dark"] .stb.ga {
  background: rgba(78, 202, 78, .12);
  color: #4eca4e
}

[data-theme="dark"] .stb.ret {
  background: rgba(255, 107, 107, .12);
  color: #ff6b6b
}

.tret {
  color: var(--red);
  font-weight: 700
}

.svb {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600
}

.svb.critical {
  background: rgba(220, 38, 38, .1);
  color: var(--sev-crit)
}

.svb.important {
  background: rgba(217, 119, 6, .1);
  color: var(--sev-imp)
}

.svb.moderate {
  background: rgba(37, 99, 235, .1);
  color: var(--sev-mod)
}

.svb.low {
  background: rgba(107, 114, 128, .1);
  color: var(--sev-low)
}

.rby {
  color: var(--red);
  font-weight: 600
}

.rbm {
  color: var(--orange)
}

.rbn {
  color: var(--green)
}

.ls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 16px
}

.ldr {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--c-azure);
  border-radius: 50%;
  animation: spin .8s linear infinite
}

.ls p {
  color: var(--text-muted);
  font-size: 13px
}

.es {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 14px
}

.eb {
  background: rgba(255, 60, 60, .08);
  border: 1px solid rgba(255, 60, 60, .2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #ff6b6b;
  display: none
}

.pg {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 13px
}

.pg button {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: all .2s
}

.pg button:hover {
  border-color: var(--text-muted);
  color: var(--text)
}

.pg button:disabled {
  opacity: .3;
  cursor: default
}

.pg span {
  color: var(--text-muted)
}

footer {
  padding: 32px 0;
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 48px
}

.footer-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px
}

.mo {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  z-index: 1200;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 24px 24px;
  overflow-y: auto
}

.mo.open {
  display: flex
}

.md {
  background: var(--modal-bg);
  border-radius: 16px;
  max-width: 800px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: none;
  border: 1px solid var(--border)
}

.mh {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border)
}

.showback-detail-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.showback-detail-pdf-btn {
  height: 32px;
  padding: 0 12px;
}

.mh h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
  margin-right: 16px
}

.mc {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface-2);
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0
}

.mc:hover {
  background: var(--surface-3)
}

.mb {
  padding: 24px 28px
}

html:not([data-theme="dark"]) .mb.showback-customer-invoice {
  background: #f6f5f3;
}

html:not([data-theme="dark"]) .mb.showback-customer-invoice .sbi-root {
  --sbi-card: #ffffff;
  --sbi-panel: #ffffff;
}

.mttl {
  font-size: 18px;
  font-weight: 700;
  color: var(--text)
}

.msub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted)
}

.mm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px
}

.ml {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 4px
}

.mv {
  font-size: 14px;
  color: var(--text)
}

.mdsc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
  padding: 16px 0;
  border-top: 1px solid var(--border);
  white-space: pre-wrap;
  word-break: break-word
}

.mdlinks {
  padding: 12px 0;
  border-top: 1px solid var(--border)
}

.mdlinks .ml {
  margin-bottom: 8px
}

.mdlinks a {
  display: block;
  color: var(--c-azure);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.8;
  transition: opacity .2s
}

.mdlinks a:hover {
  opacity: .8
}

.mln {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  background: var(--c-azure);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: opacity .2s
}

.mln:hover {
  opacity: .9
}

@media(max-width:768px) {
  .ctl {
    flex-direction: column
  }

  .sb input {
    width: 100%
  }

  .sb {
    width: 100%
  }

  header {
    padding: 24px 0 16px
  }

  .st {
    display: none
  }

  .tab {
    padding: 8px 10px;
    font-size: 11px
  }

  .mm {
    grid-template-columns: 1fr
  }

  #estGrid {
    grid-template-columns: 1fr !important
  }

  #estGrid>div:first-child {
    max-height: 300px !important
  }

  .gsw {
    width: 200px
  }
}

@media(max-width:768px) {
  .audit-entry-head {
    flex-direction: column;
    align-items: flex-start
  }

  .audit-entry-time {
    text-align: left
  }

  .cust-detail-grid {
    grid-template-columns: 1fr 1fr
  }

  .cust-detail-cols {
    grid-template-columns: 1fr
  }

  .env-select-row {
    flex-direction: column;
    align-items: stretch
  }
}

.est-cat {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  background: var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 1
}

.est-svc {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background .15s;
  border-bottom: 1px solid var(--surface-2)
}

.est-svc:hover {
  background: var(--surface-2)
}

.est-svc.added {
  opacity: .45;
  pointer-events: none
}

.est-svc-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--c-azure-bg);
  color: var(--c-azure);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0
}

.est-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s
}

.est-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06)
}

.est-item-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer
}

.est-item-hd .est-svc-icon {
  width: 32px;
  height: 32px;
  font-size: 11px
}

.est-item-body {
  padding: 16px;
  display: none
}

.est-item.open .est-item-body {
  display: block
}

.est-item-cost {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-azure);
  white-space: nowrap
}

.est-item-rm {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s
}

.est-item-rm:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(220, 38, 38, .06)
}

.est-sku-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 12px
}

.est-sku {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all .15s;
  font-size: 12px
}

.est-sku:hover {
  border-color: var(--c-azure)
}

.est-sku.sel {
  border-color: var(--c-azure);
  background: var(--c-azure-bg)
}

.est-sku-name {
  font-weight: 600;
  margin-bottom: 2px;
  font-size: 13px
}

.est-sku-price {
  font-family: 'JetBrains Mono', monospace;
  color: var(--c-azure);
  font-weight: 500
}

.est-sku-unit {
  color: var(--text-muted);
  font-size: 11px
}

.est-cfg {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--surface-2)
}

.est-cfg label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px
}

.est-cfg input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
  width: 110px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border .2s
}

.est-cfg input:focus {
  border-color: var(--c-azure)
}

.est-pt-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px
}

.est-pt-tab {
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s
}

.est-pt-tab:hover {
  border-color: var(--text-muted)
}

.est-pt-tab.active {
  background: var(--c-azure);
  color: #fff;
  border-color: var(--c-azure)
}

.est-bk-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--surface-2)
}

.est-bk-row:last-child {
  border-bottom: none
}

.est-fc {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap
}

.est-fc:hover {
  border-color: var(--text-dim);
  color: var(--text)
}

.est-fc.active {
  background: var(--c-azure);
  color: #fff;
  border-color: var(--c-azure)
}

/* ── Feature 6: Filter Presets ── */
.preset-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 7px 0 8px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap
}

.pchip {
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  user-select: none
}

.pchip:hover {
  border-color: var(--c-azure);
  color: var(--c-azure)
}

.pdelbtn {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  margin-left: 1px;
  transition: color .15s
}

.pdelbtn:hover {
  color: var(--red)
}

/* ── Feature 7: Quick Date Buttons ── */
.qdbt {
  padding: 0 10px;
  height: 28px;
  border: none;
  border-right: 1px solid var(--border);
  background: var(--surface);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  font-family: inherit
}

.fa-seg .qdbt:last-child {
  border-right: none
}

.qdbt:hover {
  background: var(--surface-2);
  color: var(--text)
}

.qdbt.active {
  background: var(--c-azure-bg);
  color: var(--c-azure);
  font-weight: 600
}

/* ── Phone layout (≤640px) ── */
@media(max-width:640px) {

  /* ── Topnav ── */
  .topnav {
    padding: 0 10px
  }

  .topnav-top {
    height: auto;
    min-height: 50px;
    flex-wrap: wrap;
    padding: 8px 0;
    gap: 6px
  }

  .topnav-brand {
    flex: 1
  }

  .topnav-brand-text h1 {
    font-size: 16px
  }

  .authw {
    order: 2;
    margin-left: auto
  }

  .authp {
    min-width: 270px;
    right: 0
  }

  .top-tools {
    order: 3;
    width: 100%;
    margin: 0;
    gap: 6px
  }

  .filter-summary {
    max-width: 100%;
    width: 100%
  }

  .scope-panel {
    min-width: 0;
    max-width: none;
    width: 100%;
    left: 0;
    right: 0
  }

  .scope-subscription-list {
    max-height: 220px
  }

  .gsw {
    order: 4;
    width: 100%;
    margin: 0
  }

  #gSearchResults {
    min-width: 0;
    width: 100%;
    right: auto;
    left: 0
  }

  .gsb {
    border-radius: 8px
  }

  #gScopeBtn {
    height: 32px
  }

  #gSI {
    padding: 6px 4px;
    font-size: 13px
  }

  .topnav-icons {
    gap: 3px
  }

  .topnav-icon {
    width: 32px;
    height: 32px
  }

  .profile-menu-btn {
    width: 32px;
    height: 32px;
  }

  .nav-item {
    font-size: 11px;
    padding: 4px 7px 6px
  }

  /* ── Main content ── */
  .main-content {
    padding: 0 10px !important;
    border-radius: 0 !important
  }

  .main-content::before {
    display: none
  }

  .cust-detail-grid {
    grid-template-columns: 1fr
  }

  /* ── Filter chip row ── */
  .ctl {
    padding: 6px 0;
    gap: 5px
  }

  .fc {
    flex-wrap: wrap;
    gap: 4px
  }

  .chip {
    padding: 2px 8px;
    font-size: 11px
  }

  .sb,
  .sb input {
    width: 100%
  }

  /* ── Filter dropdowns / date row ── */
  .frow {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 8px 0;
    align-items: center
  }

  .frow label {
    display: none
  }

  .frow .fsel {
    width: 100%;
    height: 32px
  }

  .frow .drb {
    grid-column: 1/-1;
    width: 100%;
    text-align: center;
    height: 32px
  }

  .fa-sep {
    display: none
  }

  .fa-seg {
    grid-column: 1/-1
  }

  .fa-seg .qdbt {
    flex: 1;
    height: 32px;
    font-size: 11px
  }

  .frow .di {
    width: 100%
  }

  /* ── Table ── */
  .tw {
    border-radius: 0
  }

  /* Products: hide Status(1) Category(3) Source(4); keep Title(2) Date(5) */
  #panel-products th:nth-child(1),
  #panel-products td:nth-child(1),
  #panel-products th:nth-child(3),
  #panel-products td:nth-child(3),
  #panel-products th:nth-child(4),
  #panel-products td:nth-child(4) {
    display: none
  }

  /* Blogs: hide Category(2) Source(3); keep Title(1) Date(4) */
  #panel-blogs th:nth-child(2),
  #panel-blogs td:nth-child(2),
  #panel-blogs th:nth-child(3),
  #panel-blogs td:nth-child(3) {
    display: none
  }

  /* MSRC: hide Last Updated(2) CNA(5) Impact(6); keep Release(1) CVE#(3) Title(4) Severity(7) */
  #panel-msrc th:nth-child(2),
  #panel-msrc td:nth-child(2),
  #panel-msrc th:nth-child(5),
  #panel-msrc td:nth-child(5),
  #panel-msrc th:nth-child(6),
  #panel-msrc td:nth-child(6) {
    display: none
  }

  /* Deployments: hide Article(2) Product Family(4); keep Date(1) Title(3) Reboot(5) */
  #panel-deploys th:nth-child(2),
  #panel-deploys td:nth-child(2),
  #panel-deploys th:nth-child(4),
  #panel-deploys td:nth-child(4) {
    display: none
  }

  /* Service Health: hide Type(2) Service(4) Last Update(6); keep Status(1) Title(3) Started(5) */
  #panel-serviceHealth th:nth-child(2),
  #panel-serviceHealth td:nth-child(2),
  #panel-serviceHealth th:nth-child(4),
  #panel-serviceHealth td:nth-child(4),
  #panel-serviceHealth th:nth-child(6),
  #panel-serviceHealth td:nth-child(6) {
    display: none
  }

  /* Title cell: allow full width */
  .tdt {
    word-break: break-word
  }

  /* Date cell: compact */
  .tdd,
  .tds {
    font-size: 11px;
    white-space: normal
  }

  /* NEW badge: keep visible but smaller */
  .nb {
    font-size: 9px;
    padding: 1px 6px;
    border-radius: 16px
  }

  /* ── Toolbar (count + refresh) ── */
  .tbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px
  }

  .rfb {
    font-size: 12px
  }

  /* ── Pagination ── */
  .pg {
    gap: 4px;
    flex-wrap: wrap
  }

  .pg button {
    padding: 4px 10px;
    font-size: 12px
  }

  /* ── Modal — full-height bottom sheet ── */
  .mo {
    padding: 0;
    align-items: flex-end
  }

  .md {
    border-radius: 16px 16px 0 0;
    max-height: 92vh;
    max-width: 100%;
    width: 100%
  }

  .mm {
    grid-template-columns: 1fr
  }

  .showback-finance-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
  }

  .showback-net-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .showback-net-hero-value {
    font-size: clamp(28px, 9vw, 38px);
    white-space: normal;
  }

  .showback-role-summary-head,
  .showback-role-line,
  .showback-detail-card-head {
    grid-template-columns: 1fr;
    display: block;
  }

  .showback-role-summary-value,
  .showback-role-line-value,
  .showback-detail-card-value {
    margin-top: 4px;
  }

  .showback-detail-stats {
    grid-template-columns: 1fr;
  }

  /* ── System stats banner — vertical stack ── */
  #sysBanner {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 14px 16px
  }

  #sysBanner>div {
    border-right: none !important;
    margin-right: 0 !important;
    padding-right: 0 !important;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 10px
  }

  #sysBanner>div:last-child {
    border-bottom: none !important;
    padding-bottom: 0;
    margin-bottom: 0
  }

  /* System stat value font: slightly smaller */
  #sysOverallVal,
  #sysTotalItems,
  #sysLastRefresh,
  #sysFeedWarn,
  #sysNewest {
    font-size: 18px !important
  }

  /* ── System grids ── */
  #sysCatGrid {
    grid-template-columns: 1fr 1fr !important
  }

  #sysApiGrid {
    grid-template-columns: 1fr !important
  }

  /* ── Azure estimator ── */
  #estGrid {
    grid-template-columns: 1fr !important
  }

  #estGrid>div:first-child {
    max-height: 220px !important
  }

  #estBannerStats {
    flex-direction: column !important;
    gap: 10px !important
  }

  /* Estimator region/currency: stack full width */
  #estBanner [style*="display:flex;gap:8px"] {
    flex-wrap: wrap !important
  }

  #estRegion,
  #estCurrency {
    width: 100%;
    max-width: none
  }

  /* ── Service health stats bar ── */
  #shStatsBar {
    justify-content: flex-start !important;
    gap: 8px;
    flex-wrap: wrap
  }

  /* ── Preset bar ── */
  .preset-bar {
    flex-wrap: wrap
  }

  /* ── Footer ── */
  footer {
    padding: 12px 0;
    font-size: 11px
  }
}

/* ── Analytics panels ── */
.anl {
  padding: 24px 0 52px
}

.anl-sh {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border)
}

.anl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
  margin-bottom: 26px
}

.anl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: none !important
}

.anl-card-val {
  font-size: 28px;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1.1;
  margin-bottom: 4px
}

.anl-card-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-muted)
}

.anl-card-sub {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px
}

#dashStats {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px 10px
}

#dashStats .anl-card {
  position: relative;
  overflow: hidden;
  padding: 16px 14px 14px;
  background: var(--surface);
  box-shadow: none !important
}

#dashStats .anl-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--c-azure);
  opacity: .9
}

#dashStats .anl-card:nth-child(2)::before {
  background: var(--c-entra)
}

#dashStats .anl-card:nth-child(3)::before {
  background: var(--c-partner)
}

#dashStats .anl-card:nth-child(4)::before {
  background: var(--c-security)
}

#dashStats .anl-card:nth-child(5)::before {
  background: var(--c-intune)
}

#dashStats .anl-card-val {
  font-size: clamp(18px, 2vw, 34px);
  letter-spacing: -.35px;
  line-height: 1.12;
  white-space: nowrap;
  color: var(--text)
}

#dashStats .anl-card-lbl {
  font-size: 10px;
  letter-spacing: .7px;
  color: var(--text-dim)
}

#dashStats .anl-card-sub {
  font-size: 12px;
  line-height: 1.3;
  color: var(--text-muted);
  min-height: 30px
}

#dashStats .anl-card:nth-child(1) .anl-card-val {
  color: #0f6cbd
}

#dashStats .anl-card:nth-child(2) .anl-card-val {
  color: #0f7a53
}

#dashStats .anl-card:nth-child(3) .anl-card-val {
  color: #a16207
}

#dashStats .anl-card:nth-child(4) .anl-card-val {
  color: #5b3cc4
}

#dashStats .anl-card:nth-child(5) .anl-card-val {
  color: #0a7ea8
}

[data-theme="dark"] #dashStats .anl-card:nth-child(1) .anl-card-val {
  color: #6fb8ff
}

[data-theme="dark"] #dashStats .anl-card:nth-child(2) .anl-card-val {
  color: #65d6a8
}

[data-theme="dark"] #dashStats .anl-card:nth-child(3) .anl-card-val {
  color: #f5c160
}

[data-theme="dark"] #dashStats .anl-card:nth-child(4) .anl-card-val {
  color: #b89af4
}

[data-theme="dark"] #dashStats .anl-card:nth-child(5) .anl-card-val {
  color: #6dcde9
}

.anl-g2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px
}

.anl-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 0;
  box-shadow: none !important
}

.anl-bt {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px
}

.anl-bs {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px
}

.anl-dw {
  display: flex;
  align-items: center;
  gap: 20px
}

.anl-dsv {
  width: 110px;
  height: 110px;
  flex-shrink: 0
}

.anl-leg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0
}

.anl-li {
  display: flex;
  align-items: center;
  gap: 7px
}

.anl-ld {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0
}

.anl-ll {
  font-size: 12px;
  color: var(--text-dim);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.anl-lv {
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text);
  min-width: 28px;
  text-align: right
}

.anl-lp {
  font-size: 10px;
  color: var(--text-muted);
  min-width: 34px;
  text-align: right
}

.anl-hr {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px
}

.anl-hl {
  font-size: 12px;
  color: var(--text-dim);
  width: 140px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.anl-ht {
  flex: 1;
  height: 7px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden
}

.anl-hf {
  height: 100%;
  border-radius: 99px;
  transition: width .5s ease
}

.anl-hc {
  font-size: 11px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-muted);
  min-width: 36px;
  text-align: right
}

.anl-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 90px
}

.anl-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  position: relative;
  cursor: default;
  transition: opacity .15s;
  min-height: 2px
}

.anl-bar:hover {
  opacity: .65
}

.anl-bar-tip {
  display: none;
  position: absolute;
  bottom: calc(100%+5px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--surface);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 5px;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none
}

.anl-bar:hover .anl-bar-tip {
  display: block
}

.anl-blbls {
  display: flex;
  gap: 4px;
  margin-top: 6px
}

.anl-blbl {
  flex: 1;
  font-size: 9px;
  color: var(--text-muted);
  text-align: center;
  overflow: hidden
}

.anl-empty {
  color: var(--text-muted);
  font-size: 12px;
  padding: 20px 0;
  text-align: center
}

.anl-sec-gap {
  margin-top: 26px
}

@media(max-width:768px) {
  .anl-g2 {
    grid-template-columns: 1fr
  }

  .anl-cards {
    grid-template-columns: repeat(2, 1fr)
  }

  .anl-hl {
    width: 100px
  }

  .anl-dsv {
    width: 90px;
    height: 90px
  }
}

@media(max-width:1024px) {
  #dashStats {
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr))
  }
}

@media(max-width:768px) {
  #dashStats {
    grid-template-columns: 1fr
  }
}

.dash-glance-grid {
  margin-bottom: 14px
}

.dash-glance-card {
  position: relative;
  overflow: hidden;
  background: var(--surface)
}

.dash-momentum-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.dash-momentum-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.dash-momentum-badge {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-dim);
  font-weight: 600
}

.dash-momentum-svg {
  width: 100%;
  height: 160px;
  display: block
}

.dash-momentum-labels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px
}

.dash-momentum-label {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.dash-momentum-insights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px
}

.dash-mi {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface)
}

.dash-mi-k {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted)
}

.dash-mi-v {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.dash-pulse-wrap {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center
}

.dash-donut {
  width: 120px;
  height: 120px
}

.dash-donut text {
  font-family: 'DM Sans', sans-serif
}

.dash-pulse-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px
}

.dash-chip {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  min-width: 0
}

.dash-chip-k {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-muted);
  margin-bottom: 3px
}

.dash-chip-v {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.dash-chip-v.ok {
  color: var(--green)
}

.dash-chip-v.warn {
  color: var(--orange)
}

.dash-chip-v.bad {
  color: var(--red)
}

@media(max-width:960px) {
  .dash-pulse-wrap {
    grid-template-columns: 1fr
  }

  .dash-donut {
    margin: 0 auto
  }

  .dash-pulse-kpis {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:640px) {
  .dash-pulse-kpis {
    grid-template-columns: 1fr
  }

  .dash-momentum-labels {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }

  .dash-momentum-insights {
    grid-template-columns: 1fr
  }
}

.dash-ops-grid {
  margin-bottom: 14px
}

.dash-ops-card {
  background: var(--surface)
}

.dash-top-list {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.dash-top-item {
  display: flex;
  flex-direction: column;
  gap: 5px
}

.dash-top-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim)
}

.dash-top-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 70%
}

.dash-top-value {
  font-weight: 700;
  color: var(--text)
}

.dash-top-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden
}

.dash-top-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-azure), var(--green))
}

.dash-svc-meta {
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-muted)
}

.dash-mode-seg {
  display: inline-flex;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 3px;
  background: var(--surface)
}

.dash-mode-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit
}

.dash-mode-btn.active {
  background: var(--surface-3);
  color: var(--text)
}

.dash-spend-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.dash-spend-svg {
  width: 100%;
  height: 180px;
  display: block
}

.dash-spend-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  flex-wrap: wrap
}

.net-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 12px
}

.net-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px
}

.net-kpi {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface)
}

.net-k {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted)
}

.net-v {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dim)
}

.net-spark {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  height: 86px
}

.net-spark-bar {
  display: inline-block;
  width: 8px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #7da8c5, #9fb8a1)
}

.net-cats {
  display: grid;
  gap: 8px
}

.net-cat-row {
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface)
}

.net-cat-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 5px
}

.net-cat-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden
}

.net-cat-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7da8c5, #9fb8a1)
}

.net-top {
  grid-column: 1/-1;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface)
}

.net-top-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  margin-bottom: 8px
}

.net-top-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--surface-3)
}

.net-top-row:last-child {
  border-bottom: none
}

.net-top-name {
  font-size: 12px;
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 74%
}

.net-top-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--text)
}

.net-breakdown-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  margin-bottom: 8px
}

.net-breakdown-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted)
}

.net-breakdown-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.net-usage-cell {
  white-space: nowrap
}

#panel-networking {
  padding-top: 0
}

.networking-sticky-shell {
  position: sticky;
  top: var(--networking-sticky-offset);
  z-index: 900;
  background: var(--surface);
  padding-top: 6px;
  margin-bottom: 10px;
}

.networking-sticky-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), var(--surface));
  pointer-events: none;
}

.networking-sticky-toolbar {
  padding-top: 8px
}

.network-filter-dd {
  width: 142px
}

.network-customer-select {
  width: 168px
}

.network-date-dd {
  width: 132px
}

.network-clear-btn {
  width: auto;
  min-width: 84px;
  justify-content: center;
  gap: 6px;
  background: rgba(217, 119, 6, .08);
  border-color: rgba(217, 119, 6, .26);
  color: #c56a10;
}

.network-clear-btn:hover {
  border-color: rgba(217, 119, 6, .45);
  background: rgba(217, 119, 6, .12);
  color: #a8570c;
}

.network-date-menu {
  width: 260px;
  min-width: 260px;
  padding: 10px
}

.network-date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px
}

.network-date-nav {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit
}

.network-date-nav:hover {
  border-color: var(--text-muted);
  color: var(--text)
}

.network-date-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  flex: 1
}

.network-date-weekdays,
.network-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px
}

.network-date-weekday {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted);
  text-align: center;
  padding: 4px 0
}

.network-date-day,
.network-date-empty {
  height: 30px
}

.network-date-day {
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-dim);
  font-size: 12px;
  font-family: inherit;
  cursor: pointer
}

.network-date-day:hover {
  background: var(--surface-2);
  color: var(--text)
}

.network-date-day.selected {
  background: var(--c-azure-bg);
  border-color: rgba(0, 120, 212, .35);
  color: var(--c-azure);
  font-weight: 700
}

.network-date-day.today {
  border-color: var(--border)
}

.network-date-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border)
}

.network-date-clear {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-dim);
  padding: 6px 10px;
  font-size: 11px;
  font-family: inherit;
  cursor: pointer
}

.network-date-clear:hover {
  border-color: var(--red);
  color: var(--red)
}

.networking-page-search {
  width: 240px;
  flex: 0 0 240px
}

.networking-page-search .gsb {
  width: 100%
}

#networkPageSearch {
  flex: 1;
  background: transparent;
  border: none;
  padding: 5px 4px;
  font-size: 12px;
  color: var(--text);
  font-family: inherit;
  outline: none;
  min-width: 0
}

#networkPageSearch::placeholder {
  color: var(--text-muted)
}

#networkPageSearchClear {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  padding: 0 5px;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0
}

#networkPageSearchClear:hover {
  color: var(--text)
}

.networking-analytics {
  padding: 8px 0 0;
  margin-top: 8px
}

.network-hero-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px
}

.network-hero-card {
  position: relative;
  overflow: hidden;
  padding: 16px 14px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface)
}

.network-hero-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--c-azure);
  opacity: .9
}

.network-hero-card:nth-child(2)::before {
  background: var(--c-entra)
}

.network-hero-card:nth-child(3)::before {
  background: var(--c-partner)
}

.network-hero-card:nth-child(4)::before {
  background: var(--c-security)
}

.network-hero-card:nth-child(5)::before {
  background: var(--c-intune)
}

.network-hero-k {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted)
}

.network-hero-v {
  margin-top: 6px;
  font-size: clamp(18px, 1.8vw, 30px);
  font-weight: 800;
  letter-spacing: -.35px;
  line-height: 1.12;
  color: var(--text)
}

.network-hero-breakdown {
  margin-top: 8px
}

.network-hero-s {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.4;
  font-weight: 600
}

.network-hero-s-plain {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted)
}

.network-hero-trend {
  display: inline-flex;
  align-items: center;
  gap: 6px
}

.network-hero-trend-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: var(--surface-2);
  border: 1px solid var(--border)
}

.network-hero-trend.good {
  color: var(--green)
}

.network-hero-trend.good .network-hero-trend-icon {
  background: #F7FAF6;
  border-color: rgba(245, 158, 11, .18);
  color: var(--green)
}

.network-hero-trend.bad {
  color: var(--red)
}

.network-hero-trend.bad .network-hero-trend-icon {
  background: rgba(220, 38, 38, .08);
  border-color: rgba(220, 38, 38, .18);
  color: var(--red)
}

.network-hero-trend.neutral {
  color: var(--text-muted)
}

.network-hero-trend.neutral .network-hero-trend-icon {
  color: var(--text-muted)
}

.network-hero-v.good {
  color: var(--green) !important
}

.network-hero-v.bad {
  color: var(--red) !important
}

.network-hero-v.neutral {
  color: var(--text-dim) !important
}

.network-unit-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0
}

.network-unit-primary {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  line-height: 1.25
}

.network-unit-secondary {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  line-height: 1.35
}

.network-unit-empty {
  font-size: 12px;
  color: var(--text-muted)
}

.network-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px
}

.network-compare-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface)
}

.network-compare-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px
}

.network-compare-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0
}

.network-compare-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text)
}

.network-compare-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4
}

.network-compare-cost {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap
}

.network-compare-bars {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.network-compare-bar {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.network-compare-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted)
}

.network-compare-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden
}

.network-compare-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-azure), var(--green))
}

.network-compare-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px
}

.network-compare-metric {
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2)
}

.network-compare-metric-k {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted)
}

.network-compare-metric-v {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim)
}

.network-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px
}

.network-dashboard-card {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface)
}

.network-dashboard-k {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted)
}

.network-dashboard-v {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text)
}

.network-dashboard-s {
  margin-top: 3px;
  font-size: 11px;
  color: var(--text-muted)
}

.network-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px
}

.network-insight-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  position: relative;
  overflow: hidden
}

.network-insight-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--c-azure);
  opacity: .9
}

.network-insight-card.good::before {
  background: var(--green)
}

.network-insight-card.warn::before {
  background: var(--c-partner)
}

.network-insight-card.bad::before {
  background: var(--red)
}

.network-insight-k {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted)
}

.network-insight-v {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text)
}

.network-insight-s {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted)
}

.network-customer-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--text-muted)
}

.network-customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}

.network-customer-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface)
}

.network-customer-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px
}

.network-customer-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 8px
}

.network-customer-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35
}

.network-customer-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px
}

.network-customer-cost {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap
}

.network-customer-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px
}

.network-customer-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted)
}

.network-customer-track {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden
}

.network-customer-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--c-azure), var(--green))
}

.network-customer-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px
}

.network-customer-metric {
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2)
}

.network-customer-metric-k {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted)
}

.network-customer-metric-v {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1.4
}

.network-delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35
}

.network-delta-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 10px;
  flex-shrink: 0
}

.network-delta-badge.good {
  color: var(--green)
}

.network-delta-badge.good .network-delta-badge-icon {
  color: var(--green);
  border-color: rgba(245, 158, 11, .18);
  background: #F7FAF6
}

.network-delta-badge.bad {
  color: var(--red)
}

.network-delta-badge.bad .network-delta-badge-icon {
  color: var(--red);
  border-color: rgba(220, 38, 38, .18);
  background: rgba(220, 38, 38, .08)
}

.network-delta-badge.neutral {
  color: var(--text-muted)
}

.networking-block {
  padding: 16px 0 0;
  margin-top: 16px
}

.networking-block+.networking-block {
  border-top: 1px solid var(--border)
}

.networking-block-head {
  padding-top: 0;
  padding-bottom: 10px;
  align-items: flex-end
}

.networking-block-copy {
  display: flex;
  flex-direction: column;
  gap: 4px
}

.networking-block-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3
}

.networking-block-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4
}

.network-category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent
}

.network-category-badge.gateway {
  color: #c2601d;
  background: rgba(194, 96, 29, .1);
  border-color: rgba(194, 96, 29, .18)
}

.network-category-badge.peering {
  color: #1d6fa5;
  background: rgba(29, 111, 165, .1);
  border-color: rgba(29, 111, 165, .18)
}

.network-category-badge.expressroute {
  color: #2f7d32;
  background: rgba(47, 125, 50, .1);
  border-color: rgba(47, 125, 50, .18)
}

.network-category-badge.egress {
  color: #7a4aa5;
  background: rgba(122, 74, 165, .1);
  border-color: rgba(122, 74, 165, .18)
}

.network-category-badge.neutral {
  color: var(--text-dim);
  background: var(--surface-2);
  border-color: var(--border)
}

#netBreakdownSearch {
  height: 32px;
  min-width: 250px
}

#vpnConnSearch {
  height: 32px;
  min-width: 250px
}

.cost-trend-insights {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px
}

.cost-trend-card {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  position: relative;
  overflow: hidden
}

.cost-trend-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--border)
}

.cost-trend-card.neutral {
  background: rgba(37, 99, 235, .04);
  border-color: rgba(37, 99, 235, .12)
}

.cost-trend-card.neutral::before {
  background: #6aa4d9
}

.cost-trend-card.peak,
.cost-trend-card.bad {
  background: rgba(217, 119, 6, .07);
  border-color: rgba(217, 119, 6, .16)
}

.cost-trend-card.peak::before,
.cost-trend-card.bad::before {
  background: #d97706
}

.cost-trend-card.good {
  background: rgba(245, 158, 11, .07);
  border-color: rgba(245, 158, 11, .16)
}

.cost-trend-card.good::before {
  background: #f59e0b
}

.cost-trend-k {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-muted)
}

.cost-trend-v {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.cost-trend-card.bad .cost-trend-v,
.cost-trend-card.peak .cost-trend-v {
  color: #b45309
}

.cost-trend-card.good .cost-trend-v {
  color: #b45309
}

.cost-trend-card.neutral .cost-trend-v {
  color: #245c8f
}

@media(max-width:980px) {
  .cost-trend-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:640px) {
  .cost-trend-insights {
    grid-template-columns: 1fr
  }
}

@media(max-width:980px) {
  .net-grid {
    grid-template-columns: 1fr
  }

  .net-kpis {
    grid-template-columns: 1fr 1fr
  }

  .network-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .network-compare-grid {
    grid-template-columns: 1fr
  }

  .network-dashboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .network-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .network-customer-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:640px) {
  .net-kpis {
    grid-template-columns: 1fr
  }

  .net-spark {
    height: 72px
  }

  .networking-block-head {
    align-items: flex-start
  }

  .networking-block-copy {
    width: 100%
  }

  .network-filter-dd,
  .network-customer-select,
  .network-date-dd {
    width: 100%
  }

  .network-date-menu {
    width: 100%;
    min-width: 0
  }

  .networking-page-search {
    width: 100%;
    flex: 1 0 100%
  }

  .network-hero-grid {
    grid-template-columns: 1fr
  }

  .network-compare-metrics {
    grid-template-columns: 1fr
  }

  .network-dashboard-grid {
    grid-template-columns: 1fr
  }

  .network-insight-grid {
    grid-template-columns: 1fr
  }

  .network-customer-metrics {
    grid-template-columns: 1fr
  }

  .networking-sticky-shell {
    top: var(--networking-sticky-offset);
    padding-top: 0
  }
}

.costx {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 18px 16px 16px;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  filter: none !important
}

.costx-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap
}

.costx-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text)
}

.costx-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  max-width: 700px
}

.costx-quick {
  display: inline-flex;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  background: var(--surface)
}

.costx-quick-btn {
  border: none;
  background: transparent;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s
}

.costx-quick-btn.active {
  background: var(--c-azure-bg);
  color: var(--c-azure)
}

.costx-controls {
  display: grid;
  grid-template-columns: 150px 180px 1fr auto;
  gap: 10px;
  align-items: end;
  margin-top: 16px
}

.costx-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0
}

.costx-field label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted)
}

.costx-search .authi {
  height: 34px
}

.costx-load {
  height: 34px;
  justify-content: center
}

.showback-controls {
  grid-template-columns: 180px auto auto minmax(220px, 1fr);
}

.showback-period-select {
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 12.5px;
  font-family: inherit;
  padding: 0 34px 0 10px;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M0 0l4 5 4-5z' fill='%23bbb'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.showback-period-select:focus {
  border-color: var(--c-azure);
  background-color: var(--surface);
}

.showback-action-btn {
  height: 34px;
  align-self: end;
  justify-self: start;
  justify-content: center;
  white-space: nowrap;
  min-width: 132px;
}

.showback-search-field {
  align-self: end;
}

.costx-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px
}

.costx-kpi {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 10px 12px
}

.costx-kpi-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted)
}

.costx-kpi-value {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-top: 3px
}

.showback-kpi-trend {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
  min-height: 16px;
  white-space: normal;
  word-break: break-word;
}

.showback-kpi-trend.good {
  color: var(--green);
}

.showback-kpi-trend.bad {
  color: var(--red);
}

.showback-kpi-trend.neutral {
  color: var(--text-muted);
}

.costx-table {
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: auto
}

@media(max-width:980px) {
  .costx-controls {
    grid-template-columns: 1fr 1fr
  }

  .costx-load {
    grid-column: 1/-1
  }

  .costx-search {
    grid-column: 1/-1
  }
}

@media(max-width:640px) {
  .costx {
    padding: 14px 12px
  }

  .costx-title {
    font-size: 18px
  }

  .costx-controls {
    grid-template-columns: 1fr
  }

  .costx-kpis {
    grid-template-columns: 1fr
  }

  .costx-quick {
    width: 100%
  }

  .costx-quick-btn {
    flex: 1
  }
}

/* ── Licence Features ── */
.lf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding-bottom: 40px
}

.lf-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  overflow: hidden;
  display: flex;
  flex-direction: column
}

.lf-card:hover {
  border-color: var(--c-azure);
  box-shadow: 0 4px 16px rgba(0, 120, 212, .13);
  transform: translateY(-1px)
}

.lf-card-top {
  padding: 18px 20px 14px;
  flex: 1
}

.lf-card-tier {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: .4px;
  text-transform: uppercase
}

.lf-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3
}

.lf-card-sid {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 12px;
  letter-spacing: .3px
}

.lf-card-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px
}

.lf-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  border: 1px solid transparent;
  white-space: nowrap
}

.lf-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 11px;
  gap: 8px
}

.lf-addon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-weight: 600
}

.lf-plans-badge {
  color: var(--text-muted)
}

/* Detail modal sections */
.lf-section-hdr {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--text-muted);
  margin: 20px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border)
}

.lf-section-hdr:first-child {
  margin-top: 0
}

.lf-detail-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px
}

.lf-chip-sid {
  font-size: 11px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 8px;
  background: var(--surface-2);
  border-radius: 6px;
  border: 1px solid var(--border)
}

.lf-chip-guid {
  font-size: 10px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  padding: 3px 8px;
  background: var(--surface-2);
  border-radius: 6px;
  border: 1px solid var(--border);
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default
}

.lf-plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px
}

.lf-cat-section {
  margin-bottom: 16px
}

.lf-cat-heading {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700
}

.lf-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block
}

.lf-cat-count {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400
}

.lf-plan-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: var(--surface-2);
  border-radius: 6px;
  margin-bottom: 4px;
  min-width: 0;
  overflow: hidden
}

.lf-plan-bar {
  width: 3px;
  min-height: 18px;
  border-radius: 2px;
  flex-shrink: 0
}

.lf-plan-info {
  flex: 1;
  min-width: 0
}

.lf-plan-name {
  font-size: 12px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.lf-plan-id {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

/* Add-on cards */
.lf-addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin-bottom: 8px
}

.lf-addon-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  transition: border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0
}

.lf-addon-card:hover {
  border-color: var(--c-azure)
}

.lf-addon-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3
}

.lf-addon-sid {
  font-size: 10px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.lf-addon-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap
}

.lf-addon-new-badge {
  font-size: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1px 8px;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap
}

.lf-addon-cat-dots {
  display: flex;
  gap: 4px;
  align-items: center
}

.lf-addon-cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block
}

.lf-addon-plans {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 3px
}

.lf-addon-plan-item {
  display: flex;
  flex-direction: column;
  gap: 1px
}

.lf-addon-plan-name {
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.lf-addon-plan-id {
  font-size: 9px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.lf-addon-more {
  font-size: 10px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 2px
}

@media(max-width:640px) {
  .lf-plans-grid {
    grid-template-columns: 1fr
  }

  .lf-addons-grid {
    grid-template-columns: 1fr
  }
}

@media(max-width:768px) {
  .lf-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr))
  }
}

@media(max-width:640px) {
  .lf-grid {
    grid-template-columns: 1fr
  }

  .lf-card-cats {
    gap: 4px
  }

  .lf-cat-pill {
    font-size: 9px;
    padding: 2px 7px
  }
}
