@charset "UTF-8";
.login-container {
  display: flex;
  margin-top: 10px;
}
.login-container .login-internal {
  margin-left: 10px;
}
.user-search-results {
  margin-top: 20px;
  margin-left: 10px;
}
.user-search-results .user-search-find {
  display: inline-flex;
  margin-bottom: 20px;
}
.user-search-results .user-search-find .user-search-button {
  width: 40px;
}
.user-search-results user-search-grid {
  margin-bottom: 20px;
}

.invite-user {
  margin-left: 310px;
  margin-bottom: 20px;
  border: 1px solid gray;
  border-radius: 5px;
  justify-items: flex-end;
  padding: 5px 5px 5px 5px;
  justify-self: end;
  margin-right: 20px;
}
.invite-user .invite-user-info {
  margin-bottom: 10px;
  justify-self: flex-start;
}
.invite-user .invite-user-field-container {
  display: inline-flex;
}
.invite-user .invite-user-field-container label {
  margin-right: 5px;
  white-space: nowrap;
}

.user-info div :first-child {
  font-weight: 600;
}
.user-info checkbox {
  padding-left: 10px;
}

.user-groups {
  display: inline-flex;
}
.user-groups .group-name-container {
  display: flex;
  align-items: center; /* Vertically centers the checkbox and text */
  gap: 8px;
}
.user-groups .group-description {
  background-color: lightyellow;
  padding: 5px;
  border: solid 1px gray;
  border-radius: 5px;
}
.user-groups .role-description {
  background-color: lightblue;
  padding: 5px;
  border: solid 1px gray;
  border-radius: 5px;
}

.user-active {
  display: flex;
  align-items: center; /* Vertically centers the checkbox and text */
  gap: 8px;
}

.user-save {
  margin-top: 10px;
}

:root {
  /* Neutral, modern palette — NOT green-locked. Easy to retheme. */
  --brand: #2F6BFF; /* primary accent (indigo-blue) */
  --brand-dark: #1E4FD1;
  --brand-soft: #EAF0FF;
  --accent: #3D9B35; /* Sentricon green kept for health/status only */
  --ink: #121826; /* near-black text */
  --ink-2: #4A5568; /* secondary text */
  --ink-3: #8A94A6; /* muted text */
  --line: #E6E9EF; /* borders */
  --bg: #F5F7FA; /* app background */
  --surface: #FFFFFF; /* cards / panels */
  --surface-2: #FbFcFe;
  --ok: #2FA84F;
  --ok-bg: #E9F7EE;
  --warn: #E8A317;
  --warn-bg: #FDF4E1;
  --bad: #E24C4B;
  --bad-bg: #FCECEC;
  --bad-bg-light: #FBBBB6;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(18,24,38,.04), 0 8px 24px rgba(18,24,38,.06);
  --font: "Inter","Segoe UI",system-ui,-apple-system,Helvetica,Arial,sans-serif;
  --topbar-h: 60px;
  --sidebar-w: 248px;
  --scorecard-w: 300px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg) !important;
  font-size: 14px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ---------------- TOP BAR ---------------- */
.topbar {
  height: var(--topbar-h);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 18px;
  min-width: 150px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand .name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand .name .u {
  color: var(--brand);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-left .nav-item {
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: none;
  white-space: nowrap;
}

.nav-item:hover {
  background: var(--bg);
  color: var(--ink);
}

.nav-item.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.nav-item .ic {
  width: 17px;
  height: 17px;
}

.nav-sep {
  width: 1px;
  height: 26px;
  background: var(--line);
  margin: 0 8px;
}

.role-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}

.role-switch button {
  border: none;
  background: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}

.role-switch button.active {
  background: var(--surface);
  color: var(--brand-dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---------------- APP SHELL ---------------- */
.shell {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
}

/* Left sub-nav */
.sidebar {
  width: var(--sidebar-w);
  flex: none;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  overflow-y: auto;
}

.sidebar.hidden {
  display: none;
}

.side-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-weight: 700;
  padding: 6px 10px 10px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.88rem;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
}

.side-link:hover {
  background: var(--bg);
  color: var(--ink);
}

.side-link.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}

.side-link .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  flex: none;
}

.side-group {
  margin-top: 6px;
}

.side-group > .side-link {
  justify-content: space-between;
}

.side-children {
  margin: 2px 0 6px 14px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  display: none;
}

.side-group.open > .side-children {
  display: block;
}

.side-group.open > .side-link .chev {
  transform: rotate(90deg);
}

.chev {
  transition: transform 0.15s ease;
  color: var(--ink-3);
}

.badge-count {
  background: var(--bad);
  color: #fff;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 7px;
  margin-left: auto;
}

/* Main content */
.main {
  flex: 1;
  padding: 24px 28px;
  overflow-y: auto;
  min-width: 0;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.page-head h1 {
  font-size: 1.5rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.breadcrumbs {
  color: var(--ink-3);
  font-size: 0.82rem;
  margin-bottom: 6px;
}

.breadcrumbs a {
  color: var(--ink-3);
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.crumb-cur {
  color: var(--ink-2);
  font-weight: 600;
}

/* Buttons */
.btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.btn:hover {
  border-color: var(--ink-3);
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card .card-b {
  padding: 18px 20px;
}

.card .card-h {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Search + table */
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.search {
  flex: 1;
  min-width: 220px;
  position: relative;
}

.search input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.9rem;
  background: var(--surface);
}

.search input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

thead th, .thead {
  text-align: left;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}

tbody tr:hover {
  background: var(--surface-2);
}

.link {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
  cursor: pointer;
}

.pill {
  display: inline-flex;
  align-items: center;
  cursor: auto;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pill.ok {
  background: var(--ok-bg);
  color: var(--ok);
}

.pill.warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.pill.bad {
  background: var(--bad-bg);
  color: var(--bad);
}

.pill.neutral {
  background: var(--surface-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}

.bi-x-square-fill {
  color: var(--bad);
}

/* Pagination */
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  color: var(--ink-3);
  font-size: 0.83rem;
}

.pager .pages {
  display: flex;
  gap: 4px;
}

.pager .pages button {
  border: 1px solid var(--line);
  background: var(--surface);
  width: 32px;
  height: 32px;
  border-radius: 7px;
  font-weight: 600;
  color: var(--ink-2);
}

.pager .pages button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------------- CUSTOMER DETAIL: horizontal sub-nav + collapsible scorecard ---------------- */
/* Config screens as a horizontal sub-nav bar (tier 2) */
.subnav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow-x: auto;
  scrollbar-width: thin;
}

.subnav .tab {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink-2);
  border: none;
  background: none;
  white-space: nowrap;
  flex: none;
}

.subnav .tab:hover {
  background: var(--bg);
  color: var(--ink);
}

.subnav .tab.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* Overflow "More" menu */
.more-wrap {
  position: relative;
  flex: none;
  margin-left: auto;
}

.more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 220px;
  z-index: 40;
  display: none;
}

.more-menu.open {
  display: block;
}

.more-menu .tab {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 7px;
}

/* Content area now uses full width; scorecard collapses into a rail */
.detail-wrap {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.detail-main {
  flex: 1;
  min-width: 0;
}

.placeholder-screen {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--ink-3);
  background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(0, 0, 0, 0.012) 12px, rgba(0, 0, 0, 0.012) 24px);
}

.placeholder-screen h3 {
  color: var(--ink-2);
  margin: 0 0 6px;
}

/* Scorecard right rail (collapsible) */
.scorecard {
  width: var(--scorecard-w);
  flex: none;
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: width 0.18s ease;
}

/* Collapsed state: thin strip showing just the score */
.detail-wrap.sc-collapsed .scorecard {
  width: 64px;
}

.detail-wrap.sc-collapsed .scorecard .sc-full {
  display: none;
}

.detail-wrap:not(.sc-collapsed) .scorecard .sc-mini {
  display: none;
}

.sc-mini {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 8px;
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
}

.sc-mini .mini-val {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.sc-mini .mini-lbl {
  font-size: 0.6rem;
  opacity: 0.85;
  margin-top: 4px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 8px auto 0;
}

.sc-collapse-btn {
  position: absolute;
  left: -13px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  z-index: 5;
}

.sc-head {
  position: relative;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.sc-head .cust {
  font-weight: 800;
  font-size: 1.05rem;
}

.sc-head .sub {
  opacity: 0.85;
  font-size: 0.8rem;
  margin-top: 2px;
}

.sc-score {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.ring {
  width: 66px;
  height: 66px;
  flex: none;
}

.sc-score .label {
  font-size: 0.78rem;
  opacity: 0.9;
}

.sc-score .val {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.sc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.sc-card h4 {
  margin: 0 0 12px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.metric:last-child {
  border-bottom: none;
}

.metric .m-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-weight: 500;
}

.metric .m-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}

.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  width: 70px;
}

.bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.alert-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.83rem;
  color: var(--ink-2);
}

.alert-row:last-child {
  border-bottom: none;
}

.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex: none;
}

/* Views */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* misc */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat {
  padding: 18px 20px;
}

.stat .n {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat .l {
  color: var(--ink-3);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 2px;
}

.blank-hero {
  border: 2px dashed var(--line);
  border-radius: 16px;
  min-height: 340px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  text-align: center;
  background: var(--surface);
}

.hidden {
  display: none !important;
}

.brand-link {
  text-decoration: none !important;
  color: inherit;
}

@media (max-width: 1100px) {
  .scorecard {
    width: 260px;
  }
  .detail-wrap {
    flex-wrap: wrap;
  }
}
.customer-search-grid .table .table-light tr .orderBy {
  cursor: pointer;
}

/* MLA Pricing table */
.mla-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mla-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-3);
  font-size: 0.78rem;
}

.mla-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mla-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.mla-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.mla-table thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  text-align: left;
  padding: 9px 7px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.mla-table tbody td {
  padding: 7px 7px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: middle;
}

.mla-table tbody tr:hover {
  background: var(--surface-2);
}

.mla-table .num {
  font-variant-numeric: tabular-nums;
  width: 80px;
}
.mla-table .num input {
  width: inherit;
}

/* zone separators */
.mla-table th.sep, .mla-table td.sep {
  border-left: 2px solid var(--line);
}

.mla-table th.zone {
  color: var(--brand-dark);
}

/* history columns hidden by default */
.mla-table .hist {
  display: none;
}

.mla-table.show-hist .hist {
  display: table-cell;
}

.mla-input {
  width: 74px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.78rem;
  background: var(--surface);
  text-align: right;
}

.mla-input.date {
  width: 120px;
  text-align: left;
}

.mla-input.wide {
  width: 130px;
  text-align: left;
}

.mla-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.mla-input:disabled {
  background: var(--surface-2);
  color: var(--ink-3);
  cursor: not-allowed;
}

.mla-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: var(--surface);
  color: var(--brand-dark);
  border: 1px solid var(--brand);
  padding: 10px 18px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--brand-soft);
}

.btn-delete {
  background: var(--bad);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-delete:hover {
  background: var(--bad-bg-light);
}

.btn-recall {
  background: var(--surface);
  color: var(--bad);
  border: 1px solid var(--bad-bg);
  padding: 5px 12px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.btn-recall:hover {
  background: var(--bad-bg);
}

.btn-ghost {
  background: var(--surface);
  color: var(--brand-dark);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-ghost:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}

.btn-ghost .chev {
  transition: transform 0.18s;
}

.btn-ghost.open .chev {
  transform: rotate(90deg);
}

.subnav {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow-x: auto;
  scrollbar-width: thin;
}

.subnav .tab {
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink-2);
  border: none;
  background: none;
  white-space: nowrap;
  flex: none;
}

.subnav .tab:hover {
  background: var(--bg);
  color: var(--ink);
}

.subnav .tab.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

/* Overflow "More" menu */
.more-wrap {
  position: relative;
  flex: none;
  margin-left: auto;
}

.more-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 6px;
  min-width: 220px;
  z-index: 40;
  display: none;
}

.more-menu.open {
  display: block;
}

.more-menu .tab {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 7px;
}

/* Content area now uses full width; scorecard collapses into a rail */
.detail-wrap {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.detail-main {
  flex: 1;
  min-width: 0;
}

.placeholder-screen {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--ink-3);
  background: repeating-linear-gradient(45deg, transparent, transparent 12px, rgba(0, 0, 0, 0.012) 12px, rgba(0, 0, 0, 0.012) 24px);
}

.placeholder-screen h3 {
  color: var(--ink-2);
  margin: 0 0 6px;
}

/* Scorecard right rail (collapsible) */
.scorecard {
  width: var(--scorecard-w);
  flex: none;
  position: sticky;
  top: calc(var(--topbar-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: width 0.18s ease;
}

/* Collapsed state: thin strip showing just the score */
.detail-wrap.sc-collapsed .scorecard {
  width: 64px;
}

.detail-wrap.sc-collapsed .scorecard .sc-full {
  display: none;
}

.detail-wrap:not(.sc-collapsed) .scorecard .sc-mini {
  display: none;
}

.sc-mini {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 8px;
  box-shadow: var(--shadow);
  text-align: center;
  cursor: pointer;
}

.sc-mini .mini-val {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.sc-mini .mini-lbl {
  font-size: 0.6rem;
  opacity: 0.85;
  margin-top: 4px;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  margin: 8px auto 0;
}

.sc-collapse-btn {
  position: absolute;
  left: -13px;
  top: 16px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  z-index: 5;
}

.sc-head {
  position: relative;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.sc-head .cust {
  font-weight: 800;
  font-size: 1.05rem;
}

.sc-head .sub {
  opacity: 0.85;
  font-size: 0.8rem;
  margin-top: 2px;
}

.sc-score {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.ring {
  width: 66px;
  height: 66px;
  flex: none;
}

.sc-score .label {
  font-size: 0.78rem;
  opacity: 0.9;
}

.sc-score .val {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.sc-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.sc-card h4 {
  margin: 0 0 12px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
}

.metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.metric:last-child {
  border-bottom: none;
}

.metric .m-label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-weight: 500;
}

.metric .m-ic {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}

.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  width: 70px;
}

.bar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.alert-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.83rem;
  color: var(--ink-2);
}

.alert-row:last-child {
  border-bottom: none;
}

.alert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex: none;
}

/* Views */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* misc */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat {
  padding: 18px 20px;
}

.stat .n {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stat .l {
  color: var(--ink-3);
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 2px;
}

.blank-hero {
  border: 2px dashed var(--line);
  border-radius: 16px;
  min-height: 340px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  text-align: center;
  background: var(--surface);
}

/* MLA Pending Requests accordion */
.pr-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pr-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-bottom: 10px;
}
.pr-item button {
  height: 25px;
  font-size: 0.75rem;
  padding: 3px 10px;
  margin-left: 5px;
}

.pr-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: var(--surface);
  justify-content: space-between;
}
.pr-head .pr-id {
  margin-right: 5px;
}
.pr-head .pr-date {
  padding-top: 3px;
}
.pr-head .left-pr-head {
  display: inline-flex;
}
.pr-head .left-pr-head .togglePanel {
  display: inline-flex;
  align-items: center;
}
.pr-head .right-pr-head {
  width: 175px;
  display: flex;
  justify-content: flex-end;
}

.pr-head:hover {
  background: var(--surface-2);
}

.pr-head .chev {
  transition: transform 0.18s;
  color: var(--ink-3);
  flex: none;
}

.pr-item.open .pr-head .chev {
  transform: rotate(90deg);
}

.pr-head .pr-id {
  font-weight: 700;
  color: var(--ink);
}

.pr-head .pr-date {
  color: var(--ink-3);
  font-size: 0.82rem;
}

.pr-head .pr-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pr-body {
  display: none;
  border-top: 1px solid var(--line);
  padding: 0;
}

.pr-item.open .pr-body {
  display: block;
}

.hidden {
  display: none !important;
}

.pricing-edit {
  display: inline-flex;
}
.pricing-edit .container {
  display: block;
}
.pricing-edit .container div {
  display: inline-flex;
}
.pricing-edit .container div div {
  margin-bottom: 10px;
}
.pricing-edit .float-right {
  float: inline-end;
}

input.warning-input {
  border: 2px solid orange; /* or use #ffc107 for bootstrap warning yellow */
}

/* Container holds relative position for absolute bubble positioning */
.input-container {
  position: relative;
}

.validation-tooltip-wrapper {
  display: none;
}

.text-danger {
  white-space: break-spaces;
}

input.num {
  width: 80px;
}

/* Hide validation error until wrapper container is hovered */
.invalid + .validation-tooltip-wrapper {
  display: block;
  position: absolute;
  bottom: 100%; /* Position above input */
  left: 50%;
  transform: translateX(-50%);
  background-color: #ff4d4d;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 10;
}
.invalid + .validation-tooltip-wrapper .validation-message {
  color: white;
}

/* Add a small pointer triangle below the tooltip bubble */
.validation-tooltip-wrapper::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #ff4d4d transparent transparent transparent;
}

/* Show the tooltip bubble when hovering over the input block */
.invalid:hover .validation-tooltip-wrapper {
  display: block;
}

.landing-header {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink-2);
}

.landing-text {
  max-width: 420px;
  margin: 10px auto 0;
}

/* ---------------- ACTION ITEMS ---------------- */
.actions-filter {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.86rem;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
}

.actions-filter:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.table tbody td {
  vertical-align: middle;
}

.table tbody tr.sel {
  background: var(--brand-soft);
}

.table tbody tr.sel:hover {
  background: var(--brand-soft);
}

.table tbody tr.done {
  opacity: 0.55;
}

.actions-tid {
  color: var(--brand-dark);
  font-weight: 700;
  cursor: pointer;
}

.actions-tid:hover {
  text-decoration: underline;
}

.actions-decision {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.82rem;
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-weight: 600;
}

.actions-decision:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.actions-decision.approve {
  border-color: var(--ok);
  color: var(--ok);
}

.actions-decision.reject {
  border-color: var(--bad);
  color: var(--bad);
}

.actions-decision-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: pre-line;
}

.actions-clear {
  border: none;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  padding: 4px 5px;
  border-radius: 6px;
  flex: none;
}

.actions-clear:hover {
  background: var(--bad-bg);
  color: var(--bad);
}

.actions-comment {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.82rem;
  background: var(--surface);
  font-family: inherit;
}

.actions-comment:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.actions-row-submit {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 7px 12px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.actions-row-submit:hover {
  background: var(--brand-dark);
}

.actions-row-submit:disabled {
  background: var(--surface-2);
  color: var(--ink-3);
  cursor: not-allowed;
}

.actions-detail td {
  background: var(--surface-2);
  padding: 0 !important;
}

.actions-detail-inner {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 24px;
  border: 1px solid var(--ink-3);
}

.actions-header {
  color: var(--ink-3);
}

.actions-detail-inner .fld {
  font-size: 0.82rem;
}

.actions-detail-inner .fld .k {
  color: var(--ink-3);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.actions-detail-inner .fld .v {
  color: var(--ink);
  font-weight: 600;
}

.actions-detail-inner .fld.full {
  grid-column: 1/-1;
}

.actions-bulkbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  flex-wrap: wrap;
}

.actions-bulk-count {
  color: var(--ink-2);
  font-size: 0.85rem;
}

.actions-bulk-comment {
  flex: 1;
  min-width: 200px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 0.86rem;
  font-family: inherit;
  background: var(--surface);
}

.actions-bulk-comment:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.pricing-details-history-table tbody {
  background: var(--brand-soft) !important;
}
.pricing-details-history-table tbody tr td {
  background: inherit;
}

.approval-details-history-table {
  margin-bottom: 10px;
}

.table tbody .highlighted {
  background-color: lightsteelblue;
}
.table tbody .highlighted td {
  background-color: inherit;
}

/* ---------------- REPORTS ---------------- */
.sidebar:not(.hidden) + .main {
  position: absolute;
  left: 230px;
  width: 100%;
}
.sidebar:not(.hidden) + .main .left-column {
  display: flex;
  gap: 10px;
  flex-direction: column;
}
.sidebar:not(.hidden) + .main .left-column .gmids {
  height: 200px;
}
.sidebar:not(.hidden) + .main .left-column .filter-custom {
  display: flex;
  gap: 10px;
  flex-direction: column;
}
.sidebar:not(.hidden) + .main .left-column .filter-custom input {
  margin-left: 10px;
}
.sidebar:not(.hidden) + .main .right-column {
  display: flex;
  flex-direction: column;
}

.filter-customerNumber {
  width: 100%;
}

.multiselect {
  max-height: 250px;
  height: 250px;
  overflow-y: scroll;
  overflow-x: hidden;
}

.app-preloader {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: sans-serif;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.loading-overlay .loading-background {
  padding: 10px 50px 10px 50px;
  background-color: white;
  color: var(--brand);
}
.loading-overlay .loading-background .spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #09f;
  animation: spin 1s linear infinite;
}
.loading-overlay .loading-background strong {
  padding-right: 10px;
}

.modal-dialog {
  max-width: unset !important;
  width: fit-content !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-size: 0.78rem !important;
}
.modal-dialog .heading {
  font-weight: 700;
  margin-right: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/*# sourceMappingURL=main.css.map */
