@import '_content/Blazor.Bootstrap/Blazor.Bootstrap.7t9tbfaemk.bundle.scp.css';

/* /Pages/Shared/TreeView/CustomInstrumentTreeView.razor.rz.scp.css */
.vtree[b-xdcle5in1w] {
  font-size: 0.85rem;
  --vtree-inactive-color: #FF7F7F; /* Light Red */
  --vtree-base-node-color: #666; /* Grey */
  --vtree-base-checkbox-color: #1976d2; /* Blue */
  --vtree-blocked-border-color: #c62828; /* Dark Red */
  --vtree-blocked-background-color: #fde8e8; /* Very Light Red / Pink */
  --vtree-disabled-color: #aaa; /* Light Grey */
}

.vtree-node[b-xdcle5in1w] {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  height: 1.875rem;
  cursor: pointer;
  border-radius: 0.1875rem;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}

  .vtree-node:hover[b-xdcle5in1w] {
    background: rgba(0, 0, 0, 0.06);
  }

.vtree-node--inactive[b-xdcle5in1w] {
  color: var(--vtree-inactive-color) !important;
}

.vtree-node--anchor[b-xdcle5in1w] {
  outline: 0.1rem dashed var(--vtree-base-checkbox-color);
  outline-offset: -0.1rem;
  background: rgba(25, 118, 210, 0.08);
}

  .vtree-node--anchor:hover[b-xdcle5in1w] {
    background: rgba(25, 118, 210, 0.14);
  }


.vtree-arrow[b-xdcle5in1w] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  min-width: 1rem;
  font-size: 0.6rem;
  color: var(--vtree-base-node-color);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}

.vtree-arrow--open[b-xdcle5in1w] {
  transform: rotate(90deg);
}

.vtree-arrow--inactive[b-xdcle5in1w] {
  color: var(--vtree-inactive-color) !important;
}

.vtree-arrow-spacer[b-xdcle5in1w] {
  display: inline-block;
  width: 1rem;
  min-width: 1rem;
}

.vtree-label[b-xdcle5in1w] {
  overflow: hidden;
  text-overflow: ellipsis;
}

.vtree-checkbox[b-xdcle5in1w] {
  margin: 0;
  cursor: pointer;
  accent-color: var(--vtree-base-checkbox-color);
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}

.vtree-node--selected[b-xdcle5in1w] {
  background: rgba(25, 118, 210, 0.12);
}

/* ── Custom checkbox ─────────────────────────────────────────────────────── */

.vtree-check[b-xdcle5in1w] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.875rem;
  height: 0.875rem;
  min-width: 0.875rem;
  border: 0.1rem solid var(--vtree-base-checkbox-color);
  border-radius: 0.125rem;
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Checked — blue fill with a tick */
.vtree-check--checked[b-xdcle5in1w] {
  background: var(--vtree-base-checkbox-color);
  border-color: var(--vtree-base-checkbox-color);
}

  .vtree-check--checked[b-xdcle5in1w]::after {
    content: '';
    display: block;
    width: 0.3rem;
    height: 0.6rem;
    border: 0.13rem solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg) translateY(-0.05rem) translateX(-0.06rem);
  }

/* Indeterminate — blue fill with a dash */
.vtree-check--indeterminate[b-xdcle5in1w] {
  background: var(--vtree-base-checkbox-color);
  border-color: var(--vtree-base-checkbox-color);
}

  .vtree-check--indeterminate[b-xdcle5in1w]::after {
    content: '';
    display: block;
    width: 0.45rem;
    height: 0.1rem;
    background: white;
  }

/* Disabled — faded, no pointer */
.vtree-check--disabled[b-xdcle5in1w] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  border-color: var(--vtree-disabled-color);
}

.vtree-check--blocked[b-xdcle5in1w] {
  background: var(--vtree-blocked-background-color);
  border-color: var(--vtree-blocked-border-color);
  cursor: not-allowed;
  overflow: hidden;
  position: relative;
}

  .vtree-check--blocked[b-xdcle5in1w]::after {
    content: '';
    position: absolute;
    width: 140%;
    height: 0.11rem;
    background: var(--vtree-blocked-border-color);
    border-radius: 1px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
  }
