.combo-detail-modal .org-operations {
  font:
    15px/1.55 system-ui,
    sans-serif;
  color: #162b49;
  padding: 8px 4px;
}
.combo-detail-modal .org-operations h3 {
  font-size: 18px;
  margin: 28px 0 12px;
}
.combo-detail-modal .org-operations p {
  max-width: 72ch;
}
.combo-detail-modal .org-operations label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  margin-bottom: 14px;
  min-width: 0;
}
.combo-detail-modal .org-operations input,
.combo-detail-modal .org-operations select,
.combo-detail-modal .org-operations textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  border: 1px solid #a8b9d0;
  border-radius: 7px;
  padding: 9px 11px;
  color: #162b49;
  background: #fff;
  font: inherit;
  /* The legacy COMBO scope sets compact controls with !important. */
  font-size: 15px !important;
  min-height: 42px !important;
  padding: 9px 11px !important;
}
.combo-detail-modal .org-operations input::placeholder {
  color: #52677f;
}
.combo-detail-modal .org-operations textarea {
  min-height: 86px;
  resize: vertical;
}
.combo-detail-modal .org-operations fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0;
  min-width: 0;
}
.combo-detail-modal .org-operations legend {
  font-weight: 700;
  margin-bottom: 14px;
  font-size: 17px;
}
.combo-detail-modal .org-operations button,
.ops-employee-actions button {
  font: inherit;
  color: #174777;
  background: #fff;
  border: 1px solid #a8b9d0;
  border-radius: 7px;
  padding: 9px 14px;
  cursor: pointer;
  min-height: 40px;
  font-size: 15px !important;
  min-height: 42px !important;
  padding: 9px 14px !important;
}
.combo-detail-modal .org-operations button:hover,
.ops-employee-actions button:hover {
  background: #eaf2ff;
}
.combo-detail-modal .org-operations button:disabled {
  cursor: default;
  opacity: 0.55;
}
.combo-detail-modal .org-operations :focus-visible,
.ops-menu :focus-visible,
.ops-employee-actions :focus-visible {
  outline: 3px solid #2363eb;
  outline-offset: 3px;
}
.combo-detail-modal .org-operations ::selection {
  background: #caddff;
  color: #162b49;
}
.ops-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 24px;
}
.ops-profile {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #d3deec;
}
.ops-profile strong {
  font-size: 20px;
  display: block;
}
.ops-profile span {
  display: block;
  color: #52677f;
}
.combo-detail-modal .org-operations .ops-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #d3deec;
  margin-top: 22px;
}
.combo-detail-modal .org-operations .ops-primary {
  color: #fff;
  background: #1856ce;
  border-color: #1856ce;
}
.combo-detail-modal .org-operations .ops-primary:hover {
  background: #1042a6;
}
.combo-detail-modal .org-operations .ops-danger {
  color: #fff;
  background: #a62332;
  border-color: #a62332;
}
.ops-error {
  color: #921d2a;
  background: #fff0f1;
  padding: 12px;
  border-radius: 7px;
}
.ops-message {
  color: #174777;
  background: #edf5ff;
  padding: 12px;
}
.ops-employee-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
}
.ops-menu {
  position: relative;
}
.ops-menu summary {
  cursor: pointer;
  list-style: none;
  padding: 8px 12px;
  border: 1px solid #a8b9d0;
  border-radius: 7px;
}
.ops-menu > div {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  background: #fff;
  color: #162b49;
  padding: 8px;
  border: 1px solid #c6d4e7;
  border-radius: 8px;
  box-shadow: 0 8px 24px #10223c26;
  display: grid;
  gap: 4px;
}
.ops-menu button {
  text-align: left;
}
.ops-table-wrap {
  overflow: auto;
  max-height: 360px;
  border: 1px solid #d3deec;
  border-radius: 7px;
  margin: 12px 0;
}
.combo-detail-modal .org-operations table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.combo-detail-modal .org-operations th {
  background: #edf5ff;
  text-align: left;
  position: sticky;
  top: 0;
}
.combo-detail-modal .org-operations th,
.combo-detail-modal .org-operations td {
  padding: 10px 12px;
  border-bottom: 1px solid #d3deec;
  vertical-align: top;
}
.combo-detail-modal .org-operations small {
  display: block;
}
.ops-scope {
  border-bottom: 1px solid #d3deec;
  margin-bottom: 20px;
  padding-bottom: 20px;
}
.combo-detail-modal .org-operations .ops-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 400;
}
.combo-detail-modal .org-operations .ops-check input {
  width: 18px;
  min-height: 18px !important;
  height: 18px;
}
.ops-actions-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.ops-audit-row {
  border-bottom: 1px solid #d3deec;
  padding: 14px 0;
}
.ops-audit-row summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.ops-audit-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.ops-audit-values pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    13px/1.6 ui-monospace,
    monospace;
  padding: 12px;
  background: #f3f6fb;
}
.ops-discard {
  position: sticky;
  bottom: 0;
  border: 1px solid #a62332;
  background: #fff0f1;
  padding: 16px;
  margin-top: 20px;
}
.ops-discard button {
  margin-right: 8px;
}
@media (max-width: 640px) {
  .ops-form-grid,
  .ops-audit-values {
    grid-template-columns: 1fr;
  }
  .combo-detail-modal .org-operations .ops-footer {
    flex-wrap: wrap;
  }
  .ops-profile strong {
    font-size: 18px;
  }
}
.salary-summary {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 650;
  color: #334155;
  overflow-wrap: anywhere;
}
.salary-suggested {
  color: #17466d;
}
.salary-ambiguous,
.salary-stale {
  color: #754a08;
}
.salary-reference-details {
  margin: 20px 0;
  padding-top: 18px;
  border-top: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 14px;
  line-height: 1.6;
}
.salary-reference-details h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #17466d;
}
.salary-reference-details p {
  margin: 8px 0;
}
.salary-reference-note,
.salary-reference-source {
  color: #475569;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.salary-reference-fields {
  margin: 16px 0;
}
.salary-reference-fields > div {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 3fr;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}
.salary-reference-fields dt {
  font-weight: 650;
}
.salary-reference-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.salary-reference-warning {
  padding: 10px 12px;
  background: #fff7df;
  color: #754a08;
  border: 1px solid #e8cc8d;
  border-radius: 8px;
}
.salary-reference-details li {
  margin: 8px 0;
}
.salary-reference-details li small {
  display: block;
  color: #475569;
}
.salary-scale-disclosure > summary {
  cursor: pointer;
  padding: 10px 0;
  font-weight: 650;
  color: #17466d;
  min-height: 44px;
  box-sizing: border-box;
}
.salary-scale-disclosure > summary:focus-visible,
.salary-scale-scroll:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}
.salary-scale-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.salary-scale-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.salary-scale-scroll caption {
  text-align: left;
  padding: 8px 0;
}
.salary-scale-scroll th,
.salary-scale-scroll td {
  white-space: nowrap;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  text-align: right;
}
.salary-scale-scroll th {
  background: #f1f5f9;
}
.org-card .salary-summary {
  margin: 6px 0 2px;
}
@media (max-width: 600px) {
  .salary-reference-fields > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
/* Unified OrgChart 2026 Design System
 * Hoàn toàn cô lập trong namespace .unified-orgchart-container
 * Không xung đột với legacy styles
 */

.unified-orgchart-container {
  --u-bg: #f8fafc;
  --u-surface: #ffffff;
  --u-surface-subtle: #f1f5f9;
  --u-text-main: #0f172a;
  --u-text-muted: #64748b;
  --u-border: #e2e8f0;
  --u-border-subtle: #cbd5e1;

  --u-primary: #0284c7;
  --u-primary-light: #e0f2fe;
  --u-primary-dark: #0369a1;

  --u-success: #16a34a;
  --u-success-light: #dcfce7;
  --u-warning: #d97706;
  --u-warning-light: #fef3c7;
  --u-danger: #dc2626;
  --u-danger-light: #fee2e2;

  --u-reporting: #2563eb;
  --u-struct: #94a3b8;

  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  background-color: var(--u-bg);
  color: var(--u-text-main);
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    sans-serif;
  overflow: hidden;
  position: relative;
}

/* ---------------- Top Summary & Provenance Bar ---------------- */
.u-summary-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--u-border);
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 20;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.u-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.u-title-badge {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.u-provenance-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.u-provenance-demo {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.u-provenance-imported {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.u-provenance-api {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.u-metrics-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.u-metric-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  background: var(--u-surface-subtle);
  border: 1px solid var(--u-border);
}

.u-metric-pill .label {
  color: var(--u-text-muted);
}

.u-metric-pill .value {
  font-weight: 700;
  color: var(--u-text-main);
}

.u-metric-pill.approved .value {
  color: #0284c7;
}
.u-metric-pill.occupied .value {
  color: #16a34a;
}
.u-metric-pill.vacancy .value {
  color: #d97706;
}
.u-metric-pill.surplus .value {
  color: #dc2626;
}

.u-quality-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.u-quality-complete {
  background-color: var(--u-success-light);
  color: var(--u-success);
}

.u-quality-partial {
  background-color: var(--u-warning-light);
  color: var(--u-warning);
}

.u-quality-unknown {
  background-color: var(--u-surface-subtle);
  color: var(--u-text-muted);
}

.u-issues-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.u-issues-btn:hover {
  background: #fecaca;
}

/* ---------------- Main Toolbar ---------------- */
.u-toolbar {
  background: #ffffff;
  border-bottom: 1px solid var(--u-border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 15;
}

.u-toolbar-section {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.u-mode-toggle {
  display: flex;
  background: var(--u-surface-subtle);
  padding: 3px;
  border-radius: 8px;
  border: 1px solid var(--u-border);
}

.u-mode-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--u-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.u-mode-btn.active {
  background: #ffffff;
  color: var(--u-primary-dark);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.u-select {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--u-border);
  background: #ffffff;
  font-size: 13px;
  color: var(--u-text-main);
  outline: none;
  transition: border-color 0.2s;
  max-width: 220px;
}

.u-select:focus {
  border-color: var(--u-primary);
}

.u-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.u-search-input {
  padding: 6px 30px 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--u-border);
  font-size: 13px;
  width: 200px;
  transition:
    width 0.2s,
    border-color 0.2s;
}

.u-search-input:focus {
  width: 260px;
  border-color: var(--u-primary);
  outline: none;
}

.u-search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--u-text-muted);
  cursor: pointer;
  font-size: 14px;
}

.u-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--u-border);
  background: #ffffff;
  color: var(--u-text-main);
}

.u-btn:hover {
  background: var(--u-surface-subtle);
  border-color: var(--u-border-subtle);
}

.u-btn.active {
  background: var(--u-primary-light);
  color: var(--u-primary-dark);
  border-color: #bae6fd;
}

.u-btn-primary {
  background: var(--u-primary);
  color: #ffffff;
  border-color: var(--u-primary-dark);
}

.u-btn-primary:hover {
  background: var(--u-primary-dark);
}

.u-legacy-link {
  font-size: 12px;
  color: var(--u-text-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
}

.u-legacy-link:hover {
  color: var(--u-primary);
}

/* ---------------- Canvas & Viewport ---------------- */
.u-canvas-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #f8fafc;
  user-select: none;
  cursor: grab;
}

.u-canvas-viewport.panning {
  cursor: grabbing;
}

.u-canvas-content {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  padding: 40px;
  min-width: 100%;
  box-sizing: border-box;
}

/* ---------------- SVG Overlay for Dual Edges ---------------- */
.u-svg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.u-edge-reporting {
  fill: none;
  stroke: var(--u-reporting);
  stroke-width: 2;
  stroke-dasharray: 6, 4;
  opacity: 0.65;
  transition:
    opacity 0.2s,
    stroke-width 0.2s;
}

.u-edge-reporting.active {
  stroke-width: 3.5;
  stroke: #1d4ed8;
  opacity: 1;
  stroke-dasharray: 8, 4;
  filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.4));
}

.u-edge-reporting.dimmed {
  opacity: 0.15;
}

/* ---------------- Org Structure Nodes ---------------- */
.u-tree-node-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.u-child-units-container {
  display: flex;
  gap: 32px;
  justify-content: center;
  position: relative;
  margin-top: 24px;
}

/* OrgUnit Container Box */
.u-unit-box {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -2px rgba(0, 0, 0, 0.05);
  min-width: 380px;
  max-width: 820px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 10;
}

.u-unit-box:hover {
  border-color: #94a3b8;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
}

.u-unit-header {
  background: linear-gradient(to right, #f8fafc, #f1f5f9);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 16px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.u-unit-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.u-unit-chevron {
  font-size: 14px;
  transition: transform 0.2s ease;
  color: var(--u-text-muted);
}

.u-unit-chevron.collapsed {
  transform: rotate(-90deg);
}

.u-unit-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.u-unit-code {
  font-size: 11px;
  color: #64748b;
  background: #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.u-unit-stats-pills {
  display: flex;
  gap: 6px;
  font-size: 11px;
}

.u-unit-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---------------- Rank Rows (Phân tầng chức vụ) ---------------- */
.u-rank-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f8fafc;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.u-rank-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px dashed #cbd5e1;
  padding-bottom: 4px;
}

.u-rank-positions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Position Cluster */
.u-position-cluster {
  flex: 1;
  min-width: 240px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.u-position-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.u-position-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.u-position-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e0f2fe;
  color: #0369a1;
}

.u-position-cards-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ---------------- Employee (Assignment) Card ---------------- */
.u-card-employee {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.u-card-employee:hover {
  border-color: #38bdf8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.u-card-employee.selected {
  border-color: #0284c7;
  background: #f0f9ff;
  box-shadow: 0 0 0 2px #38bdf8;
}

.u-card-employee.highlighted {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 2px #60a5fa;
}

.u-card-employee.dimmed {
  opacity: 0.35;
}

.u-avatar-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.u-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  flex: 1;
}

.u-card-name {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.u-card-meta {
  font-size: 11px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.u-manager-tag {
  font-size: 10px;
  color: #2563eb;
  background: #eff6ff;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 500;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

/* ---------------- Vacancy Slot Card ---------------- */
.u-card-vacancy {
  background: #fffbeb;
  border: 1.5px dashed #f59e0b;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.u-card-vacancy:hover {
  background: #fef3c7;
  border-color: #d97706;
}

.u-vacancy-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fde68a;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.u-vacancy-title {
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
}

.u-vacancy-desc {
  font-size: 11px;
  color: #b45309;
}

/* ---------------- External Manager Reference Card ---------------- */
.u-card-reference {
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #475569;
}

/* ---------------- Detail Drawer ---------------- */
.u-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  max-width: 100%;
  background: #ffffff;
  border-left: 1px solid var(--u-border);
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.08);
  z-index: 30;
  display: flex;
  flex-direction: column;
  animation: slideInRight 0.25s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.u-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--u-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.u-drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.u-drawer-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--u-text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}

.u-drawer-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.u-drawer-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.u-profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.u-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.3);
}

.u-profile-names {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.u-profile-fullname {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.u-profile-code {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.u-drawer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.u-section-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 4px;
}

.u-field-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}

.u-field-label {
  color: #64748b;
  font-weight: 500;
}

.u-field-value {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
}

/* ---------------- Data Issues Modal / Panel ---------------- */
.u-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.u-modal-card {
  background: #ffffff;
  border-radius: 12px;
  width: 720px;
  max-width: 100%;
  max-height: 85vh;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.u-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--u-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.u-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.u-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.u-issue-item {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.u-issue-item.error {
  border-left: 4px solid var(--u-danger);
  background: #fef2f2;
}

.u-issue-item.warning {
  border-left: 4px solid var(--u-warning);
  background: #fffbeb;
}

.u-issue-item.info {
  border-left: 4px solid var(--u-primary);
  background: #f0f9ff;
}

.u-issue-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.u-issue-code {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.u-issue-message {
  font-size: 13px;
  color: #334155;
}

.u-issue-details {
  font-size: 11px;
  color: #64748b;
  font-family: monospace;
}

/* Coordinated navigator, diagram and profile workspace */
.unified-orgchart-container .u-app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 20px;
  background: #182536;
  color: #fff;
  box-sizing: border-box;
}
.unified-orgchart-container .u-app-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 36px;
  border: 1px solid #7891aa;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 1px;
}
.unified-orgchart-container .u-app-header h1 {
  margin: 0;
  font-size: 18px;
}
.unified-orgchart-container .u-app-header p {
  margin: 4px 0 0;
  color: #b9c9d9;
  font-size: 12px;
}
.unified-orgchart-container .u-header-link {
  margin-left: auto;
  color: #dde8f4;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
}
.unified-orgchart-container .u-workspace {
  display: flex;
  flex: 1;
  min-height: 0;
}
.unified-orgchart-container .u-main-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.unified-orgchart-container .u-chart-and-details {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.unified-orgchart-container .u-navigator {
  width: 330px;
  flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--u-border);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.unified-orgchart-container .u-nav-heading {
  padding: 16px 16px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.unified-orgchart-container .u-nav-heading h2 {
  margin: 0;
  font-size: 14px;
}
.unified-orgchart-container .u-nav-heading > span {
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}
.unified-orgchart-container .u-nav-search {
  padding: 0 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
}
.unified-orgchart-container .u-nav-search input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd5e1;
  padding: 10px;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  color: #0f172a;
}
.unified-orgchart-container .u-nav-list {
  flex: 1;
  overflow: auto;
  padding: 0 8px 12px;
}
.unified-orgchart-container .u-nav-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.unified-orgchart-container .u-nav-list li {
  margin: 3px 0;
}
.unified-orgchart-container .u-nav-row {
  display: flex;
  align-items: flex-start;
  border: 1px solid transparent;
  border-radius: 6px;
}
.unified-orgchart-container .u-nav-row.selected {
  border-color: #bfd7f1;
  background: #eef5ff;
}
.unified-orgchart-container .u-nav-expand {
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  padding: 10px 5px;
  font-size: 15px;
  width: 25px;
  flex-shrink: 0;
}
.unified-orgchart-container .u-nav-select,
.unified-orgchart-container .u-nav-person {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 9px 5px;
  cursor: pointer;
  color: #10283f;
  min-width: 0;
  border-radius: 5px;
}
.unified-orgchart-container .u-nav-select > span:last-child,
.unified-orgchart-container .u-nav-person > span:last-child {
  min-width: 0;
}
.unified-orgchart-container .u-nav-select strong,
.unified-orgchart-container .u-nav-person strong {
  font-size: 12px;
  line-height: 1.45;
  display: block;
  overflow-wrap: anywhere;
}
.unified-orgchart-container .u-nav-list small {
  display: block;
  font-size: 10px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.5;
}
.unified-orgchart-container .u-nav-kind {
  display: grid;
  place-items: center;
  color: #476177;
  background: #ecf1f5;
  font-size: 9px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  flex-shrink: 0;
}
.unified-orgchart-container .u-nav-kind.company {
  background: #e0ecfb;
  color: #1e5a9c;
}
.unified-orgchart-container .u-nav-person.selected {
  background: #e4f0ff;
}
.unified-orgchart-container .u-nav-list .u-nav-children {
  margin-left: 12px;
  padding-left: 9px;
  border-left: 1px solid #e2e8f0;
}
.unified-orgchart-container .u-nav-position {
  border: 1px solid #e2e8f0;
  background: #fafbfd;
  text-align: left;
  padding: 8px;
  font-size: 11px;
  width: 100%;
  border-radius: 4px;
  color: #334155;
  cursor: pointer;
}
.unified-orgchart-container .u-nav-empty,
.unified-orgchart-container .u-nav-result-count {
  font-size: 11px;
  color: #64748b;
  padding: 6px;
}
.unified-orgchart-container .u-nav-help {
  border-top: 1px solid #e2e8f0;
  margin: 0;
  padding: 12px 16px;
  font-size: 11px;
  line-height: 1.6;
  color: #64748b;
}
.unified-orgchart-container .u-summary-bar {
  padding: 10px 16px;
  gap: 10px;
  box-shadow: none;
}
.unified-orgchart-container .u-metrics-group {
  flex-wrap: wrap;
  gap: 6px;
}
.unified-orgchart-container .u-snapshot-date {
  color: #64748b;
  font-size: 11px;
}
.unified-orgchart-container .u-toolbar {
  padding: 10px 14px;
  gap: 8px;
}
.unified-orgchart-container .u-toolbar-section {
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.unified-orgchart-container .u-select {
  max-width: 290px;
}
.unified-orgchart-container .u-legacy-link {
  display: none;
}
.unified-orgchart-container .u-state {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #64748b;
}
.unified-orgchart-container .u-state h2 {
  color: #10283f;
  margin: 0;
  font-size: 20px;
}
.unified-orgchart-container .u-canvas-viewport {
  overflow: auto;
  min-width: 0;
  cursor: default;
}
.unified-orgchart-container .u-canvas-viewport.panning {
  cursor: grabbing;
}
.unified-orgchart-container .u-canvas-content {
  position: relative;
  width: max-content;
  min-width: 100%;
  padding: 32px 24px 60px;
}
.unified-orgchart-container .u-chart-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 11px;
  color: #64748b;
  padding: 12px 20px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.unified-orgchart-container .u-legend-structure::before,
.unified-orgchart-container .u-legend-reporting::before {
  display: inline-block;
  content: '';
  width: 22px;
  border-top: 1px solid #94a3b8;
  margin-right: 6px;
  vertical-align: middle;
}
.unified-orgchart-container .u-legend-reporting::before {
  border-top: 2px dashed #2563eb;
}
.unified-orgchart-container .u-company-groups {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}
.unified-orgchart-container .u-company-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 38px;
}
.unified-orgchart-container .u-company-card {
  text-align: center;
  background: #12385b;
  color: #fff;
  padding: 18px 22px;
  border-radius: 9px;
  max-width: 480px;
  position: relative;
  z-index: 6;
}
.unified-orgchart-container .u-company-card small {
  color: #bcd2e5;
  font-size: 10px;
}
.unified-orgchart-container .u-company-card h2 {
  margin: 7px 0;
  font-size: 16px;
  line-height: 1.5;
}
.unified-orgchart-container .u-company-card p {
  margin: 0;
  color: #d2e5f6;
  font-size: 12px;
}
.unified-orgchart-container .u-company-units {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}
.unified-orgchart-container .u-tree-node-group {
  align-items: stretch;
  gap: 30px;
}
.unified-orgchart-container .u-child-units-container {
  margin-top: 0;
  gap: 28px;
}
.unified-orgchart-container .u-unit-box {
  width: 460px;
  max-width: 680px;
  min-width: 0;
  border-radius: 8px;
  box-shadow: none;
  background: transparent;
  border: 0;
  z-index: auto;
}
.unified-orgchart-container .u-unit-box:hover {
  border-color: transparent;
  box-shadow: none;
}
.unified-orgchart-container .u-unit-header {
  border: 1px solid #d0deeb;
  border-radius: 8px;
  background: #eaf2f9;
  color: #163854;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-align: left;
  position: relative;
  z-index: 6;
  padding: 14px 16px;
  font: inherit;
}
.unified-orgchart-container .u-unit-title-group {
  align-self: flex-start;
  flex-wrap: wrap;
  font-size: 14px;
}
.unified-orgchart-container .u-unit-title-group small {
  color: #64748b;
  font-size: 10px;
}
.unified-orgchart-container .u-unit-stats-pills {
  gap: 16px;
  font-size: 11px;
  flex-wrap: wrap;
}
.unified-orgchart-container .u-unit-body {
  padding: 26px 0 0;
  gap: 26px;
}
.unified-orgchart-container .u-rank-row {
  padding: 12px;
  border-radius: 7px;
  background: rgba(241, 245, 249, 0.75);
  gap: 12px;
}
.unified-orgchart-container .u-rank-row-header {
  position: relative;
  z-index: 6;
  background: #f1f5f9;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  gap: 12px;
  color: #334155;
}
.unified-orgchart-container .u-rank-row-header small {
  white-space: nowrap;
  font-weight: 400;
}
.unified-orgchart-container .u-rank-positions-grid {
  flex-direction: column;
}
.unified-orgchart-container .u-position-cluster {
  min-width: 0;
  padding: 12px;
  border-radius: 6px;
  gap: 18px;
}
.unified-orgchart-container .u-position-header {
  border: 0;
  background: #eef4fa;
  color: #173d5e;
  padding: 10px 12px;
  border-radius: 5px;
  text-align: left;
  font: inherit;
  font-size: 12px;
  position: relative;
  z-index: 6;
  flex-direction: column;
  align-items: flex-start;
  cursor: pointer;
}
.unified-orgchart-container .u-position-header span {
  font-size: 10px;
  color: #506b82;
}
.unified-orgchart-container .u-position-cards-list {
  gap: 18px;
}
.unified-orgchart-container .u-card-employee,
.unified-orgchart-container .u-card-vacancy {
  position: relative;
  z-index: 6;
  border-radius: 6px;
}
.unified-orgchart-container .u-empty-note {
  font-size: 11px;
  color: #64748b;
  margin: 4px;
}
.unified-orgchart-container .u-empty {
  text-align: center;
  max-width: 440px;
  margin: 24px;
  font-size: 13px;
  color: #64748b;
}
.unified-orgchart-container .u-svg-overlay {
  z-index: 5;
  overflow: visible;
}
.unified-orgchart-container .u-edge-structure {
  fill: none;
  stroke: #a6b4c3;
  stroke-width: 1;
}
.unified-orgchart-container .u-edge-reporting {
  stroke-width: 1.5;
  opacity: 1;
}
.unified-orgchart-container .u-edge-reporting.active {
  stroke-width: 2;
  filter: none;
}
.unified-orgchart-container .u-edge-label rect {
  fill: #eef5ff;
  stroke: #c5d9f4;
  stroke-width: 0.5;
}
.unified-orgchart-container .u-edge-label text {
  fill: #225992;
  font:
    9px 'Segoe UI',
    sans-serif;
}
.unified-orgchart-container .u-reference-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-bottom: 42px;
}
.unified-orgchart-container .u-reference-placeholder {
  padding: 15px;
  background: #fff;
  border: 1px dashed #94a3b8;
  border-radius: 6px;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 280px;
  position: relative;
  z-index: 6;
}
.unified-orgchart-container .u-profile-caption {
  padding: 20px 24px 0;
}
.unified-orgchart-container .u-profile-caption h2 {
  font-size: 16px;
  margin: 0 0 6px;
}
.unified-orgchart-container .u-profile-caption p {
  color: #64748b;
  font-size: 12px;
  margin: 0;
}
.unified-orgchart-container .u-profile-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.unified-orgchart-container .u-profile-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 300px;
}
.unified-orgchart-container .u-profile-level + .u-profile-level {
  padding-top: 64px;
}
.unified-orgchart-container .u-profile-node {
  width: 280px;
  position: relative;
}
.unified-orgchart-container .u-profile-node .u-card-employee {
  padding: 14px 12px;
}
.unified-orgchart-container .u-profile-node small {
  font-size: 10px;
  color: #64748b;
  display: block;
  margin-top: 6px;
}
.unified-orgchart-container .u-relation-label {
  display: none;
}
.unified-orgchart-container .u-profile-direct-reports {
  padding-top: 64px;
}
.unified-orgchart-container .u-profile-direct-reports > p {
  font-size: 11px;
  text-align: center;
  color: #64748b;
  position: relative;
  z-index: 6;
  background: #f8fafc;
}
.unified-orgchart-container .u-profile-direct-reports > div {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.unified-orgchart-container .u-chart-and-details > .u-drawer {
  position: relative;
  top: auto;
  right: auto;
  bottom: auto;
  width: 310px;
  flex-shrink: 0;
  max-width: 100%;
  box-shadow: none;
  animation: none;
}
.unified-orgchart-container .u-drawer-header {
  padding: 16px;
}
.unified-orgchart-container .u-drawer-title {
  margin: 0;
  font-size: 14px;
}
.unified-orgchart-container .u-drawer-body {
  padding: 16px;
  gap: 20px;
}
.unified-orgchart-container .u-profile-avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  box-shadow: none;
  background: #12385b;
}
.unified-orgchart-container .u-profile-fullname {
  font-size: 16px;
  margin: 0;
}
.unified-orgchart-container .u-profile-code {
  margin: 5px 0 0;
}
.unified-orgchart-container .u-section-heading {
  margin: 0 0 4px;
  text-transform: none;
  letter-spacing: 0;
  color: #334155;
}
.unified-orgchart-container .u-field-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
}
.unified-orgchart-container .u-field-label {
  font-size: 10px;
  color: #64748b;
}
.unified-orgchart-container .u-field-value {
  font-size: 12px;
  text-align: left;
  overflow-wrap: anywhere;
}
.unified-orgchart-container .u-text-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: #1263a1;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.unified-orgchart-container .u-report-link {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  font-size: 11px;
  text-align: left;
  padding: 8px;
  color: #173d5e;
  cursor: pointer;
}
.unified-orgchart-container .u-report-link small {
  color: #64748b;
}
.unified-orgchart-container button:focus-visible,
.unified-orgchart-container input:focus-visible,
.unified-orgchart-container select:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
@media (max-width: 1100px) {
  .unified-orgchart-container .u-navigator {
    width: 270px;
  }
  .unified-orgchart-container .u-chart-and-details > .u-drawer {
    width: 270px;
  }
}
@media (max-width: 760px) {
  .unified-orgchart-container {
    height: auto;
    min-height: 100vh;
    overflow: auto;
    width: 100%;
  }
  .unified-orgchart-container .u-app-header {
    padding: 12px;
  }
  .unified-orgchart-container .u-app-header h1 {
    font-size: 16px;
  }
  .unified-orgchart-container .u-app-header p {
    font-size: 10px;
  }
  .unified-orgchart-container .u-header-link {
    display: none;
  }
  .unified-orgchart-container .u-summary-bar {
    align-items: flex-start;
    padding: 10px;
  }
  .unified-orgchart-container .u-workspace {
    flex-direction: column;
  }
  .unified-orgchart-container .u-navigator {
    width: auto;
    border-right: 0;
    border-bottom: 1px solid #cbd5e1;
    height: 260px;
  }
  .unified-orgchart-container .u-nav-heading {
    padding: 10px 14px;
  }
  .unified-orgchart-container .u-nav-help {
    display: none;
  }
  .unified-orgchart-container .u-main-pane {
    min-height: 640px;
  }
  .unified-orgchart-container .u-toolbar {
    padding: 10px;
  }
  .unified-orgchart-container .u-select {
    max-width: 100%;
    width: 100%;
  }
  .unified-orgchart-container .u-chart-and-details {
    flex-direction: column;
    overflow: visible;
  }
  .unified-orgchart-container .u-canvas-viewport {
    min-height: 450px;
    max-height: 600px;
  }
  .unified-orgchart-container .u-chart-and-details > .u-drawer {
    width: auto;
    min-height: 400px;
    max-height: 800px;
    border-left: 0;
    border-top: 1px solid #e2e8f0;
  }
  .unified-orgchart-container .u-mode-toggle {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .unified-orgchart-container * {
    animation: none !important;
    transition: none !important;
  }
}
.unified-orgchart-container .u-canvas-content:not(.u-profile-content) {
  padding-left: 100px;
  padding-right: 100px;
}
.unified-orgchart-container .u-unit-box {
  width: 580px;
}
.unified-orgchart-container .u-unit-body {
  gap: 20px;
  padding-top: 22px;
}
.unified-orgchart-container .u-rank-row {
  padding: 8px 10px;
  gap: 8px;
}
.unified-orgchart-container .u-position-cluster {
  padding: 8px;
  gap: 10px;
}
.unified-orgchart-container .u-position-header {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 11px;
}
.unified-orgchart-container .u-position-header span {
  white-space: nowrap;
}
.unified-orgchart-container .u-position-cards-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
}
.unified-orgchart-container .u-position-cards-list > .u-card-employee,
.unified-orgchart-container .u-position-cards-list > .u-card-vacancy {
  flex: 1;
  min-width: 120px;
}
.unified-orgchart-container .u-card-employee:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}
.unified-orgchart-container .u-company-overview {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  align-items: start;
  gap: 30px 24px;
}
.unified-orgchart-container .u-company-overview > .u-tree-node-group > .u-unit-box {
  width: 300px;
}
.unified-orgchart-container .u-company-overview .u-unit-title-group {
  font-size: 12px;
}
.unified-orgchart-container .u-company-overview .u-unit-stats-pills {
  gap: 8px;
  font-size: 10px;
}
.unified-orgchart-container .u-company-overview .u-unit-title-group small {
  display: none;
}
@media (max-width: 760px) {
  html.unified-active,
  body.unified-active {
    height: auto;
    overflow: auto;
  }
  .unified-orgchart-container .u-app-header,
  .unified-orgchart-container .u-summary-bar,
  .unified-orgchart-container .u-toolbar {
    flex-shrink: 0;
  }
}
@media (max-width: 760px) {
  /* Override the legacy shell's global !important viewport lock only for this page. */
  html.unified-active,
  body.unified-active {
    height: auto !important;
    min-height: 100vh !important;
    overflow: auto !important;
  }
}
.auth-page {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  align-items: safe center;
  padding: 24px;
  overflow: auto;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.auth-card {
  width: min(440px, 100%);
  padding: 36px 28px;
  border: 1px solid #d7dde8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(15 23 42 / 16%);
  text-align: center;
}

.auth-logo {
  width: 110px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 24px;
}

.auth-card h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  line-height: 1.3;
}

.auth-description {
  margin: 14px 0 24px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.auth-error {
  padding: 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 14px;
  line-height: 1.5;
}

.auth-primary,
.auth-sso,
.auth-password-toggle,
.auth-retry,
.auth-session button {
  cursor: pointer;
  font: inherit;
}

.auth-primary {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #2563eb;
  border-radius: 9px;
  background: #2563eb;
  color: #fff;
  font-weight: 700;
}

.auth-form {
  display: grid;
  gap: 8px;
  text-align: left;
}

.auth-form label {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.auth-form label:not(:first-child) {
  margin-top: 12px;
}

.auth-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 12px 14px;
  border: 1px solid #64748b;
  border-radius: 9px;
  background: #fff;
  color: #0f172a;
  caret-color: #2563eb;
  font: inherit;
  font-size: 14px;
}

.auth-form input::placeholder {
  color: #64748b;
}

.auth-form input:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.auth-password-field {
  position: relative;
}

.auth-password-field input {
  padding-right: 66px;
}

.auth-password-toggle {
  position: absolute;
  inset: 4px 4px 4px auto;
  min-width: 52px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
}

.auth-form .auth-primary {
  min-height: 48px;
  margin-top: 16px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: #64748b;
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #d7dde8;
}

.auth-sso {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #64748b;
  border-radius: 9px;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
}

.auth-note,
.auth-progress {
  margin: 14px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.auth-primary:hover:not(:disabled) {
  border-color: #1d4ed8;
  background: #1d4ed8;
}

.auth-sso:hover:not(:disabled),
.auth-password-toggle:hover:not(:disabled) {
  background: #e2e8f0;
}

.auth-page ::selection {
  background: #bfdbfe;
  color: #0f172a;
}

.auth-retry {
  margin-top: 14px;
  padding: 6px;
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 13px;
}

.auth-primary:disabled,
.auth-sso:disabled,
.auth-form input:disabled,
.auth-password-toggle:disabled,
.auth-retry:disabled,
.auth-session button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.auth-primary:focus-visible,
.auth-sso:focus-visible,
.auth-password-toggle:focus-visible,
.auth-retry:focus-visible,
.auth-session button:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .auth-page {
    padding: 16px;
  }

  .auth-card {
    padding: 28px 20px;
  }
}

.auth-session {
  position: fixed;
  bottom: 12px;
  left: 14px;
  z-index: 2147483001;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 28px);
  padding: 6px 10px;
  border: 1px solid #d7dde8;
  border-radius: 12px;
  background: #fff;
  color: #475569;
  box-shadow: 0 8px 18px rgb(15 23 42 / 12%);
  font-size: 12px;
}

.auth-session > span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-session button {
  padding: 5px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #f8fafc;
  color: #0f172a;
  white-space: nowrap;
}

@media print {
  .auth-session {
    display: none !important;
  }
}
/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
@layer properties;
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --default-transition-duration: 150ms;
    --default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  }
}
@layer utilities {
  .collapse {
    visibility: collapse;
  }
  .visible {
    visibility: visible;
  }
  .absolute {
    position: absolute;
  }
  .fixed {
    position: fixed;
  }
  .relative {
    position: relative;
  }
  .static {
    position: static;
  }
  .sticky {
    position: sticky;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .block {
    display: block;
  }
  .contents {
    display: contents;
  }
  .flex {
    display: flex;
  }
  .hidden {
    display: none;
  }
  .inline {
    display: inline;
  }
  .transform {
    transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
  }
  .resize {
    resize: both;
  }
  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }
  .uppercase {
    text-transform: uppercase;
  }
  .blur {
    --tw-blur: blur(8px);
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .filter {
    filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
  }
  .transition {
    transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, -webkit-backdrop-filter, backdrop-filter, display, content-visibility, overlay, pointer-events;
    transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
    transition-duration: var(--tw-duration, var(--default-transition-duration));
  }
}
:where(.legacy-frame) {
  all: initial;
  display: block;
  container-type: size;
}
:where(.lfd-html, .lfc-html) {
  display: block;
}
:where(.lfd-body, .lfc-body) {
  display: block;
  margin: 8px;
}
#paneDetail div:where(.legacy-frame).legacy-frame, #paneTree div:where(.legacy-frame).legacy-frame {
  width: round(nearest, calc(100% / var(--combo-scale)), 1px) !important;
  height: round(nearest, calc(100% / var(--combo-scale)), 1px) !important;
  min-height: round(nearest, calc(100% / var(--combo-scale)), 1px) !important;
}
.legacy-frame.frame-exporting {
  transform: none !important;
}
:root {
  --bg: #eef2f7;
  --header: #0f172a;
  --panel: #ffffff;
  --line: #d7dde8;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #fbbf24;
  --accent2: #2563eb;
  --danger: #ef4444;
  --shadow: 0 12px 28px rgba(15,23,42,.16);
}
*:not(:where(.legacy-frame) *) {
  box-sizing: border-box;
}
html,body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  font-family: Arial,Helvetica,sans-serif;
  background: var(--bg);
  color: var(--text);
}
body {
  position: relative;
}
.appbar:not(:where(.legacy-frame) *) {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 72px;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(135deg,#0f172a,#1e293b);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15,23,42,.28);
  pointer-events: auto;
  isolation: isolate;
}
.appbar *:not(:where(.legacy-frame) *) {
  pointer-events: auto;
}
.brand:not(:where(.legacy-frame) *) {
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-title:not(:where(.legacy-frame) *) {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  white-space: nowrap;
}
.brand-sub:not(:where(.legacy-frame) *) {
  font-size: 12px;
  color: #cbd5e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 55vw;
}
.top-actions:not(:where(.legacy-frame) *) {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn:not(:where(.legacy-frame) *) {
  border: 1px solid rgba(255,255,255,.22);
  background: #1e293b;
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  user-select: none;
}
.btn:hover:not(:where(.legacy-frame) *) {
  filter: brightness(1.08);
}
.btn.active:not(:where(.legacy-frame) *) {
  background: var(--accent);
  border-color: var(--accent);
  color: #111827;
}
.btn.primary:not(:where(.legacy-frame) *) {
  background: #2563eb;
  border-color: #3b82f6;
}
.workspace:not(:where(.legacy-frame) *) {
  position: fixed;
  left: 0;
  right: 0;
  top: 72px;
  bottom: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px,1fr) minmax(360px,1fr);
  gap: 12px;
  padding: 12px;
  transition: grid-template-columns .22s ease;
  background: var(--bg);
  overflow: hidden;
}
body.mode-detail .workspace:not(:where(.legacy-frame) *) {
  grid-template-columns: minmax(0,1fr) 0;
}
body.mode-tree .workspace:not(:where(.legacy-frame) *) {
  grid-template-columns: 0 minmax(0,1fr);
}
.pane:not(:where(.legacy-frame) *) {
  min-width: 0;
  min-height: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}
.pane.hidden:not(:where(.legacy-frame) *) {
  opacity: 0;
  pointer-events: none;
  border: 0;
  box-shadow: none;
}
.pane-head:not(:where(.legacy-frame) *) {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 20;
  position: relative;
}
.pane-title:not(:where(.legacy-frame) *) {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge:not(:where(.legacy-frame) *) {
  font-size: 11px;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 800;
}
.pane-actions:not(:where(.legacy-frame) *) {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.pane-actions .mini:not(:where(.legacy-frame) *) {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}
.pane-actions .mini:hover:not(:where(.legacy-frame) *) {
  background: #e0f2fe;
}
.frame-wrap:not(:where(.legacy-frame) *) {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}
div:where(.legacy-frame):not(:where(.legacy-frame) *) {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.float-restore:not(:where(.legacy-frame) *) {
  display: none;
  position: fixed;
  right: 16px;
  bottom: 14px;
  z-index: 2147483000;
  background: #111827;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0,0,0,.25);
  cursor: pointer;
  pointer-events: auto;
}
body.mode-detail .float-restore:not(:where(.legacy-frame) *),body.mode-tree .float-restore:not(:where(.legacy-frame) *) {
  display: block;
}
.guard-note:not(:where(.legacy-frame) *) {
  position: fixed;
  left: 14px;
  bottom: 12px;
  z-index: 2147482999;
  background: rgba(255,255,255,.94);
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 11px;
  color: #475569;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15,23,42,.12);
  pointer-events: none;
}
@media (max-width:1000px) {
  .appbar:not(:where(.legacy-frame) *) {
    height: 96px;
    align-items: flex-start;
    flex-direction: column;
  }
  .brand-sub:not(:where(.legacy-frame) *) {
    max-width: 92vw;
  }
  .workspace:not(:where(.legacy-frame) *) {
    top: 96px;
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: minmax(360px,1fr) minmax(360px,1fr);
    overflow: auto;
  }
  body.mode-detail .workspace:not(:where(.legacy-frame) *),body.mode-tree .workspace:not(:where(.legacy-frame) *) {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: minmax(0,1fr);
  }
  body.mode-detail #paneTree:not(:where(.legacy-frame) *),body.mode-tree #paneDetail:not(:where(.legacy-frame) *) {
    display: none;
  }
}
:root {
  --combo-scale: 1;
  --appbar-h: 66px;
}
.appbar:not(:where(.legacy-frame) *) {
  height: var(--appbar-h);
  padding: 8px 12px;
  gap: 10px;
}
.workspace:not(:where(.legacy-frame) *) {
  top: var(--appbar-h);
  padding: 8px;
  gap: 8px;
}
.brand:not(:where(.legacy-frame) *) {
  min-width: 300px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.app-logo:not(:where(.legacy-frame) *) {
  width: 92px;
  height: 46px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 3px 12px rgba(0,0,0,.2);
  flex: 0 0 auto;
}
.brand-copy:not(:where(.legacy-frame) *) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-title:not(:where(.legacy-frame) *) {
  font-size: 15px;
}
.brand-sub:not(:where(.legacy-frame) *) {
  font-size: 11px;
  max-width: 48vw;
}
.top-actions:not(:where(.legacy-frame) *) {
  gap: 6px;
}
.btn:not(:where(.legacy-frame) *) {
  padding: 7px 10px;
  font-size: 12px;
}
.zoom-control:not(:where(.legacy-frame) *) {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(15,23,42,.48);
  border-radius: 999px;
  padding: 4px 7px;
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 900;
}
.zoom-control select:not(:where(.legacy-frame) *) {
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: #fff;
  color: #0f172a;
  font-weight: 900;
  padding: 0 8px;
  outline: none;
}
.pane-head:not(:where(.legacy-frame) *) {
  flex-basis: 42px;
  padding: 6px 8px;
  z-index: 50;
}
.frame-wrap:not(:where(.legacy-frame) *) {
  overflow: hidden;
}
.frame-wrap div:where(.legacy-frame):not(:where(.legacy-frame) *) {
  transform: scale(var(--combo-scale));
  transform-origin: 0 0;
  width: calc(100% / var(--combo-scale));
  height: calc(100% / var(--combo-scale));
}
body.compact .pane-head:not(:where(.legacy-frame) *) {
  flex-basis: 34px;
}
body.compact .pane-title:not(:where(.legacy-frame) *) {
  font-size: 12px;
}
body.compact .pane-actions .mini:not(:where(.legacy-frame) *) {
  padding: 5px 7px;
  font-size: 11px;
}
body.compact .workspace:not(:where(.legacy-frame) *) {
  padding: 6px;
  gap: 6px;
}
body.compact .appbar:not(:where(.legacy-frame) *) {
  --appbar-h: 58px;
}
body.compact .app-logo:not(:where(.legacy-frame) *) {
  width: 78px;
  height: 40px;
}
body.compact .brand-title:not(:where(.legacy-frame) *) {
  font-size: 14px;
}
body.compact .brand-sub:not(:where(.legacy-frame) *) {
  display: none;
}
@media (max-width:1000px) {
  .appbar:not(:where(.legacy-frame) *) {
    height: auto;
    min-height: 92px;
  }
  .workspace:not(:where(.legacy-frame) *) {
    top: 92px;
  }
  .brand:not(:where(.legacy-frame) *) {
    min-width: 0;
    width: 100%;
  }
  .brand-sub:not(:where(.legacy-frame) *) {
    max-width: 82vw;
  }
}
#paneTree .frame-wrap:not(:where(.legacy-frame) *) {
  overflow: hidden;
  background: #fff;
}
#paneTree div:where(.legacy-frame):not(:where(.legacy-frame) *) {
  z-index: 2;
}
body.mode-tree #paneTree .pane-head:not(:where(.legacy-frame) *) {
  display: none;
}
body.mode-tree #paneTree .frame-wrap:not(:where(.legacy-frame) *) {
  height: 100%;
}
:root {
  --combo-left: 50%;
  --combo-gap: 8px;
  --combo-handle: 12px;
}
body.mode-both .workspace:not(:where(.legacy-frame) *) {
  grid-template-columns: minmax(360px,var(--combo-left)) var(--combo-handle) minmax(360px,1fr) !important;
  gap: var(--combo-gap) !important;
}
body.mode-detail .workspace:not(:where(.legacy-frame) *) {
  grid-template-columns: minmax(0,1fr) !important;
  gap: 0 !important;
}
body.mode-tree .workspace:not(:where(.legacy-frame) *) {
  grid-template-columns: minmax(0,1fr) !important;
  gap: 0 !important;
}
.combo-split-drag-handle:not(:where(.legacy-frame) *) {
  display: none;
  align-self: stretch;
  justify-self: stretch;
  width: var(--combo-handle);
  min-width: var(--combo-handle);
  border-radius: 999px;
  cursor: col-resize;
  position: relative;
  z-index: 120;
  background: linear-gradient(180deg,#eff6ff,#bfdbfe,#eff6ff);
  box-shadow: inset 0 0 0 1px #93c5fd,0 4px 14px rgba(37,99,235,.18);
  user-select: none;
  touch-action: none;
}
body.mode-both .combo-split-drag-handle:not(:where(.legacy-frame) *) {
  display: block;
}
.combo-split-drag-handle:not(:where(.legacy-frame) *):before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 58px;
  transform: translate(-50%,-50%);
  border-left: 2px dotted #2563eb;
  border-right: 2px dotted #2563eb;
  opacity: .8;
}
.combo-split-drag-handle:hover:not(:where(.legacy-frame) *) {
  background: linear-gradient(180deg,#dbeafe,#93c5fd,#dbeafe);
}
body.combo-resizing {
  cursor: col-resize !important;
}
body.combo-resizing div:where(.legacy-frame):not(:where(.legacy-frame) *) {
  pointer-events: none !important;
  user-select: none !important;
}
body.mode-detail .combo-split-drag-handle:not(:where(.legacy-frame) *),body.mode-tree .combo-split-drag-handle:not(:where(.legacy-frame) *) {
  display: none !important;
}
@media (max-width:1000px) {
  body.mode-both .workspace:not(:where(.legacy-frame) *) {
    grid-template-columns: minmax(0,1fr) !important;
    grid-template-rows: minmax(360px,1fr) minmax(360px,1fr) !important;
  }
  .combo-split-drag-handle:not(:where(.legacy-frame) *) {
    display: none !important;
  }
}
#paneDetail .frame-wrap:not(:where(.legacy-frame) *),#paneTree .frame-wrap:not(:where(.legacy-frame) *) {
  min-height: 0 !important;
  height: 100% !important;
}
#paneDetail div:where(.legacy-frame):not(:where(.legacy-frame) *),#paneTree div:where(.legacy-frame):not(:where(.legacy-frame) *) {
  min-height: 100% !important;
  height: 100% !important;
}
body.mode-detail #paneDetail:not(:where(.legacy-frame) *),body.mode-tree #paneTree:not(:where(.legacy-frame) *) {
  height: 100% !important;
}
.workspace:not(:where(.legacy-frame) *) {
  display: flex !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 10px !important;
  padding: 10px !important;
  overflow: hidden !important;
}
.split-side:not(:where(.legacy-frame) *) {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  flex: 0 0 calc(50% - 5px) !important;
  max-width: calc(50% - 5px) !important;
  display: flex !important;
  overflow: hidden !important;
}
.split-side>.pane:not(:where(.legacy-frame) *) {
  width: 100% !important;
  height: 100% !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
body.mode-both .split-left:not(:where(.legacy-frame) *),body.mode-both .split-right:not(:where(.legacy-frame) *) {
  flex: 0 0 calc(50% - 5px) !important;
  max-width: calc(50% - 5px) !important;
  display: flex !important;
}
body.mode-detail .split-left:not(:where(.legacy-frame) *) {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  display: flex !important;
}
body.mode-detail .split-right:not(:where(.legacy-frame) *) {
  display: none !important;
}
body.mode-tree .split-right:not(:where(.legacy-frame) *) {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  display: flex !important;
}
body.mode-tree .split-left:not(:where(.legacy-frame) *) {
  display: none !important;
}
body.mode-detail #paneDetail:not(:where(.legacy-frame) *),body.mode-tree #paneTree:not(:where(.legacy-frame) *),body.mode-both #paneDetail:not(:where(.legacy-frame) *),body.mode-both #paneTree:not(:where(.legacy-frame) *) {
  opacity: 1 !important;
  pointer-events: auto !important;
  display: flex !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow) !important;
}
.frame-wrap:not(:where(.legacy-frame) *) {
  height: 100% !important;
  min-height: 0 !important;
}
.float-restore:not(:where(.legacy-frame) *) {
  z-index: 2147483640 !important;
}
@media (max-width:1000px) {
  .workspace:not(:where(.legacy-frame) *) {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }
  body.mode-both .split-left:not(:where(.legacy-frame) *),body.mode-both .split-right:not(:where(.legacy-frame) *) {
    flex: 1 1 50% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  body.mode-detail .split-left:not(:where(.legacy-frame) *),body.mode-tree .split-right:not(:where(.legacy-frame) *) {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}
.guard-note:not(:where(.legacy-frame) *) {
  display: none !important;
}
.workspace:not(:where(.legacy-frame) *) {
  top: var(--appbar-h) !important;
  bottom: 0 !important;
  padding: 8px !important;
  gap: 8px !important;
  height: auto !important;
  overflow: hidden !important;
}
.pane:not(:where(.legacy-frame) *) {
  height: 100% !important;
  min-height: 0 !important;
}
.frame-wrap:not(:where(.legacy-frame) *) {
  flex: 1 1 0 !important;
  height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
}
.frame-wrap div:where(.legacy-frame):not(:where(.legacy-frame) *) {
  position: absolute !important;
  inset: 0 !important;
  width: calc(100% / var(--combo-scale)) !important;
  height: calc(100% / var(--combo-scale)) !important;
}
body.mode-both .split-left:not(:where(.legacy-frame) *),body.mode-both .split-right:not(:where(.legacy-frame) *) {
  height: 100% !important;
  min-height: 0 !important;
}
body.mode-detail .split-left:not(:where(.legacy-frame) *),body.mode-tree .split-right:not(:where(.legacy-frame) *) {
  height: 100% !important;
  min-height: 0 !important;
}
html,body {
  height: 100% !important;
  min-height: 100% !important;
  overflow: hidden !important;
}
.workspace:not(:where(.legacy-frame) *) {
  top: var(--appbar-h) !important;
  bottom: 0 !important;
  height: calc(100vh - var(--appbar-h)) !important;
  min-height: 0 !important;
  padding-bottom: 6px !important;
  align-content: stretch !important;
}
body.mode-both .workspace:not(:where(.legacy-frame) *) {
  height: calc(100vh - var(--appbar-h)) !important;
}
.split-side:not(:where(.legacy-frame) *),.split-side>.pane:not(:where(.legacy-frame) *),#paneDetail:not(:where(.legacy-frame) *),#paneTree:not(:where(.legacy-frame) *) {
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
}
#paneDetail:not(:where(.legacy-frame) *),#paneTree:not(:where(.legacy-frame) *) {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
#paneDetail .pane-head:not(:where(.legacy-frame) *),#paneTree .pane-head:not(:where(.legacy-frame) *) {
  flex: 0 0 42px !important;
}
#paneDetail .frame-wrap:not(:where(.legacy-frame) *),#paneTree .frame-wrap:not(:where(.legacy-frame) *) {
  flex: 1 1 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
}
#paneDetail div:where(.legacy-frame):not(:where(.legacy-frame) *),#paneTree div:where(.legacy-frame):not(:where(.legacy-frame) *) {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: calc(100% / var(--combo-scale)) !important;
  height: calc(100% / var(--combo-scale)) !important;
  min-height: calc(100% / var(--combo-scale)) !important;
}
body.mode-both .split-left:not(:where(.legacy-frame) *),body.mode-both .split-right:not(:where(.legacy-frame) *) {
  align-self: stretch !important;
}
body.mode-both .workspace:not(:where(.legacy-frame) *) {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 8px !important;
  overflow: hidden !important;
}
body.mode-both #comboLeftSide.split-left:not(:where(.legacy-frame) *) {
  order: 1 !important;
  flex: 0 0 calc(var(--combo-left, 50%) - 10px) !important;
  width: calc(var(--combo-left, 50%) - 10px) !important;
  max-width: none !important;
  min-width: 320px !important;
  height: 100% !important;
  display: flex !important;
}
body.mode-both #comboSplitDragHandle.combo-split-drag-handle:not(:where(.legacy-frame) *) {
  order: 2 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 0 0 14px !important;
  width: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  height: 100% !important;
  min-height: 100% !important;
  align-self: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  z-index: 2147482500 !important;
  cursor: col-resize !important;
  pointer-events: auto !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg,#eff6ff,#bfdbfe,#eff6ff) !important;
  box-shadow: inset 0 0 0 1px #93c5fd,0 4px 14px rgba(37,99,235,.18) !important;
}
body.mode-both #comboSplitDragHandle.combo-split-drag-handle:not(:where(.legacy-frame) *):before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 5px !important;
  height: 68px !important;
  transform: translate(-50%,-50%) !important;
  border-left: 2px dotted #2563eb !important;
  border-right: 2px dotted #2563eb !important;
  opacity: .95 !important;
}
body.mode-both #comboSplitDragHandle.combo-split-drag-handle:hover:not(:where(.legacy-frame) *) {
  background: linear-gradient(180deg,#dbeafe,#93c5fd,#dbeafe) !important;
}
body.mode-both #comboRightSide.split-right:not(:where(.legacy-frame) *) {
  order: 3 !important;
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: none !important;
  min-width: 320px !important;
  height: 100% !important;
  display: flex !important;
}
body.mode-detail #comboSplitDragHandle:not(:where(.legacy-frame) *),body.mode-tree #comboSplitDragHandle:not(:where(.legacy-frame) *) {
  display: none !important;
}
@media (max-width:1000px) {
  body.mode-both #comboSplitDragHandle:not(:where(.legacy-frame) *) {
    display: none !important;
  }
  body.mode-both #comboLeftSide.split-left:not(:where(.legacy-frame) *),body.mode-both #comboRightSide.split-right:not(:where(.legacy-frame) *) {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}
.lfd-html {
  --brand: #0f4c81;
  --bg: #f5f7fb;
  --line: #d8dee9;
  --muted: #64748b;
  --card: #fff;
  --soft: #eef6ff;
}
:where(.lfd-html), :where(.lfd-html) * {
  box-sizing: border-box;
}
div:where(.lfd-body) {
  margin: 0;
  font-family: Arial,"Helvetica Neue",sans-serif;
  background: var(--bg);
  color: #0f172a;
}
:where(.lfd-html) header {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 30;
  border-bottom: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 14px 18px 8px;
}
:where(.lfd-html) .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
:where(.lfd-html) .brand-logo {
  width: 145px;
  max-width: min(34cqw,145px);
  height: auto;
  display: block;
}
:where(.lfd-html) h1 {
  margin: 0;
  color: var(--brand);
  font-size: 22px;
}
:where(.lfd-html) .sub {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
:where(.lfd-html) .toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
:where(.lfd-html) input, :where(.lfd-html) button, :where(.lfd-html) select {
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: white;
}
:where(.lfd-html) button {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand);
}
:where(.lfd-html) button:hover {
  background: #eef6ff;
}
:where(.lfd-html) input {
  width: 360px;
  max-width: 100%;
}
:where(.lfd-html) .kpis {
  display: grid;
  grid-template-columns: repeat(6,minmax(115px,1fr));
  gap: 10px;
  margin-top: 12px;
}
:where(.lfd-html) .kpi {
  background: #eef6ff;
  border: 1px solid #b7d7ff;
  border-radius: 12px;
  padding: 10px;
  min-height: 64px;
}
:where(.lfd-html) .kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
:where(.lfd-html) .kpi b {
  font-size: 22px;
  color: var(--brand);
}
:where(.lfd-html) .collapse-white-edge {
  position: sticky;
  top: var(--header-offset,0);
  z-index: 25;
  height: 36px;
  background: #fff;
  border-bottom: 0;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(380px,.75fr);
  gap: 10px;
  padding: 3px 10px;
}
:where(.lfd-html) .collapse-kpi-controls {
  grid-column: 1 / 3;
  justify-self: center;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  transform: translateX(64px);
}
:where(.lfd-html) .collapse-mini-btn {
  width: 34px;
  height: 30px;
  border-radius: 999px;
  padding: 0 !important;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: var(--brand);
  box-shadow: 0 2px 6px rgba(15,23,42,.12);
}
:where(.lfd-html) .collapse-mini-btn:hover {
  background: #eef6ff;
}
:where(.lfd-html) .split-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(380px,.75fr);
  gap: 10px;
  height: calc(100cqh - 218px);
  min-height: 480px;
  padding: 10px;
  overflow: hidden;
}
:where(.lfd-html) .tree-pane {
  min-width: 0;
  overflow: auto;
  padding-right: 8px;
  border-right: 2px solid #e2e8f0;
}
:where(.lfd-html) .detail-pane {
  min-width: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15,23,42,.08);
  padding: 14px;
}
:where(.lfd-html) .org-node {
  margin: 5px 0 5px 8px !important;
}
:where(.lfd-html) .org-node>summary {
  list-style: none;
  cursor: pointer;
  background: white;
  border: 1px solid var(--line);
  border-left: 5px solid #94a3b8;
  border-radius: 10px;
  padding: 7px 10px;
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 5px rgba(15,23,42,.05);
}
:where(.lfd-html) .org-node>summary::-webkit-details-marker {
  display: none;
}
:where(.lfd-html) .org-node[open]>summary .chev {
  transform: rotate(90deg);
}
:where(.lfd-html) .chev {
  transition: .18s;
  color: var(--muted);
  display: inline-block;
}
:where(.lfd-html) .left {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
:where(.lfd-html) .node-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  word-break: break-word;
}
:where(.lfd-html) .meta {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
:where(.lfd-html) .right {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
:where(.lfd-html) .ratio {
  font-weight: 800;
  color: var(--brand);
  font-size: 16px;
  min-width: 42px;
  text-align: right;
}
:where(.lfd-html) .badge {
  font-size: 10px;
  border-radius: 999px;
  padding: 3px 7px;
  background: #eff6ff;
  color: var(--brand);
  border: 1px solid #bfdbfe;
}
:where(.lfd-html) .badge.empty {
  background: #f8fafc;
  color: var(--muted);
  border-color: #cbd5e1;
}
:where(.lfd-html) .body {
  margin-left: 20px;
  border-left: 1px dashed #cbd5e1;
  padding-left: 10px;
}
:where(.lfd-html) .children {
  margin-top: 5px;
}
:where(.lfd-html) .lv1>summary {
  border-left-color: #0f4c81;
}
:where(.lfd-html) .lv2>summary {
  border-left-color: #2563eb;
}
:where(.lfd-html) .lv3>summary {
  border-left-color: #7c3aed;
}
:where(.lfd-html) .lv4>summary {
  border-left-color: #0891b2;
}
:where(.lfd-html) .lv5>summary {
  border-left-color: #16a34a;
}
:where(.lfd-html) .lv6>summary, :where(.lfd-html) .lv7>summary {
  border-left-color: #f59e0b;
}
:where(.lfd-html) .positions {
  position: relative;
  margin: 7px 0 7px 6px;
  padding-left: 14px;
}
:where(.lfd-html) .positions:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 24px;
  bottom: 8px;
  border-left: 1px dashed #cbd5e1;
}
:where(.lfd-html) .positions-title {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
:where(.lfd-html) .position-card {
  position: relative;
  display: block;
  background: #fff7cc;
  border: 1px solid #e2b600;
  border-radius: 9px;
  padding: 6px 8px;
  margin: 0 5px 5px 0;
  max-width: 620px;
  font-size: 11px;
  cursor: pointer;
}
:where(.lfd-html) .position-card:before {
  content: "";
  position: absolute;
  left: -10px;
  top: 50%;
  width: 10px;
  border-top: 1px dashed #cbd5e1;
}
:where(.lfd-html) .pos-code, :where(.lfd-html) .old-code {
  padding: 1px 5px;
  border-radius: 5px;
  margin-left: 4px;
  font-size: 10px;
}
:where(.lfd-html) .pos-code {
  background: #111827;
  color: #fff;
}
:where(.lfd-html) .old-code {
  background: #e2e8f0;
  color: #334155;
}
:where(.lfd-html) .pos-sub {
  color: var(--muted);
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
:where(.lfd-html) .hidden {
  display: none !important;
}
:where(.lfd-html) .focused>summary, :where(.lfd-html) .selected-node>summary, :where(.lfd-html) .selected-position {
  outline: 3px solid #3b82f6 !important;
  outline-offset: 1px;
}
:where(.lfd-html) .detail-empty {
  height: 100%;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  background: linear-gradient(135deg,#f8fbff,#fff);
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 24px;
}
:where(.lfd-html) .detail-icon {
  font-size: 42px;
  margin-bottom: 8px;
}
:where(.lfd-html) .detail-empty h2 {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 20px;
}
:where(.lfd-html) .detail-empty p {
  max-width: 430px;
  line-height: 1.5;
}
:where(.lfd-html) .detail-head {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 10px;
  margin-bottom: 12px;
}
:where(.lfd-html) .detail-kicker {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
:where(.lfd-html) .detail-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--brand);
  margin-top: 4px;
  line-height: 1.25;
}
:where(.lfd-html) .detail-meta {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}
:where(.lfd-html) .detail-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin: 12px 0;
}
:where(.lfd-html) .detail-stat {
  background: #eef6ff;
  border: 1px solid #b7d7ff;
  border-radius: 10px;
  padding: 9px;
}
:where(.lfd-html) .detail-stat span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
:where(.lfd-html) .detail-stat b {
  font-size: 18px;
  color: var(--brand);
}
:where(.lfd-html) .detail-section {
  margin-top: 14px;
}
:where(.lfd-html) .detail-section h3 {
  font-size: 14px;
  margin: 0 0 8px;
  color: #334155;
}
:where(.lfd-html) .detail-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 7px;
}
:where(.lfd-html) .detail-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  padding: 0 8px;
}
:where(.lfd-html) .detail-table td {
  background: #fff7cc;
  border-top: 1px solid #e2b600;
  border-bottom: 1px solid #e2b600;
  padding: 8px;
  font-size: 12px;
}
:where(.lfd-html) .detail-table td:first-child {
  border-left: 1px solid #e2b600;
  border-radius: 9px 0 0 9px;
  font-weight: 700;
}
:where(.lfd-html) .detail-table td:last-child {
  border-right: 1px solid #e2b600;
  border-radius: 0 9px 9px 0;
  text-align: right;
  white-space: nowrap;
}
:where(.lfd-html) .detail-chip {
  display: inline-block;
  background: #111827;
  color: white;
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 11px;
  margin-left: 4px;
}
:where(.lfd-html) .pill {
  display: inline-block;
  background: #e2e8f0;
  border-radius: 999px;
  padding: 2px 8px;
  margin: 2px;
  font-size: 11px;
  color: #334155;
}
@container (max-width:1100px) {
  :where(.lfd-html) .split-layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }
  :where(.lfd-html) .tree-pane {
    max-height: 55cqh;
    border-right: 0;
    border-bottom: 2px solid #e2e8f0;
  }
  :where(.lfd-html) .detail-pane {
    min-height: 360px;
  }
  :where(.lfd-html) .detail-stats {
    grid-template-columns: 1fr 1fr;
  }
  :where(.lfd-html) .kpis {
    grid-template-columns: repeat(2,1fr);
  }
}
:where(.lfd-html) .detail-direct-positions {
  margin-left: 0;
  padding-left: 12px;
}
:where(.lfd-html) .detail-direct-positions .position-card {
  max-width: none;
}
:where(.lfd-html) #uatLegendBtn.help-bulb-btn {
  position: fixed !important;
  right: 18px !important;
  bottom: 18px !important;
  z-index: 2147482500 !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 22px !important;
  line-height: 1 !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
  border: 1px solid #fed7aa !important;
  box-shadow: 0 14px 34px rgba(154,52,18,.22),0 4px 12px rgba(15,23,42,.12) !important;
  cursor: pointer !important;
}
:where(.lfd-html) #uatLegendBtn.help-bulb-btn:hover {
  background: #ffedd5 !important;
  transform: translateY(-1px);
}
:where(.lfd-html) #uatLegend.uat-legend {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147482400 !important;
  background: rgba(15,23,42,.46) !important;
  backdrop-filter: blur(3px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 18px 76px 18px 18px !important;
  max-width: none !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #0f172a !important;
  overflow: auto !important;
}
:where(.lfd-html) #uatLegend .help-card {
  width: min(980px,calc(100cqw - 112px));
  max-height: min(86cqh,820px);
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 22px 70px rgba(15,23,42,.30);
  padding: 0;
}
:where(.lfd-html) #uatLegend .help-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  background: linear-gradient(180deg,#fff,#f8fafc);
  border-bottom: 1px solid #e2e8f0;
}
:where(.lfd-html) #uatLegend .help-head strong {
  font-size: 15px;
  font-weight: 950;
  display: flex;
  align-items: center;
  gap: 8px;
}
:where(.lfd-html) #uatLegend .help-close {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  color: #0f172a;
}
:where(.lfd-html) #uatLegend .help-body {
  padding: 14px 16px 16px;
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
:where(.lfd-html) #uatLegend .help-section-title {
  grid-column: 1/-1;
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 950;
  color: #0f172a;
  text-transform: uppercase;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
}
:where(.lfd-html) #uatLegend .help-box {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 14px;
  padding: 10px 11px;
  min-height: 88px;
  box-shadow: 0 7px 18px rgba(15,23,42,.05);
}
:where(.lfd-html) #uatLegend .help-box b {
  display: block;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 4px;
}
:where(.lfd-html) #uatLegend .help-box p {
  margin: 0;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}
:where(.lfd-html) #uatLegend .help-box small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  line-height: 1.35;
}
:where(.lfd-html) #uatLegend .help-box.wide {
  grid-column: 1/-1;
  min-height: 0;
  background: #f8fafc;
}
:where(.lfd-html) #uatLegend .swatch {
  width: 18px;
  height: 18px;
  border-radius: 7px;
  border: 2px solid #94a3b8;
  display: inline-block;
  vertical-align: middle;
  margin-right: 7px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
:where(.lfd-html) #uatLegend .red {
  background: #dc2626;
  border-color: #b91c1c;
}
:where(.lfd-html) #uatLegend .orange {
  background: #f97316;
  border-color: #ea580c;
}
:where(.lfd-html) #uatLegend .blue {
  background: #2563eb;
  border-color: #1d4ed8;
}
:where(.lfd-html) #uatLegend .purple {
  background: #7c3aed;
  border-color: #6d28d9;
}
:where(.lfd-html) #uatLegend .green {
  background: #16a34a;
  border-color: #15803d;
}
:where(.lfd-html) #uatLegend .gray {
  background: #64748b;
  border-color: #475569;
}
:where(.lfd-html) #uatLegend .company {
  background: linear-gradient(135deg,#0f172a,#1e3a8a);
  border-color: #1d4ed8;
}
:where(.lfd-html) #uatLegend .quota {
  background: #dbeafe;
  border-color: #60a5fa;
}
:where(.lfd-html) #uatLegend .actual {
  background: #f1f5f9;
  border-color: #94a3b8;
}
:where(.lfd-html) #uatLegend .missing {
  background: #ffedd5;
  border-color: #fb923c;
}
:where(.lfd-html) #uatLegend .selected {
  background: #fef3c7;
  border-color: #f59e0b;
}
:where(.lfd-html) #uatLegend .drag {
  background: linear-gradient(90deg,#e2e8f0,#94a3b8,#e2e8f0);
  border-color: #64748b;
}
:where(.lfd-html) #uatLegend .help-use {
  grid-column: 1/-1;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 10px 12px;
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.5;
}
:where(.lfd-html) #uatLegend .help-use ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
:where(.lfd-html) #uatLegend .help-use li {
  margin: 3px 0;
}
@container (max-width:760px) {
  :where(.lfd-html) #uatLegend {
    padding: 12px 12px 68px !important;
  }
  :where(.lfd-html) #uatLegend .help-card {
    width: calc(100cqw - 24px);
  }
  :where(.lfd-html) #uatLegend .help-body {
    grid-template-columns: 1fr;
  }
  :where(.lfd-html) #uatLegendBtn.help-bulb-btn {
    right: 10px !important;
    bottom: 10px !important;
  }
}
:where(.lfd-html) #uatLegend .help-body {
  grid-template-columns: 1fr;
}
:where(.lfd-html) #uatLegendBtn.help-bulb-btn {
  right: 10px !important;
  bottom: 10px !important;
}
:where(.lfd-html) .collapse-white-edge {
  position: sticky !important;
  top: var(--header-offset,0) !important;
  z-index: 25 !important;
  height: 36px !important;
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
  display: block !important;
  padding: 3px 10px !important;
  margin: 0 !important;
}
:where(.lfd-html) .collapse-kpi-controls {
  position: absolute !important;
  left: 56.5% !important;
  top: 3px !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
  padding: 0 8px !important;
  border: 0 !important;
  box-shadow: none !important;
}
:where(.lfd-html) .collapse-mini-btn {
  width: 34px !important;
  height: 30px !important;
  border-radius: 999px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-weight: 900 !important;
  font-size: 18px !important;
  line-height: 1 !important;
  background: #fff !important;
  border: 1px solid #cbd5e1 !important;
  color: var(--brand) !important;
  box-shadow: 0 2px 6px rgba(15,23,42,.12) !important;
}
:where(.lfd-html) .collapse-mini-btn:hover {
  background: #eef6ff !important;
}
:where(.lfd-html) .split-layout.tree-collapsed {
  grid-template-columns: 46px minmax(0,1fr) !important;
}
:where(.lfd-html) .split-layout.tree-collapsed .tree-pane {
  overflow: hidden !important;
  padding: 8px 6px !important;
  background: #fff !important;
}
:where(.lfd-html) .split-layout.tree-collapsed .tree-content {
  display: none !important;
}
:where(.lfd-html) .split-layout.detail-collapsed {
  grid-template-columns: minmax(0,1fr) 46px !important;
}
:where(.lfd-html) .split-layout.detail-collapsed .detail-pane {
  overflow: hidden !important;
  padding: 8px 6px !important;
  background: #fff !important;
}
:where(.lfd-html) .split-layout.detail-collapsed #detailContent {
  display: none !important;
}
@container (max-width:1100px) {
  :where(.lfd-html) .collapse-kpi-controls {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
}
:where(.lfd-html) .toolbar-toggle {
  margin-left: auto;
  padding: 8px 10px !important;
  font-size: 12px !important;
  white-space: nowrap;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: var(--brand) !important;
}
div:where(.lfd-body).tools-collapsed .toolbar {
  display: none !important;
}
div:where(.lfd-body).tools-collapsed .split-layout {
  height: calc(100cqh - 220px) !important;
}
:where(.lfd-html) #locationSelect {
  min-width: 165px;
}
:where(.lfd-html) .toolbar {
  align-items: center;
}
@container (max-width:1100px) {
  :where(.lfd-html) .brand-logo {
    width: 118px;
    max-width: 52cqw;
  }
  :where(.lfd-html) .toolbar-toggle {
    margin-left: 0;
  }
}
:where(.lfd-html) #regionFilter {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
}
div:where(.lfd-body).tools-collapsed .toolbar, div:where(.lfd-body).tools-collapsed .kpis {
  display: none !important;
}
div:where(.lfd-body).tools-collapsed .collapse-white-edge {
  margin-top: 4px !important;
}
div:where(.lfd-body).tools-collapsed .split-layout {
  height: calc(100cqh - 168px) !important;
}
:where(.lfd-html) .brand-logo {
  width: 120px !important;
  max-width: min(30cqw,120px) !important;
}
:where(.lfd-html) .toolbar {
  gap: 8px !important;
}
:where(.lfd-html) .toolbar button {
  white-space: nowrap;
}
:where(.lfd-html) .mini-profile-tooltip.hidden {
  display: none !important;
}
:where(.lfd-html) .mini-profile-tooltip {
  position: fixed;
  z-index: 9999;
  max-width: 330px;
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(15,23,42,.25);
  font-size: 12px;
  line-height: 1.45;
  pointer-events: none;
}
:where(.lfd-html) .mini-profile-tooltip b {
  color: #bfdbfe;
}
:where(.lfd-html) .mini-profile-tooltip .tip-title {
  font-weight: 900;
  font-size: 13px;
  color: #fff;
  margin-bottom: 4px;
}
:where(.lfd-html) .mini-profile-tooltip .tip-muted {
  color: #cbd5e1;
}
:where(.lfd-html) .u-bod {
  border-left-color: #dc2626 !important;
}
:where(.lfd-html) .u-tech {
  border-left-color: #2563eb !important;
}
:where(.lfd-html) .u-ops {
  border-left-color: #f59e0b !important;
}
:where(.lfd-html) .u-admin {
  border-left-color: #16a34a !important;
}
:where(.lfd-html) .vacancy-soft {
  opacity: .72;
  border-style: dashed !important;
}
:where(.lfd-html) .uat-legend {
  position: fixed;
  right: 18px;
  top: 128px;
  z-index: 120;
  width: 330px;
  max-width: calc(100cqw - 36px);
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(15,23,42,.18);
  padding: 12px;
}
:where(.lfd-html) .uat-legend h3 {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 15px;
}
:where(.lfd-html) .uat-legend p {
  margin: 4px 0;
  color: #475569;
  font-size: 12px;
}
:where(.lfd-html) .uat-legend-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
  font-size: 12px;
}
:where(.lfd-html) .uat-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border-left: 5px solid #94a3b8;
  background: #f8fafc;
}
:where(.lfd-html) .uat-dot.bod {
  border-left-color: #dc2626;
}
:where(.lfd-html) .uat-dot.tech {
  border-left-color: #2563eb;
}
:where(.lfd-html) .uat-dot.ops {
  border-left-color: #f59e0b;
}
:where(.lfd-html) .uat-dot.admin {
  border-left-color: #16a34a;
}
:where(.lfd-html) .brand-logo {
  width: 80px !important;
  max-width: 80px !important;
  height: auto !important;
}
:where(.lfd-html) #uatLegendBtn {
  margin-left: 8px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
  background: #eef6ff !important;
  border: 1px solid #b7d7ff !important;
  color: var(--brand) !important;
}
:where(.lfd-html) #uatLegendBtn:hover {
  background: #dbeafe !important;
}
@container (max-width:1100px) {
  :where(.lfd-html) .brand-logo {
    width: 78px !important;
    max-width: 58px !important;
  }
}
:where(.lfd-html) .brand-logo {
  width: 80px !important;
  max-width: 80px !important;
  height: auto !important;
}
@container (max-width:1100px) {
  :where(.lfd-html) .brand-logo {
    width: 78px !important;
    max-width: 78px !important;
  }
}
:where(.lfd-html) .brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
}
:where(.lfd-html) .header-actions {
  margin-left: auto !important;
  display: flex !important;
  gap: 4px !important;
  align-items: center !important;
  justify-content: flex-end !important;
}
:where(.lfd-html) .header-actions button, :where(.lfd-html) #toolbarToggleBtn, :where(.lfd-html) #uatLegendBtn {
  margin: 0 !important;
  padding: 8px 10px !important;
  height: 34px !important;
  display: inline-grid !important;
  place-items: center !important;
  align-self: center !important;
  white-space: nowrap !important;
}
:where(.lfd-html) #uatLegendBtn {
  background: #eef6ff !important;
  border: 1px solid #b7d7ff !important;
  color: var(--brand) !important;
}
:where(.lfd-html) #uatLegendBtn:hover {
  background: #dbeafe !important;
}
@container (max-width:1100px) {
  :where(.lfd-html) .header-actions {
    margin-left: 0 !important;
    width: 100% !important;
    justify-content: flex-start !important;
  }
}
:where(.lfd-html) .uat-dot.company {
  border-left-color: #0f4c81 !important;
  background: #eef6ff !important;
}
:where(.lfd-html) .uat-dot.management {
  border-left-color: #7c3aed !important;
  background: #f5f3ff !important;
}
div:where(.lfd-body).tools-collapsed .toolbar, div:where(.lfd-body).tools-collapsed .kpis {
  display: none !important;
}
div:where(.lfd-body).tools-collapsed .collapse-white-edge {
  margin-top: 4px !important;
}
div:where(.lfd-body).tools-collapsed .split-layout {
  height: calc(100cqh - 168px) !important;
}
:where(.lfd-html) .employee-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}
:where(.lfd-html) .employee-card {
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
  overflow: hidden;
}
:where(.lfd-html) .employee-card.warn {
  border-color: #fdba74;
  background: #fff7ed;
}
:where(.lfd-html) .employee-card.key {
  border-color: #86efac;
  background: #f0fdf4;
}
:where(.lfd-html) .employee-card summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
}
:where(.lfd-html) .employee-card summary::-webkit-details-marker {
  display: none;
}
:where(.lfd-html) .emp-arrow {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #0f172a;
  flex: 0 0 auto;
  transition: .16s ease;
}
:where(.lfd-html) .employee-card[open] .emp-arrow {
  transform: rotate(90deg);
  background: #eff6ff;
  border-color: #93c5fd;
}
:where(.lfd-html) .employee-compact {
  min-width: 0;
  flex: 1;
}
:where(.lfd-html) .employee-line1 {
  font-weight: 900;
  color: #0f172a;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(.lfd-html) .employee-line2 {
  color: #475569;
  font-size: 11px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(.lfd-html) .employee-line3 {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 5px;
}
:where(.lfd-html) .employee-status {
  font-weight: 900;
  font-size: 11px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 2px 7px;
  background: #fff;
  white-space: nowrap;
  align-self: flex-start;
}
:where(.lfd-html) .employee-card.warn .employee-status {
  border-color: #fb923c;
  color: #c2410c;
  background: #ffedd5;
}
:where(.lfd-html) .employee-card.key .employee-status {
  border-color: #22c55e;
  color: #15803d;
  background: #dcfce7;
}
:where(.lfd-html) .employee-details {
  border-top: 1px solid rgba(203,213,225,.72);
  padding: 8px 10px 10px;
  background: rgba(255,255,255,.56);
}
:where(.lfd-html) .employee-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 5px 8px;
}
:where(.lfd-html) .employee-info {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(203,213,225,.75);
  border-radius: 8px;
  padding: 5px 7px;
  min-width: 0;
}
:where(.lfd-html) .employee-info span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: none;
}
:where(.lfd-html) .employee-info b {
  display: block;
  font-size: 11px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(.lfd-html) .employee-wide {
  grid-column: 1/-1;
}
:where(.lfd-html) .emp-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 8px;
}
:where(.lfd-html) .emp-badge {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 1px 6px;
  background: white;
  font-size: 10px;
  font-weight: 800;
  color: #334155;
}
:where(.lfd-html) .emp-badge.warn {
  border-color: #fb923c;
  color: #c2410c;
  background: #ffedd5;
}
:where(.lfd-html) .emp-badge.key {
  border-color: #22c55e;
  color: #15803d;
  background: #dcfce7;
}
:where(.lfd-html) .emp-count {
  font-weight: 900;
  color: #0f766e;
}
:where(.lfd-html) .node-actual {
  font-weight: 900;
  color: #0f766e;
}
@container (max-width:820px) {
  :where(.lfd-html) .employee-grid {
    grid-template-columns: 1fr;
  }
}
:where(.lfd-html) .split-layout {
  grid-template-columns: var(--tree-pane-width, minmax(420px, 1fr)) 12px minmax(360px,.82fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
}
:where(.lfd-html) .split-layout .tree-pane {
  border-right: 0 !important;
  padding-right: 10px !important;
}
:where(.lfd-html) .split-drag-handle {
  position: relative !important;
  cursor: col-resize !important;
  align-self: stretch !important;
  min-width: 12px !important;
  width: 12px !important;
  z-index: 20 !important;
  touch-action: none !important;
  user-select: none !important;
}
:where(.lfd-html) .split-drag-handle:before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 4px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg,#dbeafe,#93c5fd,#dbeafe);
  box-shadow: 0 0 0 1px rgba(37,99,235,.15),0 4px 12px rgba(15,23,42,.12);
}
:where(.lfd-html) .split-drag-handle:after {
  content: '⋮';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 44px;
  display: grid;
  place-items: center;
  transform: translate(-50%,-50%);
  border-radius: 999px;
  background: #fff;
  border: 1px solid #bfdbfe;
  color: #2563eb;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(37,99,235,.18);
}
div:where(.lfd-body).split-resizing {
  cursor: col-resize !important;
  user-select: none !important;
}
div:where(.lfd-body).split-resizing * {
  user-select: none !important;
}
:where(.lfd-html) .split-layout.tree-collapsed {
  grid-template-columns: 46px 0 minmax(0,1fr) !important;
}
:where(.lfd-html) .split-layout.detail-collapsed {
  grid-template-columns: minmax(0,1fr) 0 46px !important;
}
:where(.lfd-html) .split-layout.tree-collapsed .split-drag-handle, :where(.lfd-html) .split-layout.detail-collapsed .split-drag-handle {
  display: none !important;
}
@container (max-width:900px) {
  :where(.lfd-html) .split-layout {
    grid-template-columns: 1fr !important;
    grid-auto-rows: minmax(280px,45cqh) auto !important;
    overflow: auto !important;
  }
  :where(.lfd-html) .split-drag-handle {
    display: none !important;
  }
  :where(.lfd-html) .detail-pane {
    min-height: 320px !important;
  }
}
:where(.lfd-html) .collapse-white-edge, :where(.lfd-html) .collapse-kpi-controls, :where(.lfd-html) #treeCollapseHandle, :where(.lfd-html) #detailCollapseHandle {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
:where(.lfd-html) .split-layout {
  grid-template-columns: var(--tree-pane-width, minmax(420px, 48%)) 12px minmax(0, 1fr) !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  padding: 10px !important;
}
:where(.lfd-html) .split-layout .tree-pane {
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
:where(.lfd-html) .split-layout .detail-pane, :where(.lfd-html) #detailPane {
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}
:where(.lfd-html) #detailContent {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}
:where(.lfd-html) .detail-head, :where(.lfd-html) .detail-section, :where(.lfd-html) .detail-table, :where(.lfd-html) .detail-stats, :where(.lfd-html) .employee-grid {
  max-width: none !important;
}
div:where(.lfd-body).tools-collapsed .split-layout {
  height: calc(100cqh - 168px) !important;
}
@container (max-width:900px) {
  :where(.lfd-html) .split-layout {
    grid-template-columns: 1fr !important;
    grid-auto-rows: minmax(280px,45cqh) auto !important;
    overflow: auto !important;
  }
}
:where(.lfd-html) .detail-tabs {
  margin-top: 10px;
  border: 1px solid #d8e3f8;
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}
:where(.lfd-html) .detail-tab-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border-bottom: 1px solid #e2e8f0;
}
:where(.lfd-html) .detail-tab-btn {
  min-height: 38px;
  border: 1px solid #dbe7fb;
  background: #f8fafc;
  color: #334155;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
  transition: background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease;
}
:where(.lfd-html) .detail-tab-btn:hover {
  background: #eef6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  transform: translateY(-1px);
}
:where(.lfd-html) .detail-tab-btn.active {
  background: linear-gradient(135deg,#1d4ed8,#2563eb);
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37,99,235,.25);
}
:where(.lfd-html) .detail-tab-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0edff;
  color: #1d4ed8;
  font-size: 13px;
  flex: 0 0 auto;
}
:where(.lfd-html) .detail-tab-btn.active .detail-tab-icon {
  background: rgba(255,255,255,.2);
  color: #fff;
}
:where(.lfd-html) .detail-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
:where(.lfd-html) .detail-tab-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
}
:where(.lfd-html) .detail-tab-btn.active .detail-tab-badge {
  background: #ffffff;
  color: #1d4ed8;
}
:where(.lfd-html) .detail-tab-body {
  display: none;
  padding: 12px;
  background: #fff;
}
:where(.lfd-html) .detail-tab-body.active {
  display: block;
}
:where(.lfd-html) .work-timeline {
  display: grid;
  gap: 10px;
}
:where(.lfd-html) .work-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}
:where(.lfd-html) .work-card-title {
  font-weight: 900;
  color: #0f172a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
:where(.lfd-html) .work-card-title::before {
  content: '⏱';
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0f2fe;
  color: #0369a1;
}
:where(.lfd-html) .work-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
}
:where(.lfd-html) .work-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  min-width: 0;
}
:where(.lfd-html) .work-item span {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 700;
}
:where(.lfd-html) .work-item b {
  display: block;
  font-size: 12px;
  color: #111827;
  word-break: break-word;
}
:where(.lfd-html) .work-item.full {
  grid-column: 1/-1;
}
@container (max-width:760px) {
  :where(.lfd-html) .detail-tab-head {
    overflow: auto;
    padding-bottom: 8px;
  }
  :where(.lfd-html) .detail-tab-btn {
    flex: 0 0 auto;
  }
  :where(.lfd-html) .work-grid {
    grid-template-columns: 1fr;
  }
}
:where(.lfd-html) .work-people-layout {
  display: grid;
  grid-template-columns: minmax(210px,.42fr) minmax(0,1fr);
  gap: 12px;
  align-items: start;
}
:where(.lfd-html) .work-people-list {
  position: sticky;
  top: 8px;
  max-height: 440px;
  overflow: auto;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(15,23,42,.04);
}
:where(.lfd-html) .work-people-title {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
:where(.lfd-html) .work-people-title span {
  display: inline-flex;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
}
:where(.lfd-html) .work-person-btn {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 11px;
  padding: 9px 10px;
  margin: 0 0 7px;
  text-align: left;
  cursor: pointer;
  transition: .15s ease;
  display: block;
}
:where(.lfd-html) .work-person-btn:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  transform: translateY(-1px);
}
:where(.lfd-html) .work-person-btn.active {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: 0 0 0 2px rgba(37,99,235,.14);
}
:where(.lfd-html) .work-person-main {
  display: block;
  font-weight: 900;
  color: #0f172a;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(.lfd-html) .work-person-meta {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(.lfd-html) .work-people-detail {
  min-width: 0;
}
:where(.lfd-html) .work-person-detail {
  display: none;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
}
:where(.lfd-html) .work-person-detail.active {
  display: block;
}
:where(.lfd-html) .work-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
:where(.lfd-html) .work-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #e0f2fe;
  color: #0369a1;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
:where(.lfd-html) .work-title {
  font-weight: 900;
  color: #0f172a;
}
:where(.lfd-html) .work-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
@container (max-width:900px) {
  :where(.lfd-html) .work-people-layout {
    grid-template-columns: 1fr;
  }
  :where(.lfd-html) .work-people-list {
    position: relative;
    top: auto;
    max-height: 220px;
  }
}
:where(.lfd-html) .work-person-detail {
  display: none;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
:where(.lfd-html) .work-person-detail.active {
  display: block;
}
:where(.lfd-html) .work-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}
:where(.lfd-html) .work-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg,#2563eb,#0ea5e9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(37,99,235,.22);
}
:where(.lfd-html) .work-title {
  font-size: 14px;
  font-weight: 950;
  color: #0f172a;
  line-height: 1.25;
}
:where(.lfd-html) .work-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
:where(.lfd-html) .employee-timeline {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 8px 0 10px;
  padding-left: 22px;
}
:where(.lfd-html) .employee-timeline:before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(#2563eb,#22c55e,#f59e0b,#ef4444);
}
:where(.lfd-html) .timeline-step {
  position: relative;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 5px 14px rgba(15,23,42,.045);
}
:where(.lfd-html) .timeline-step:before {
  content: '';
  position: absolute;
  left: -20px;
  top: 17px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid #2563eb;
  box-shadow: 0 0 0 3px #eff6ff;
}
:where(.lfd-html) .timeline-step.current:before {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px #dcfce7;
}
:where(.lfd-html) .timeline-step.contract:before {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px #e0f2fe;
}
:where(.lfd-html) .timeline-step.transfer:before {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px #fef3c7;
}
:where(.lfd-html) .timeline-step.leave:before {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px #fee2e2;
}
:where(.lfd-html) .timeline-step.note:before {
  border-color: #64748b;
  box-shadow: 0 0 0 3px #f1f5f9;
}
:where(.lfd-html) .timeline-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
:where(.lfd-html) .timeline-label {
  font-size: 12px;
  font-weight: 950;
  color: #0f172a;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
}
:where(.lfd-html) .timeline-date {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 3px 8px;
}
:where(.lfd-html) .timeline-desc {
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
  word-break: break-word;
}
:where(.lfd-html) .timeline-meta {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
:where(.lfd-html) .timeline-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}
:where(.lfd-html) .work-summary-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin-top: 10px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
}
@container (max-width:900px) {
  :where(.lfd-html) .work-people-layout {
    grid-template-columns: 1fr;
  }
  :where(.lfd-html) .work-people-list {
    position: relative;
    top: auto;
    max-height: 220px;
  }
  :where(.lfd-html) .work-summary-grid {
    grid-template-columns: 1fr;
  }
  :where(.lfd-html) .timeline-top {
    display: block;
  }
  :where(.lfd-html) .timeline-date {
    display: inline-flex;
    margin-top: 6px;
  }
}
:where(.lfd-html) .contract-filter-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  z-index: 80;
}
:where(.lfd-html) .contract-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 900;
  color: #0f172a;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15,23,42,.06);
}
:where(.lfd-html) .contract-filter-btn:hover {
  border-color: #60a5fa;
  background: #eff6ff;
  color: #1d4ed8;
}
:where(.lfd-html) .contract-filter-btn .contract-filter-count {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 950;
  padding: 0 6px;
}
:where(.lfd-html) .contract-filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px,calc(100cqw - 24px));
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15,23,42,.18);
  padding: 12px;
  display: none;
  z-index: 999;
}
:where(.lfd-html) .contract-filter-wrap.open .contract-filter-panel {
  display: block;
}
:where(.lfd-html) .contract-filter-title {
  font-size: 13px;
  font-weight: 950;
  color: #0f172a;
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}
:where(.lfd-html) .contract-filter-hint {
  font-size: 11px;
  color: #64748b;
  margin: 0 0 10px;
  line-height: 1.35;
}
:where(.lfd-html) .contract-filter-options {
  display: grid;
  gap: 7px;
  max-height: 240px;
  overflow: auto;
  padding-right: 2px;
}
:where(.lfd-html) .contract-filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 9px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #f8fafc;
  cursor: pointer;
  font-size: 12px;
  color: #0f172a;
  font-weight: 800;
}
:where(.lfd-html) .contract-filter-option:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}
:where(.lfd-html) .contract-filter-option input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  flex: 0 0 auto;
}
:where(.lfd-html) .contract-filter-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
}
:where(.lfd-html) .contract-filter-actions button {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
:where(.lfd-html) .contract-filter-actions button:hover {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
:where(.lfd-html) .employee-filter-note {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px dashed #93c5fd;
  background: #eff6ff;
  border-radius: 12px;
  font-size: 12px;
  color: #1e3a8a;
  font-weight: 800;
}
@container (max-width:860px) {
  :where(.lfd-html) .contract-filter-wrap {
    width: 100%;
  }
  :where(.lfd-html) .contract-filter-btn {
    width: 100%;
    justify-content: space-between;
  }
  :where(.lfd-html) .contract-filter-panel {
    left: 0;
    right: auto;
    width: 100%;
  }
}
:where(.lfd-html) .company-combo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 380px;
  max-width: 560px;
  z-index: 120;
}
:where(.lfd-html) .company-combo-wrap select#companySelect {
  position: absolute !important;
  left: 0;
  top: 0;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
:where(.lfd-html) .company-combo-input {
  width: 100%;
  min-width: 380px;
  padding: 10px 36px 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
  outline: none;
  box-sizing: border-box;
}
:where(.lfd-html) .company-combo-input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96,165,250,.22);
}
:where(.lfd-html) .company-combo-caret {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 13px;
  pointer-events: none;
}
:where(.lfd-html) .company-combo-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 300px;
  overflow: auto;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  box-shadow: 0 18px 45px rgba(15,23,42,.18);
  padding: 6px;
  display: none;
  z-index: 9999;
}
:where(.lfd-html) .company-combo-wrap.open .company-combo-list {
  display: block;
}
:where(.lfd-html) .company-combo-item {
  display: block;
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 9px 10px;
  border-radius: 10px;
  cursor: pointer;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
:where(.lfd-html) .company-combo-item:hover, :where(.lfd-html) .company-combo-item.active {
  background: #eff6ff;
  color: #1d4ed8;
}
:where(.lfd-html) .company-combo-item .code {
  font-size: 11px;
  color: #64748b;
  font-weight: 950;
  margin-right: 5px;
}
:where(.lfd-html) .company-combo-empty {
  padding: 12px 10px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
@container (max-width:860px) {
  :where(.lfd-html) .company-combo-wrap, :where(.lfd-html) .company-combo-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}
div:where(.lfd-body).tools-collapsed header {
  padding: 6px 12px 4px !important;
  min-height: 0 !important;
}
div:where(.lfd-body).tools-collapsed header .brand {
  min-height: 0 !important;
  gap: 8px !important;
  align-items: center !important;
}
div:where(.lfd-body).tools-collapsed header .brand-logo {
  width: 72px !important;
  max-width: 72px !important;
}
div:where(.lfd-body).tools-collapsed header h1 {
  font-size: 15px !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}
div:where(.lfd-body).tools-collapsed header .sub {
  display: none !important;
}
div:where(.lfd-body).tools-collapsed .toolbar, div:where(.lfd-body).tools-collapsed .kpis, div:where(.lfd-body).tools-collapsed .collapse-white-edge {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
div:where(.lfd-body).tools-collapsed .split-layout {
  height: calc(100cqh - 78px) !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  padding-top: 6px !important;
}
div:where(.lfd-body).tools-collapsed #orgTreePane, div:where(.lfd-body).tools-collapsed .tree-pane, div:where(.lfd-body).tools-collapsed .tree-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
@container (max-width:900px) {
  div:where(.lfd-body).tools-collapsed .split-layout {
    height: auto !important;
    padding-top: 6px !important;
  }
}
div:where(.lfd-body).tools-collapsed {
  --collapsed-header-h: 44px;
  overflow: hidden !important;
}
div:where(.lfd-body).tools-collapsed header {
  position: sticky !important;
  top: 0 !important;
  padding: 3px 10px !important;
  min-height: var(--collapsed-header-h) !important;
  height: var(--collapsed-header-h) !important;
  display: flex !important;
  align-items: center !important;
  overflow: visible !important;
}
div:where(.lfd-body).tools-collapsed header .brand {
  width: 100% !important;
  min-height: 0 !important;
  height: 100% !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
}
div:where(.lfd-body).tools-collapsed header .brand-logo {
  width: 52px !important;
  max-width: 52px !important;
  height: auto !important;
}
div:where(.lfd-body).tools-collapsed header h1 {
  font-size: 13px !important;
  line-height: 1.1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  margin: 0 !important;
}
div:where(.lfd-body).tools-collapsed .header-actions {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
div:where(.lfd-body).tools-collapsed #toolbarToggleBtn, div:where(.lfd-body).tools-collapsed #uatLegendBtn {
  padding: 5px 8px !important;
  min-height: 28px !important;
  height: 28px !important;
  line-height: 1 !important;
}
div:where(.lfd-body).tools-collapsed .toolbar, div:where(.lfd-body).tools-collapsed .kpis, div:where(.lfd-body).tools-collapsed .sub, div:where(.lfd-body).tools-collapsed .collapse-white-edge {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
div:where(.lfd-body).tools-collapsed .split-layout {
  height: calc(100dvh - var(--collapsed-header-h)) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 4px 8px 8px !important;
  overflow: hidden !important;
}
div:where(.lfd-body).tools-collapsed #orgTreePane, div:where(.lfd-body).tools-collapsed .tree-pane {
  height: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding-top: 0 !important;
  overflow: auto !important;
}
div:where(.lfd-body).tools-collapsed #treeContent, div:where(.lfd-body).tools-collapsed .tree-content {
  min-height: 100% !important;
  margin: 0 !important;
  padding-top: 0 !important;
}
@supports not (height:100dvh) {
  div:where(.lfd-body).tools-collapsed .split-layout {
    height: calc(100cqh - var(--collapsed-header-h)) !important;
  }
}
@container (max-width:900px) {
  div:where(.lfd-body).tools-collapsed {
    overflow: auto !important;
  }
  div:where(.lfd-body).tools-collapsed header {
    height: auto !important;
    min-height: 40px !important;
  }
  div:where(.lfd-body).tools-collapsed .split-layout {
    height: auto !important;
    min-height: calc(100cqh - 48px) !important;
  }
}
div:where(.lfd-body).tools-collapsed {
  --collapsed-header-h: 40px !important;
}
div:where(.lfd-body).tools-collapsed header {
  margin: 0 !important;
  padding: 0 10px !important;
  min-height: var(--collapsed-header-h) !important;
  height: var(--collapsed-header-h) !important;
  border-bottom: 1px solid #e5e7eb !important;
}
div:where(.lfd-body).tools-collapsed header .brand {
  height: var(--collapsed-header-h) !important;
  min-height: 0 !important;
  align-items: center !important;
}
div:where(.lfd-body).tools-collapsed header .brand-logo {
  width: 42px !important;
  max-width: 42px !important;
  max-height: 30px !important;
  object-fit: contain !important;
}
div:where(.lfd-body).tools-collapsed .split-layout {
  margin: 0 !important;
  padding: 0 8px 8px !important;
  height: calc(100dvh - var(--collapsed-header-h)) !important;
  min-height: 0 !important;
  align-content: stretch !important;
}
div:where(.lfd-body).tools-collapsed #orgTreePane, div:where(.lfd-body).tools-collapsed .tree-pane {
  margin: 0 !important;
  padding-top: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
}
div:where(.lfd-body).tools-collapsed #treeContent, div:where(.lfd-body).tools-collapsed .tree-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
@supports not (height:100dvh) {
  div:where(.lfd-body).tools-collapsed .split-layout {
    height: calc(100cqh - var(--collapsed-header-h)) !important;
  }
}
div:where(.lfd-html), div:where(.lfd-body) {
  height: 100%;
  min-height: 100%;
}
div:where(.lfd-body).tools-collapsed {
  height: 100cqh !important;
  min-height: 100cqh !important;
  overflow: hidden !important;
  background: #f5f7fb !important;
}
div:where(.lfd-body).tools-collapsed header {
  position: relative !important;
  top: auto !important;
  margin: 0 !important;
  padding: 3px 10px !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  display: flex !important;
  align-items: center !important;
  box-shadow: none !important;
  border-bottom: 1px solid #e5e7eb !important;
  overflow: hidden !important;
}
div:where(.lfd-body).tools-collapsed header .brand {
  height: 32px !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
  width: 100% !important;
}
div:where(.lfd-body).tools-collapsed header .brand-logo {
  display: none !important;
}
div:where(.lfd-body).tools-collapsed header h1 {
  font-size: 12px !important;
  line-height: 1 !important;
  margin: 0 !important;
  white-space: nowrap !important;
}
div:where(.lfd-body).tools-collapsed header .sub, div:where(.lfd-body).tools-collapsed .toolbar, div:where(.lfd-body).tools-collapsed .kpis, div:where(.lfd-body).tools-collapsed .collapse-white-edge {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
div:where(.lfd-body).tools-collapsed .split-layout {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: 38px !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 8px 8px !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) !important;
  grid-template-rows: minmax(0,1fr) !important;
  gap: 0 !important;
  overflow: hidden !important;
  background: #f5f7fb !important;
}
div:where(.lfd-body).tools-collapsed #orgTreePane, div:where(.lfd-body).tools-collapsed .tree-pane {
  grid-column: 1 !important;
  grid-row: 1 !important;
  height: 100% !important;
  max-height: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 8px 0 0 !important;
  overflow: auto !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
}
div:where(.lfd-body).tools-collapsed #treeContent, div:where(.lfd-body).tools-collapsed .tree-content {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100% !important;
}
div:where(.lfd-body).tools-collapsed #detailPane, div:where(.lfd-body).tools-collapsed .detail-pane {
  display: none !important;
}
div:where(.lfd-body).tools-collapsed {
  --collapsed-header-h: 34px !important;
  position: relative !important;
  min-height: 100dvh !important;
  height: 100dvh !important;
  overflow: hidden !important;
}
div:where(.lfd-body).tools-collapsed header {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  height: var(--collapsed-header-h) !important;
  min-height: var(--collapsed-header-h) !important;
  margin: 0 !important;
  padding: 0 8px !important;
  display: flex !important;
  align-items: center !important;
  z-index: 50 !important;
}
div:where(.lfd-body).tools-collapsed header .brand {
  height: 100% !important;
  min-height: 0 !important;
  gap: 6px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}
div:where(.lfd-body).tools-collapsed header .brand-logo {
  width: 34px !important;
  max-width: 34px !important;
  max-height: 24px !important;
}
div:where(.lfd-body).tools-collapsed header h1 {
  font-size: 12px !important;
  line-height: 1 !important;
  margin: 0 !important;
}
div:where(.lfd-body).tools-collapsed .header-actions button, div:where(.lfd-body).tools-collapsed #toolbarToggleBtn, div:where(.lfd-body).tools-collapsed #uatLegendBtn {
  height: 26px !important;
  min-height: 26px !important;
  padding: 4px 8px !important;
  font-size: 11px !important;
}
div:where(.lfd-body).tools-collapsed .toolbar, div:where(.lfd-body).tools-collapsed .kpis, div:where(.lfd-body).tools-collapsed .sub, div:where(.lfd-body).tools-collapsed .collapse-white-edge {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
div:where(.lfd-body).tools-collapsed .split-layout {
  position: absolute !important;
  top: var(--collapsed-header-h) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 8px 8px !important;
  overflow: hidden !important;
  align-content: stretch !important;
}
div:where(.lfd-body).tools-collapsed #orgTreePane, div:where(.lfd-body).tools-collapsed .tree-pane, div:where(.lfd-body).tools-collapsed .detail-pane {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  overflow: auto !important;
}
div:where(.lfd-body).tools-collapsed #treeContent, div:where(.lfd-body).tools-collapsed .tree-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
  min-height: 100% !important;
}
@supports not (height:100dvh) {
  div:where(.lfd-body).tools-collapsed {
    height: 100cqh !important;
    min-height: 100cqh !important;
  }
}
div:where(.lfd-body).tools-collapsed #detailPane, div:where(.lfd-body).tools-collapsed .detail-pane, div:where(.lfd-body).tools-collapsed #splitDragHandle, div:where(.lfd-body).tools-collapsed .split-drag-handle {
  display: none !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
div:where(.lfd-body).tools-collapsed .split-layout {
  grid-template-columns: minmax(0,1fr) !important;
  gap: 0 !important;
}
div:where(.lfd-body).tools-collapsed #orgTreePane, div:where(.lfd-body).tools-collapsed .tree-pane {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-right: 0 !important;
  border-right: 0 !important;
}
:where(.lfd-html) .brand-logo {
  display: none !important;
}
:where(.lfd-html) header {
  position: sticky !important;
  top: 0 !important;
  z-index: 2147482000 !important;
  padding: 8px 12px 6px !important;
  background: #fff !important;
  box-shadow: 0 3px 14px rgba(15,23,42,.16) !important;
}
:where(.lfd-html) header .brand {
  gap: 8px !important;
  min-height: 0 !important;
}
:where(.lfd-html) header h1 {
  font-size: 17px !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}
:where(.lfd-html) header .sub {
  font-size: 11px !important;
  margin-top: 2px !important;
  line-height: 1.25 !important;
}
:where(.lfd-html) .toolbar, :where(.lfd-html) .filters, :where(.lfd-html) .filter-bar, :where(.lfd-html) .controls, :where(.lfd-html) .top-controls, :where(.lfd-html) .chart-toolbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 2147481999 !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(15,23,42,.08) !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
:where(.lfd-html) .toolbar {
  gap: 7px !important;
  margin-top: 6px !important;
}
:where(.lfd-html) input, :where(.lfd-html) button, :where(.lfd-html) select {
  padding: 7px 9px !important;
  min-height: 32px !important;
  font-size: 12px !important;
}
:where(.lfd-html) .kpis {
  gap: 6px !important;
  margin-top: 6px !important;
  grid-template-columns: repeat(auto-fit,minmax(96px,1fr)) !important;
}
:where(.lfd-html) .kpi {
  padding: 6px 8px !important;
  min-height: 48px !important;
}
:where(.lfd-html) .kpi span {
  font-size: 10px !important;
}
:where(.lfd-html) .kpi b {
  font-size: 17px !important;
}
:where(.lfd-html) .collapse-white-edge {
  position: sticky !important;
  top: 0 !important;
  z-index: 2147481998 !important;
}
:where(.lfd-html) [data-boc-right], :where(.lfd-html) .boc-toolbar, :where(.lfd-html) .boc-search, :where(.lfd-html) .boc-chart-menu {
  z-index: 2147481500 !important;
}
div:where(.lfd-html), div:where(.lfd-body) {
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}
div:where(.lfd-body) {
  display: flex !important;
  flex-direction: column !important;
}
div:where(.lfd-body)>header, :where(.lfd-html) header {
  flex: 0 0 auto !important;
}
div:where(.lfd-body)>main, :where(.lfd-html) main, :where(.lfd-html) #app, :where(.lfd-html) .app, :where(.lfd-html) .page, :where(.lfd-html) .page-body, :where(.lfd-html) .layout, :where(.lfd-html) .main, :where(.lfd-html) .main-content, :where(.lfd-html) .content, :where(.lfd-html) .container {
  min-height: 0 !important;
}
:where(.lfd-html) .split-layout, :where(.lfd-html) #splitLayout, :where(.lfd-html) .main-layout, :where(.lfd-html) .content-layout, :where(.lfd-html) .chart-layout {
  flex: 1 1 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 8px !important;
  box-sizing: border-box !important;
}
:where(.lfd-html) #orgTreePane, :where(.lfd-html) .tree-pane, :where(.lfd-html) #detailPane, :where(.lfd-html) .detail-pane, :where(.lfd-html) .org-tree-pane, :where(.lfd-html) .chart-pane, :where(.lfd-html) .chart-wrap, :where(.lfd-html) .chart-area, :where(.lfd-html) #chart, :where(.lfd-html) #tree, :where(.lfd-html) .tree-content, :where(.lfd-html) [data-boc-chart], :where(.lfd-html) .boc-chart {
  min-height: 0 !important;
  max-height: 100% !important;
  box-sizing: border-box !important;
}
div:where(.lfd-body).tools-collapsed .split-layout, div:where(.lfd-body).tools-collapsed #splitLayout {
  height: calc(100cqh - 44px) !important;
}
div:where(.lfd-body).combo-split-detail-popup .split-layout, div:where(.lfd-body).combo-split-detail-popup #splitLayout {
  height: auto !important;
  padding-bottom: 0 !important;
}
div:where(.lfd-body).combo-split-detail-popup {
  height: 100cqh !important;
  overflow: hidden !important;
}
div:where(.lfd-body).combo-split-detail-popup .split-layout {
  display: block !important;
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: var(--combo-detail-top, 150px) !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}
div:where(.lfd-body).combo-split-detail-popup #splitLayout {
  width: 100% !important;
  max-width: none !important;
}
div:where(.lfd-body).combo-split-detail-popup .split-drag-handle, div:where(.lfd-body).combo-split-detail-popup .collapse-white-edge, div:where(.lfd-body).combo-split-detail-popup .collapse-kpi-controls {
  display: none !important;
}
div:where(.lfd-body).combo-split-detail-popup .tree-pane, div:where(.lfd-body).combo-split-detail-popup #orgTreePane {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  inset: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  min-width: 0 !important;
  max-width: none !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  padding: 8px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow: auto !important;
}
div:where(.lfd-body).combo-split-detail-popup #treeContent, div:where(.lfd-body).combo-split-detail-popup .tree-content {
  min-height: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
div:where(.lfd-body).combo-split-detail-popup .detail-pane {
  position: fixed !important;
  right: 12px !important;
  top: calc(var(--combo-detail-top, 150px) + 8px) !important;
  bottom: 12px !important;
  width: min(460px,calc(100cqw - 56px)) !important;
  max-width: calc(100cqw - 56px) !important;
  min-width: 280px !important;
  height: auto !important;
  max-height: calc(100cqh - var(--combo-detail-top, 150px) - 20px) !important;
  overflow: auto !important;
  z-index: 2147482200 !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 22px 60px rgba(15,23,42,.28) !important;
  padding: 12px !important;
}
div:where(.lfd-body).combo-split-detail-popup .detail-pane:before {
  content: 'Chi tiết';
  position: sticky;
  top: -12px;
  display: block;
  margin: -12px -12px 10px;
  padding: 9px 12px;
  background: linear-gradient(135deg,#eff6ff,#fff);
  border-bottom: 1px solid #dbeafe;
  color: #0f172a;
  font-weight: 900;
  font-size: 13px;
  z-index: 2;
}
div:where(.lfd-body).combo-split-detail-popup.combo-detail-popup-closed .detail-pane {
  display: none !important;
}
:where(.lfd-html) #comboDetailPopupClose {
  display: none;
  position: fixed;
  right: 24px;
  top: calc(var(--combo-detail-top, 150px) + 16px);
  z-index: 2147482300;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  box-shadow: 0 8px 22px rgba(15,23,42,.18);
  font-weight: 900;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 18px;
  padding: 0;
}
div:where(.lfd-body).combo-split-detail-popup #comboDetailPopupClose {
  display: flex !important;
}
div:where(.lfd-body).combo-split-detail-popup.combo-detail-popup-closed #comboDetailPopupClose {
  display: none !important;
}
@container (max-width:760px) {
  div:where(.lfd-body).combo-split-detail-popup .detail-pane {
    left: 10px !important;
    right: 10px !important;
    top: 150px !important;
    bottom: 12px !important;
    width: auto !important;
    min-width: 0 !important;
  }
  :where(.lfd-html) #comboDetailPopupClose {
    right: 20px !important;
    top: 158px !important;
  }
}
div:where(.lfd-body).tools-collapsed:not(.combo-split-detail-popup) #detailPane, div:where(.lfd-body).tools-collapsed:not(.combo-split-detail-popup) .detail-pane {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  max-height: 100% !important;
  padding: 14px !important;
  margin: 0 !important;
  border: 1px solid var(--line,#e2e8f0) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(15,23,42,.08) !important;
  overflow: auto !important;
  box-sizing: border-box !important;
}
div:where(.lfd-body).tools-collapsed:not(.combo-split-detail-popup) .split-layout, div:where(.lfd-body).tools-collapsed:not(.combo-split-detail-popup) #splitLayout {
  display: grid !important;
  grid-template-columns: var(--tree-pane-width, minmax(420px,48%)) 12px minmax(0,1fr) !important;
  grid-template-rows: minmax(0,1fr) !important;
  gap: 0 !important;
  align-items: stretch !important;
  height: calc(100cqh - 44px) !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  padding: 8px !important;
  margin: 0 !important;
}
div:where(.lfd-body).tools-collapsed:not(.combo-split-detail-popup) #orgTreePane, div:where(.lfd-body).tools-collapsed:not(.combo-split-detail-popup) .tree-pane {
  display: block !important;
  grid-column: auto !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  padding-right: 10px !important;
  border-right: 0 !important;
  overflow: auto !important;
  box-sizing: border-box !important;
}
div:where(.lfd-body).tools-collapsed:not(.combo-split-detail-popup) #splitDragHandle, div:where(.lfd-body).tools-collapsed:not(.combo-split-detail-popup) .split-drag-handle {
  display: block !important;
  width: 12px !important;
  min-width: 12px !important;
  max-width: 12px !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: visible !important;
}
div:where(.lfd-body).combo-split-detail-popup.tools-collapsed .detail-pane {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #comboDetailPopupClose {
  display: flex !important;
}
div:where(.lfd-body).combo-split-detail-popup.tools-collapsed.combo-detail-popup-closed .detail-pane, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed.combo-detail-popup-closed #comboDetailPopupClose {
  display: none !important;
}
div:where(.lfd-body).combo-split-detail-popup.tools-collapsed {
  --combo-collapsed-top: 40px !important;
  height: 100cqh !important;
  overflow: hidden !important;
}
div:where(.lfd-body).combo-split-detail-popup.tools-collapsed header {
  height: var(--combo-collapsed-top) !important;
  min-height: var(--combo-collapsed-top) !important;
  max-height: var(--combo-collapsed-top) !important;
  padding: 0 10px !important;
  margin: 0 !important;
  overflow: visible !important;
}
div:where(.lfd-body).combo-split-detail-popup.tools-collapsed .split-layout, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #splitLayout {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: var(--combo-collapsed-top) !important;
  bottom: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}
div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #orgTreePane, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed .tree-pane {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 6px !important;
  margin: 0 !important;
  overflow: auto !important;
  box-sizing: border-box !important;
}
div:where(.lfd-body).combo-split-detail-popup.tools-collapsed .detail-pane {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  top: calc(var(--combo-collapsed-top) + 8px) !important;
  bottom: 10px !important;
  max-height: calc(100cqh - var(--combo-collapsed-top) - 18px) !important;
}
div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #comboDetailPopupClose {
  top: calc(var(--combo-collapsed-top) + 16px) !important;
  display: flex !important;
}
div:where(.lfd-body).combo-split-detail-popup.tools-collapsed.combo-detail-popup-closed .detail-pane, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed.combo-detail-popup-closed #comboDetailPopupClose {
  display: none !important;
}
div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #detailPane, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed .detail-pane {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: fixed !important;
  right: 12px !important;
  top: calc(var(--combo-detail-top, 150px) + 8px) !important;
  bottom: 12px !important;
  width: min(460px,calc(100cqw - 56px)) !important;
  max-width: calc(100cqw - 56px) !important;
  min-width: 280px !important;
  height: auto !important;
  max-height: calc(100cqh - var(--combo-detail-top, 150px) - 20px) !important;
  overflow: auto !important;
  z-index: 2147482600 !important;
  background: #fff !important;
  border: 1px solid #bfdbfe !important;
  border-radius: 18px !important;
  box-shadow: 0 22px 60px rgba(15,23,42,.28) !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  transform: none !important;
  isolation: isolate !important;
}
div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #comboDetailPopupClose {
  display: flex !important;
  position: fixed !important;
  right: 24px !important;
  top: calc(var(--combo-detail-top, 150px) + 16px) !important;
  z-index: 2147482700 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
div:where(.lfd-body).combo-split-detail-popup.tools-collapsed.combo-detail-popup-closed #detailPane, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed.combo-detail-popup-closed .detail-pane, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed.combo-detail-popup-closed #comboDetailPopupClose {
  display: none !important;
}
@container (max-width:760px) {
  div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #detailPane, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed .detail-pane {
    left: 10px !important;
    right: 10px !important;
    top: 150px !important;
    bottom: 12px !important;
    width: auto !important;
    min-width: 0 !important;
    max-height: calc(100cqh - 162px) !important;
  }
  div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #comboDetailPopupClose {
    right: 20px !important;
    top: 158px !important;
  }
}
div:where(.lfd-body).combo-split-detail-popup #detailPane, div:where(.lfd-body).combo-split-detail-popup .detail-pane, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #detailPane, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed .detail-pane {
  left: auto !important;
  right: 12px !important;
  width: min(var(--combo-detail-popup-width, 460px), calc(100cqw - 24px)) !important;
  min-width: min(280px, calc(100cqw - 24px)) !important;
  max-width: calc(100cqw - 24px) !important;
  box-sizing: border-box !important;
  flex: 0 0 auto !important;
}
@container (max-width:760px) {
  div:where(.lfd-body).combo-split-detail-popup #detailPane, div:where(.lfd-body).combo-split-detail-popup .detail-pane, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #detailPane, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed .detail-pane {
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}
div:where(.lfd-body).combo-split-detail-popup #detailPane:before, div:where(.lfd-body).combo-split-detail-popup .detail-pane:before, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #detailPane:before, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed .detail-pane:before {
  top: 0 !important;
  margin: 0 0 10px 0 !important;
  padding: 10px 48px 10px 12px !important;
  min-height: 20px !important;
  line-height: 20px !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
  background: linear-gradient(135deg,#eff6ff,#fff) !important;
  z-index: 2147482650 !important;
  box-sizing: border-box !important;
}
div:where(.lfd-body).combo-split-detail-popup #comboDetailPopupClose, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #comboDetailPopupClose {
  top: calc(var(--combo-detail-top, 150px) + 20px) !important;
  right: 24px !important;
  z-index: 2147482750 !important;
}
@container (max-width:760px) {
  div:where(.lfd-body).combo-split-detail-popup #comboDetailPopupClose, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #comboDetailPopupClose {
    right: 20px !important;
    top: 162px !important;
  }
}
div:where(.lfd-body).combo-split-detail-popup #detailPane:before, div:where(.lfd-body).combo-split-detail-popup .detail-pane:before, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #detailPane:before, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed .detail-pane:before {
  position: sticky !important;
  top: -12px !important;
  display: block !important;
  margin: -12px -12px 12px -12px !important;
  padding: 12px 52px 12px 14px !important;
  min-height: 44px !important;
  line-height: 20px !important;
  background: #fff !important;
  background-image: linear-gradient(135deg,#eff6ff 0%,#fff 72%) !important;
  border-bottom: 1px solid #dbeafe !important;
  border-radius: 18px 18px 0 0 !important;
  color: #0f172a !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  box-shadow: 0 8px 16px rgba(255,255,255,.96),0 6px 14px rgba(15,23,42,.06) !important;
  z-index: 2147482850 !important;
  box-sizing: border-box !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}
div:where(.lfd-body).combo-split-detail-popup #comboDetailPopupClose, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #comboDetailPopupClose {
  top: calc(var(--combo-detail-top, 150px) + 16px) !important;
  right: 24px !important;
  z-index: 2147482950 !important;
}
@container (max-width:760px) {
  div:where(.lfd-body).combo-split-detail-popup #detailPane:before, div:where(.lfd-body).combo-split-detail-popup .detail-pane:before, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #detailPane:before, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed .detail-pane:before {
    top: -12px !important;
    margin: -12px -12px 12px -12px !important;
  }
  div:where(.lfd-body).combo-split-detail-popup #comboDetailPopupClose, div:where(.lfd-body).combo-split-detail-popup.tools-collapsed #comboDetailPopupClose {
    right: 20px !important;
    top: 158px !important;
  }
}
:where(.lfc-html) .brand-logo {
  display: none !important;
}
:where(.lfc-html) header {
  position: sticky !important;
  top: 0 !important;
  z-index: 2147482000 !important;
  padding: 8px 12px 6px !important;
  background: #fff !important;
  box-shadow: 0 3px 14px rgba(15,23,42,.16) !important;
}
:where(.lfc-html) header .brand {
  gap: 8px !important;
  min-height: 0 !important;
}
:where(.lfc-html) header h1 {
  font-size: 17px !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}
:where(.lfc-html) header .sub {
  font-size: 11px !important;
  margin-top: 2px !important;
  line-height: 1.25 !important;
}
:where(.lfc-html) .toolbar, :where(.lfc-html) .filters, :where(.lfc-html) .filter-bar, :where(.lfc-html) .controls, :where(.lfc-html) .top-controls, :where(.lfc-html) .chart-toolbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 2147481999 !important;
  background: #fff !important;
  box-shadow: 0 2px 8px rgba(15,23,42,.08) !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
:where(.lfc-html) .toolbar {
  gap: 7px !important;
  margin-top: 6px !important;
}
:where(.lfc-html) input, :where(.lfc-html) button, :where(.lfc-html) select {
  padding: 7px 9px !important;
  min-height: 32px !important;
  font-size: 12px !important;
}
:where(.lfc-html) .kpis {
  gap: 6px !important;
  margin-top: 6px !important;
  grid-template-columns: repeat(auto-fit,minmax(96px,1fr)) !important;
}
:where(.lfc-html) .kpi {
  padding: 6px 8px !important;
  min-height: 48px !important;
}
:where(.lfc-html) .kpi span {
  font-size: 10px !important;
}
:where(.lfc-html) .kpi b {
  font-size: 17px !important;
}
:where(.lfc-html) .collapse-white-edge {
  position: sticky !important;
  top: 0 !important;
  z-index: 2147481998 !important;
}
:where(.lfc-html) [data-boc-right], :where(.lfc-html) .boc-toolbar, :where(.lfc-html) .boc-search, :where(.lfc-html) .boc-chart-menu {
  z-index: 2147481500 !important;
}
div:where(.lfc-html), div:where(.lfc-body) {
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
}
div:where(.lfc-body) {
  display: flex !important;
  flex-direction: column !important;
}
div:where(.lfc-body)>header, :where(.lfc-html) header {
  flex: 0 0 auto !important;
}
div:where(.lfc-body)>main, :where(.lfc-html) main, :where(.lfc-html) #app, :where(.lfc-html) .app, :where(.lfc-html) .page, :where(.lfc-html) .page-body, :where(.lfc-html) .layout, :where(.lfc-html) .main, :where(.lfc-html) .main-content, :where(.lfc-html) .content, :where(.lfc-html) .container {
  min-height: 0 !important;
}
:where(.lfc-html) .split-layout, :where(.lfc-html) #splitLayout, :where(.lfc-html) .main-layout, :where(.lfc-html) .content-layout, :where(.lfc-html) .chart-layout {
  flex: 1 1 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 8px !important;
  box-sizing: border-box !important;
}
:where(.lfc-html) #orgTreePane, :where(.lfc-html) .tree-pane, :where(.lfc-html) #detailPane, :where(.lfc-html) .detail-pane, :where(.lfc-html) .org-tree-pane, :where(.lfc-html) .chart-pane, :where(.lfc-html) .chart-wrap, :where(.lfc-html) .chart-area, :where(.lfc-html) #chart, :where(.lfc-html) #tree, :where(.lfc-html) .tree-content, :where(.lfc-html) [data-boc-chart], :where(.lfc-html) .boc-chart {
  min-height: 0 !important;
  max-height: 100% !important;
  box-sizing: border-box !important;
}
div:where(.lfc-body).tools-collapsed .split-layout, div:where(.lfc-body).tools-collapsed #splitLayout {
  height: calc(100cqh - 44px) !important;
}
div:where(.lfc-body).combo-split-detail-popup .split-layout, div:where(.lfc-body).combo-split-detail-popup #splitLayout {
  height: auto !important;
  padding-bottom: 0 !important;
}
:where(.lfc-html) #drawer, :where(.lfc-html) .drawer {
  position: fixed !important;
  z-index: 2147482600 !important;
  isolation: isolate !important;
  pointer-events: auto !important;
  transform: none !important;
}
:where(.lfc-html) .drawer.show, :where(.lfc-html) #drawer.show {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
:where(.lfc-html) .drawer-head, :where(.lfc-html) .drawer-actions, :where(.lfc-html) .drawer-close, :where(.lfc-html) .drawer-wide {
  position: relative !important;
  z-index: 2147482601 !important;
}
:where(.lfc-html) #tree, :where(.lfc-html) #tree svg, :where(.lfc-html) #tree .boc-chart, :where(.lfc-html) #tree .boc-canvas, :where(.lfc-html) #tree .boc-view, :where(.lfc-html) svg {
  z-index: 1 !important;
}
:where(.lfc-html) .tooltip {
  z-index: 2147482550 !important;
}
:where(.lfc-html) .help-panel, :where(.lfc-html) .help-fab, :where(.lfc-html) #uatLegend, :where(.lfc-html) .legend-modal {
  z-index: 2147482500 !important;
}
div:where(.lfc-body).combo-full-tree .dashboard {
  top: 84px !important;
  max-height: 92px !important;
  overflow: hidden !important;
  z-index: 30 !important;
  grid-template-columns: repeat(8,minmax(0,1fr)) !important;
  gap: 5px !important;
}
div:where(.lfc-body).combo-full-tree #tree {
  padding-top: 184px !important;
}
div:where(.lfc-body).combo-full-tree.tree-search-collapsed .dashboard {
  display: none !important;
}
div:where(.lfc-body).combo-full-tree.tree-search-collapsed #tree {
  padding-top: 76px !important;
}
div:where(.lfc-body).combo-full-tree .topbar {
  z-index: 90 !important;
}
@container (max-width:1120px) {
  div:where(.lfc-body).combo-full-tree .dashboard {
    top: 272px !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    max-height: 96px !important;
  }
  div:where(.lfc-body).combo-full-tree #tree {
    padding-top: 378px !important;
  }
}
@container (max-width:760px) {
  div:where(.lfc-body).combo-full-tree .dashboard {
    top: 318px !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    max-height: 160px !important;
  }
  div:where(.lfc-body).combo-full-tree #tree {
    padding-top: 488px !important;
  }
}
.lfc-html {
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --orange: #f97316;
  --green: #16a34a;
  --red: #dc2626;
  --purple: #7c3aed;
  --shadow: 0 18px 55px rgba(15,23,42,.14);
  --soft: 0 10px 30px rgba(15,23,42,.10);
}
:where(.lfc-html), :where(.lfc-html) * {
  box-sizing: border-box;
}
div:where(.lfc-html), div:where(.lfc-body) {
  height: 100%;
}
div:where(.lfc-body) {
  margin: 0;
  font-family: Inter,Segoe UI,Roboto,Arial,sans-serif;
  color: var(--text);
  background: linear-gradient(135deg,#eef5ff 0%,#f8fafc 48%,#eefdf8 100%);
  overflow: hidden;
}
:where(.lfc-html) .topbar {
  position: fixed;
  z-index: 30;
  top: 14px;
  left: 14px;
  right: 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(340px,370px) minmax(460px,1fr) max-content;
  gap: 8px;
  align-items: center;
}
:where(.lfc-html) .brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}
:where(.lfc-html) .logo {
  width: 108px;
  height: 48px;
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 18px rgba(15,23,42,.08);
  flex: 0 0 auto;
}
:where(.lfc-html) .logo img {
  max-width: 98px;
  max-height: 42px;
  object-fit: contain;
}
:where(.lfc-html) .logo .fallback {
  font-weight: 900;
  color: #1e3a8a;
  font-size: 22px;
  letter-spacing: .06em;
}
:where(.lfc-html) .brand h1 {
  font-size: 14px;
  margin: 0;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
:where(.lfc-html) .brand p {
  font-size: 11px;
  color: var(--muted);
  margin: 3px 0 0;
}
:where(.lfc-html) .controls {
  display: grid;
  grid-template-columns: minmax(150px,1.15fr) repeat(5,minmax(86px,1fr)) minmax(150px,1.12fr);
  gap: 7px;
}
:where(.lfc-html) select, :where(.lfc-html) input {
  width: 100%;
  border: 1px solid #d8e0ec;
  background: #fff;
  border-radius: 11px;
  padding: 8px 9px;
  font-size: 12px;
  outline: none;
  color: #172033;
}
:where(.lfc-html) select:focus, :where(.lfc-html) input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
:where(.lfc-html) .actions {
  display: flex;
  gap: 5px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
:where(.lfc-html) button {
  border: 0;
  border-radius: 10px;
  background: #edf2ff;
  color: #1d4ed8;
  padding: 8px 9px;
  font-weight: 800;
  font-size: 11px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37,99,235,.08);
}
:where(.lfc-html) button:hover {
  transform: translateY(-1px);
  background: #dbeafe;
}
:where(.lfc-html) .dashboard {
  position: fixed;
  z-index: 20;
  top: 102px;
  left: 14px;
  right: 14px;
  display: grid;
  grid-template-columns: repeat(8,1fr);
  gap: 5px;
  pointer-events: none;
}
:where(.lfc-html) .kpi {
  background: rgba(255,255,255,.88);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 5px 7px;
  box-shadow: 0 5px 14px rgba(15,23,42,.07);
  min-width: 0;
}
:where(.lfc-html) .kpi .label {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}
:where(.lfc-html) .kpi .value {
  font-size: 11px;
  font-weight: 900;
  margin-top: 1px;
  line-height: 1.05;
}
:where(.lfc-html) .kpi.quota {
  border-color: #bfdbfe;
  background: linear-gradient(180deg,#eff6ff,#dbeafe);
}
:where(.lfc-html) .kpi.quota .value {
  color: #1d4ed8;
}
:where(.lfc-html) .kpi.role {
  border-color: #bbf7d0;
  background: linear-gradient(180deg,#ecfdf5,#dcfce7);
}
:where(.lfc-html) .kpi.role .value {
  color: #15803d;
}
:where(.lfc-html) .kpi.warn {
  border-color: #fde68a;
  background: linear-gradient(180deg,#fffbeb,#fef3c7);
}
:where(.lfc-html) .kpi.warn .value {
  color: #b45309;
}
:where(.lfc-html) #tree {
  height: 100cqh;
  padding-top: 132px;
}
:where(.lfc-html) .drawer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: min(560px,calc(100cqw - 36px));
  max-height: 52cqh;
  overflow: auto;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 14px;
  display: none;
}
:where(.lfc-html) .drawer.show {
  display: block;
}
:where(.lfc-html) .drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
:where(.lfc-html) .drawer h3 {
  margin: 0;
  font-size: 15px;
}
:where(.lfc-html) .drawer-close {
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
:where(.lfc-html) .drawer table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
:where(.lfc-html) .drawer th, :where(.lfc-html) .drawer td {
  border-bottom: 1px solid #edf2f7;
  padding: 7px;
  text-align: left;
  vertical-align: top;
}
:where(.lfc-html) .drawer th {
  color: #475569;
  background: #f8fafc;
  width: 180px;
}
:where(.lfc-html) .badges {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0;
}
:where(.lfc-html) .badge {
  font-size: 10px;
  border-radius: 99px;
  padding: 4px 7px;
  font-weight: 800;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}
:where(.lfc-html) .badge.green {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}
:where(.lfc-html) .badge.orange {
  background: #ffedd5;
  color: #9a3412;
  border-color: #fed7aa;
}
:where(.lfc-html) .badge.gray {
  background: #f1f5f9;
  color: #475569;
  border-color: #e2e8f0;
}
:where(.lfc-html) .tooltip {
  position: fixed;
  z-index: 80;
  display: none;
  max-width: 460px;
  background: #111827;
  color: #fff;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 12px;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  line-height: 1.45;
  pointer-events: none;
  white-space: pre-wrap;
}
:where(.lfc-html) .tooltip.show {
  display: block !important;
}
:where(.lfc-html) .org-card {
  width: 390px;
  height: 186px;
  border-radius: 20px;
  background: white;
  border: 2px solid #d8e0ec;
  box-shadow: 0 9px 24px rgba(15,23,42,.16);
  position: relative;
  overflow: hidden;
  display: flex;
}
:where(.lfc-html) .org-card .bar {
  width: 10px;
  flex: 0 0 10px;
  background: #94a3b8;
}
:where(.lfc-html) .org-card .body {
  padding: 13px 12px 9px;
  width: calc(100% - 10px);
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
:where(.lfc-html) .org-card .type {
  font-size: 9.5px;
  line-height: 1.32;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .035em;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 13px;
}
:where(.lfc-html) .org-card .title {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 900;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin: 0;
}
:where(.lfc-html) .org-card .sub {
  font-size: 10.5px;
  line-height: 1.24;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-height: 24px;
}
:where(.lfc-html) .org-card .metrics {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 5px;
  height: 34px;
  align-items: stretch;
}
:where(.lfc-html) .org-card .metric {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  padding: 3px 4px;
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
}
:where(.lfc-html) .org-card .metric b {
  display: block;
  font-size: 12px;
  line-height: 1.05;
  color: #111827;
}
:where(.lfc-html) .org-card .metric span {
  font-size: 7.5px;
  line-height: 1;
  color: #64748b;
  margin-top: 3px;
  white-space: nowrap;
}
:where(.lfc-html) .org-card .metric.quota {
  background: linear-gradient(180deg,#eff6ff,#dbeafe);
  border-color: #93c5fd;
}
:where(.lfc-html) .org-card .metric.quota b {
  color: #1d4ed8;
}
:where(.lfc-html) .org-card .metric.actual {
  background: linear-gradient(180deg,#f8fafc,#eef2f7);
  border-color: #cbd5e1;
}
:where(.lfc-html) .org-card .metric.actual b {
  color: #334155;
}
:where(.lfc-html) .org-card .metric.hire {
  background: linear-gradient(180deg,#fff7ed,#ffedd5);
  border-color: #fdba74;
}
:where(.lfc-html) .org-card .metric.hire b {
  color: #c2410c;
}
:where(.lfc-html) .org-card.company {
  background: linear-gradient(135deg,#0f172a,#1e3a8a);
  border-color: #1d4ed8;
  color: #fff;
}
:where(.lfc-html) .org-card.company .title, :where(.lfc-html) .org-card.company .metric b {
  color: #fff;
}
:where(.lfc-html) .org-card.company .type, :where(.lfc-html) .org-card.company .sub, :where(.lfc-html) .org-card.company .metric span {
  color: #dbeafe;
}
:where(.lfc-html) .org-card.company .metric {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.16);
}
:where(.lfc-html) .org-card.company .title {
  font-size: 13px;
  line-height: 1.34;
  -webkit-line-clamp: 2;
  padding-top: 2px;
}
:where(.lfc-html) .org-card.dim {
  opacity: .22;
  filter: grayscale(.8);
}
:where(.lfc-html) .org-card.no-actual:after {
  content: 'Chưa có dữ liệu hiện hữu HRMS';
  position: absolute;
  left: 18px;
  bottom: 5px;
  font-size: 10px;
  font-weight: 900;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 99px;
  padding: 2px 7px;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(.lfc-html) .org-card.selected-line {
  border-color: #facc15 !important;
  box-shadow: 0 0 0 5px rgba(250,204,21,.62),0 9px 24px rgba(15,23,42,.16) !important;
}
:where(.lfc-html) .org-card.selected-main {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 6px rgba(245,158,11,.72),0 12px 28px rgba(15,23,42,.20) !important;
}
:where(.lfc-html) .node-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  margin-right: 4px;
  vertical-align: -4px;
  background: rgba(37,99,235,.10);
  color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(37,99,235,.18);
}
:where(.lfc-html) .company .node-icon {
  background: rgba(255,255,255,.15);
  color: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
:where(.lfc-html) .node-icon svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@container (max-width:1120px) {
  :where(.lfc-html) .topbar {
    grid-template-columns: 1fr;
  }
  :where(.lfc-html) .actions {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  :where(.lfc-html) .dashboard {
    top: 220px;
    grid-template-columns: repeat(2,1fr);
  }
  :where(.lfc-html) #tree {
    padding-top: 380px;
  }
  :where(.lfc-html) .controls {
    grid-template-columns: 1fr 1fr;
  }
}
:where(.lfc-html) #tree, :where(.lfc-html) #tree svg, :where(.lfc-html) #tree .boc-chart, :where(.lfc-html) #tree .boc-canvas, :where(.lfc-html) #tree .boc-view, :where(.lfc-html) svg {
  background: #ffffff !important;
}
:where(.lfc-html) #tree foreignObject {
  overflow: visible !important;
}
:where(.lfc-html) .org-card, :where(.lfc-html) .org-card * {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}
:where(.lfc-html) .export-white-bg {
  background: #ffffff !important;
}
:where(.lfc-html) #tree, :where(.lfc-html) #tree svg, :where(.lfc-html) #tree .boc-chart, :where(.lfc-html) #tree .boc-canvas, :where(.lfc-html) #tree .boc-view {
  background: #ffffff !important;
}
:where(.lfc-html) .exporting-white, :where(.lfc-html) .exporting-white * {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}
:where(.lfc-html) .exporting-white #tree {
  background: #ffffff !important;
}
:where(.lfc-html) .export-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15,23,42,.30);
  backdrop-filter: blur(8px);
}
:where(.lfc-html) .export-loading.show {
  display: flex;
}
:where(.lfc-html) .export-loading-card {
  width: min(420px,calc(100cqw - 36px));
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(15,23,42,.28);
  padding: 22px 22px 18px;
  text-align: center;
  color: #0f172a;
  animation: lfc-loadingPop .22s ease-out;
}
@keyframes lfc-loadingPop {
  from {
    transform: translateY(8px) scale(.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
:where(.lfc-html) .export-loading-icon {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}
:where(.lfc-html) .spinner-ring {
  width: 70px;
  height: 70px;
  border-radius: 999px;
  border: 7px solid #dbeafe;
  border-top-color: #2563eb;
  border-right-color: #16a34a;
  animation: lfc-spin 1s linear infinite;
}
:where(.lfc-html) .spinner-dot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: linear-gradient(135deg,#1d4ed8,#16a34a);
  box-shadow: 0 10px 25px rgba(37,99,235,.28);
}
:where(.lfc-html) .spinner-dot:before {
  content: '↓';
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  line-height: 32px;
}
@keyframes lfc-spin {
  to {
    transform: rotate(360deg);
  }
}
:where(.lfc-html) .export-loading-text strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  margin-bottom: 5px;
}
:where(.lfc-html) .export-loading-text span {
  display: block;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}
:where(.lfc-html) .export-progress {
  height: 9px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 16px 0 10px;
}
:where(.lfc-html) .export-progress-bar {
  height: 100%;
  width: 16%;
  border-radius: 999px;
  background: linear-gradient(90deg,#2563eb,#16a34a,#f97316);
  animation: lfc-progressMove 1.25s ease-in-out infinite;
}
@keyframes lfc-progressMove {
  0% {
    transform: translateX(-120%);
    width: 28%;
  }
  50% {
    width: 48%;
  }
  100% {
    transform: translateX(340%);
    width: 28%;
  }
}
:where(.lfc-html) .export-loading-hint {
  font-size: 11px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 10px;
  display: inline-block;
  max-width: 100%;
}
div:where(.lfc-body).export-busy {
  cursor: progress;
}
div:where(.lfc-body).export-busy button, div:where(.lfc-body).export-busy select, div:where(.lfc-body).export-busy input {
  pointer-events: none;
}
:where(.lfc-html) .exporting-white #tree, :where(.lfc-html) .exporting-white #tree svg, :where(.lfc-html) .exporting-white #tree .boc-chart, :where(.lfc-html) .exporting-white #tree .boc-canvas, :where(.lfc-html) .exporting-white #tree .boc-view {
  background: #ffffff !important;
}
:where(.lfc-html) .exporting-white .org-card, :where(.lfc-html) .exporting-white .org-card * {
  -webkit-font-smoothing: antialiased !important;
  text-rendering: geometricPrecision !important;
  shape-rendering: geometricPrecision !important;
}
:where(.lfc-html) .org-card {
  contain: layout paint style;
}
:where(.lfc-html) .expand-working #btnExpand {
  background: #fef3c7;
  color: #92400e;
  pointer-events: none;
}
:where(.lfc-html) .org-card.no-quota {
  background: linear-gradient(180deg,#ffffff,#f8fafc);
  border-style: dashed;
  border-color: #cbd5e1;
}
:where(.lfc-html) .org-card.no-quota:after {
  content: 'Chưa có dữ liệu định biên';
  position: absolute;
  left: 18px;
  bottom: 5px;
  font-size: 10px;
  font-weight: 900;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 2px 7px;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(.lfc-html) .topbar {
  grid-template-columns: minmax(340px,370px) minmax(0,1fr) max-content !important;
  column-gap: 8px !important;
}
:where(.lfc-html) .controls {
  min-width: 0 !important;
  grid-template-columns: minmax(130px,.95fr) minmax(118px,.82fr) repeat(4,minmax(72px,.70fr)) minmax(155px,.90fr) !important;
  gap: 6px !important;
}
:where(.lfc-html) #companyFilter {
  min-width: 118px !important;
}
:where(.lfc-html) #searchBox {
  min-width: 155px !important;
}
:where(.lfc-html) .controls select, :where(.lfc-html) .controls input {
  min-width: 0 !important;
  padding: 7px 8px !important;
  font-size: 11.5px !important;
}
:where(.lfc-html) .actions {
  min-width: max-content !important;
  gap: 4px !important;
}
:where(.lfc-html) .actions button {
  padding: 7px 8px !important;
  font-size: 10.5px !important;
  white-space: nowrap !important;
}
@container (max-width:1280px) {
  :where(.lfc-html) .topbar {
    grid-template-columns: minmax(300px,340px) minmax(0,1fr) max-content !important;
  }
  :where(.lfc-html) .controls {
    grid-template-columns: minmax(120px,.9fr) minmax(105px,.75fr) repeat(4,minmax(66px,.62fr)) minmax(135px,.78fr) !important;
  }
  :where(.lfc-html) .actions {
    flex-wrap: wrap !important;
    max-width: 305px !important;
  }
}
@container (max-width:1120px) {
  :where(.lfc-html) .topbar {
    grid-template-columns: 1fr !important;
  }
  :where(.lfc-html) .controls {
    grid-template-columns: 1fr 1fr !important;
  }
  :where(.lfc-html) .actions {
    max-width: none !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
  }
}
:where(.lfc-html) .topbar {
  grid-template-columns: minmax(300px,350px) minmax(360px,1fr) max-content;
  gap: 6px;
  padding: 8px;
}
:where(.lfc-html) .controls {
  grid-template-columns: minmax(112px,.9fr) minmax(128px,1fr) repeat(4,minmax(74px,.72fr)) minmax(138px,1fr);
  gap: 5px;
  min-width: 0;
}
:where(.lfc-html) .controls select, :where(.lfc-html) .controls input {
  padding: 6px 7px;
  font-size: 11px;
  border-radius: 9px;
  min-width: 0;
}
:where(.lfc-html) .actions {
  gap: 4px;
}
:where(.lfc-html) .actions button {
  padding: 7px 7px;
  font-size: 10.5px;
  border-radius: 9px;
  white-space: nowrap;
}
@container (max-width:1280px) {
  :where(.lfc-html) .topbar {
    grid-template-columns: minmax(260px,320px) minmax(320px,1fr) max-content;
  }
  :where(.lfc-html) .controls {
    grid-template-columns: minmax(100px,.85fr) minmax(116px,.95fr) repeat(4,minmax(68px,.68fr)) minmax(120px,.9fr);
    gap: 4px;
  }
  :where(.lfc-html) .controls select, :where(.lfc-html) .controls input {
    padding: 5px 6px;
    font-size: 10.5px;
  }
  :where(.lfc-html) .actions button {
    padding: 6px 6px;
    font-size: 10px;
  }
}
:where(.lfc-html) .help-btn {
  background: #fff7ed !important;
  color: #9a3412 !important;
  border: 1px solid #fed7aa !important;
}
:where(.lfc-html) .help-panel {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: flex-start;
  justify-content: flex-end;
  background: rgba(15,23,42,.20);
  backdrop-filter: blur(5px);
  padding: 92px 18px 18px;
}
:where(.lfc-html) .help-panel.show {
  display: flex;
}
:where(.lfc-html) .help-card {
  width: min(720px,calc(100cqw - 36px));
  max-height: calc(100cqh - 118px);
  overflow: auto;
  background: rgba(255,255,255,.98);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 0;
  color: #0f172a;
}
:where(.lfc-html) .help-head {
  position: sticky;
  top: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  font-size: 16px;
  background: linear-gradient(180deg,#ffffff,#f8fafc);
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 16px;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 8px 18px rgba(15,23,42,.06);
}
:where(.lfc-html) .help-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #fef3c7;
  margin-right: 8px;
  box-shadow: inset 0 0 0 1px #fde68a;
}
:where(.lfc-html) .help-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  padding: 14px 16px 0;
}
:where(.lfc-html) .help-box {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
  padding: 11px 12px;
  min-height: 92px;
}
:where(.lfc-html) .help-box b {
  font-size: 13px;
}
:where(.lfc-html) .help-box p {
  margin: 5px 0 0;
  color: #475569;
  font-size: 12px;
  line-height: 1.42;
}
:where(.lfc-html) .swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 7px;
  margin-right: 7px;
  vertical-align: -4px;
  border: 2px solid #cbd5e1;
}
:where(.lfc-html) .company-swatch {
  background: linear-gradient(135deg,#0f172a,#1e3a8a);
  border-color: #1d4ed8;
}
:where(.lfc-html) .org-swatch {
  background: #fff;
  border-color: #d8e0ec;
}
:where(.lfc-html) .quota-swatch {
  background: #dbeafe;
  border-color: #93c5fd;
}
:where(.lfc-html) .actual-swatch {
  background: #eef2f7;
  border-color: #cbd5e1;
}
:where(.lfc-html) .missing-swatch {
  background: #ffedd5;
  border-color: #fdba74;
}
:where(.lfc-html) .select-swatch {
  background: #fff;
  border-color: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245,158,11,.35);
}
:where(.lfc-html) .help-use {
  margin: 12px 16px 16px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  padding: 12px 13px;
  color: #334155;
  font-size: 12.5px;
  line-height: 1.55;
}
:where(.lfc-html) .drawer.expanded {
  width: min(980px,calc(100cqw - 36px));
  max-height: 82cqh;
}
:where(.lfc-html) .drawer-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}
:where(.lfc-html) .drawer-wide {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
:where(.lfc-html) .drawer.expanded table {
  font-size: 13px;
}
:where(.lfc-html) .drawer.expanded th {
  width: 230px;
}
:where(.lfc-html) .drawer.expanded .employee-table {
  font-size: 12.5px;
}
@container (max-width:760px) {
  :where(.lfc-html) .help-grid {
    grid-template-columns: 1fr;
  }
  :where(.lfc-html) .help-panel {
    padding-top: 80px;
  }
  :where(.lfc-html) .drawer.expanded {
    width: calc(100cqw - 24px);
    right: 12px;
    bottom: 12px;
  }
}
:where(.lfc-html) .help-panel .help-card {
  padding: 0 !important;
  background: #fff !important;
  overflow: auto !important;
}
:where(.lfc-html) .help-panel .help-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 99999 !important;
  background: linear-gradient(180deg,#fff,#f8fafc) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  margin: 0 !important;
  padding: 14px 16px !important;
  border-radius: 24px 24px 0 0 !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.08) !important;
}
:where(.lfc-html) .help-panel .help-grid {
  padding: 14px 16px 0 !important;
}
:where(.lfc-html) .help-panel .help-use {
  margin: 12px 16px 16px !important;
}
:where(.lfc-html) .help-btn {
  position: fixed !important;
  left: 16px !important;
  bottom: 16px !important;
  z-index: 86 !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
  border: 1px solid #fed7aa !important;
  box-shadow: 0 14px 34px rgba(154,52,18,.22),0 4px 12px rgba(15,23,42,.10) !important;
}
:where(.lfc-html) .help-panel {
  align-items: flex-end !important;
  justify-content: flex-start !important;
  padding: 18px 18px 74px !important;
}
:where(.lfc-html) #levelFilter {
  font-weight: 800 !important;
  background-image: linear-gradient(180deg,#fff,#f8fafc) !important;
}
:where(.lfc-html) #levelFilter option {
  font-weight: 700;
}
@container (max-width:720px) {
  :where(.lfc-html) .help-btn {
    left: 10px !important;
    bottom: 10px !important;
    padding: 9px 12px !important;
  }
  :where(.lfc-html) .help-panel {
    padding: 12px 12px 64px !important;
  }
}
:where(.lfc-html) .help-btn {
  position: fixed !important;
  right: 18px !important;
  left: auto !important;
  bottom: 18px !important;
  z-index: 95 !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 46px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 22px !important;
  line-height: 1 !important;
}
:where(.lfc-html) .help-panel {
  align-items: flex-end !important;
  justify-content: flex-end !important;
  padding: 18px 18px 76px !important;
}
@container (max-width:720px) {
  :where(.lfc-html) .help-btn {
    right: 10px !important;
    left: auto !important;
    bottom: 10px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 0 !important;
  }
  :where(.lfc-html) .help-panel {
    padding: 12px 12px 66px !important;
  }
}
:where(.lfc-html) .detail-tabs {
  margin-top: 10px;
  border: 1px solid #d8e3f8;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}
:where(.lfc-html) .detail-tab-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px;
  background: linear-gradient(180deg,#fff 0%,#f8fbff 100%);
  border-bottom: 1px solid #e2e8f0;
  overflow: auto;
}
:where(.lfc-html) .detail-tab-btn {
  min-height: 38px;
  border: 1px solid #dbe7fb;
  background: #f8fafc;
  color: #334155;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
  transition: background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease,transform .15s ease;
}
:where(.lfc-html) .detail-tab-btn:hover {
  background: #eef6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
  transform: translateY(-1px);
}
:where(.lfc-html) .detail-tab-btn.active {
  background: linear-gradient(135deg,#1d4ed8,#2563eb);
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 8px 18px rgba(37,99,235,.25);
}
:where(.lfc-html) .detail-tab-icon {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0edff;
  color: #1d4ed8;
  font-size: 13px;
  flex: 0 0 auto;
}
:where(.lfc-html) .detail-tab-btn.active .detail-tab-icon {
  background: rgba(255,255,255,.2);
  color: #fff;
}
:where(.lfc-html) .detail-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
:where(.lfc-html) .detail-tab-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 11px;
  font-weight: 900;
}
:where(.lfc-html) .detail-tab-btn.active .detail-tab-badge {
  background: #fff;
  color: #1d4ed8;
}
:where(.lfc-html) .detail-tab-body {
  display: none;
  padding: 12px;
  background: #fff;
}
:where(.lfc-html) .detail-tab-body.active {
  display: block;
}
:where(.lfc-html) .work-people-layout {
  display: grid;
  grid-template-columns: minmax(210px,.42fr) minmax(0,1fr);
  gap: 12px;
  align-items: start;
}
:where(.lfc-html) .work-people-list {
  position: sticky;
  top: 8px;
  max-height: 440px;
  overflow: auto;
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 6px 16px rgba(15,23,42,.04);
}
:where(.lfc-html) .work-people-title {
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
:where(.lfc-html) .work-people-title span {
  display: inline-flex;
  min-width: 24px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 900;
}
:where(.lfc-html) .work-person-btn {
  width: 100%;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 11px;
  padding: 9px 10px;
  margin: 0 0 7px;
  text-align: left;
  cursor: pointer;
  transition: .15s ease;
  display: block;
}
:where(.lfc-html) .work-person-btn:hover {
  border-color: #93c5fd;
  background: #eff6ff;
  transform: translateY(-1px);
}
:where(.lfc-html) .work-person-btn.active {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: 0 0 0 2px rgba(37,99,235,.14);
}
:where(.lfc-html) .work-person-main {
  display: block;
  font-weight: 900;
  color: #0f172a;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(.lfc-html) .work-person-meta {
  display: block;
  color: #64748b;
  font-size: 11px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(.lfc-html) .work-people-detail {
  min-width: 0;
}
:where(.lfc-html) .work-person-detail {
  display: none;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
:where(.lfc-html) .work-person-detail.active {
  display: block;
}
:where(.lfc-html) .work-detail-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}
:where(.lfc-html) .work-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg,#2563eb,#0ea5e9);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(37,99,235,.22);
  flex: 0 0 auto;
}
:where(.lfc-html) .work-title {
  font-size: 14px;
  font-weight: 950;
  color: #0f172a;
  line-height: 1.25;
}
:where(.lfc-html) .work-subtitle {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
:where(.lfc-html) .employee-timeline {
  position: relative;
  display: grid;
  gap: 10px;
  margin: 8px 0 10px;
  padding-left: 22px;
}
:where(.lfc-html) .employee-timeline:before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(#2563eb,#22c55e,#f59e0b,#ef4444);
}
:where(.lfc-html) .timeline-step {
  position: relative;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 5px 14px rgba(15,23,42,.045);
}
:where(.lfc-html) .timeline-step:before {
  content: '';
  position: absolute;
  left: -20px;
  top: 17px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  border: 3px solid #2563eb;
  box-shadow: 0 0 0 3px #eff6ff;
}
:where(.lfc-html) .timeline-step.current:before {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px #dcfce7;
}
:where(.lfc-html) .timeline-step.contract:before {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px #e0f2fe;
}
:where(.lfc-html) .timeline-step.transfer:before {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px #fef3c7;
}
:where(.lfc-html) .timeline-step.leave:before {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px #fee2e2;
}
:where(.lfc-html) .timeline-step.note:before {
  border-color: #64748b;
  box-shadow: 0 0 0 3px #f1f5f9;
}
:where(.lfc-html) .timeline-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
:where(.lfc-html) .timeline-label {
  font-size: 12px;
  font-weight: 950;
  color: #0f172a;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 6px;
}
:where(.lfc-html) .timeline-date {
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 3px 8px;
}
:where(.lfc-html) .timeline-desc {
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
  word-break: break-word;
}
:where(.lfc-html) .timeline-meta {
  margin-top: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
:where(.lfc-html) .timeline-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 800;
}
:where(.lfc-html) .work-summary-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 8px;
  margin-top: 10px;
  border-top: 1px dashed #e2e8f0;
  padding-top: 10px;
}
:where(.lfc-html) .work-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  min-width: 0;
}
:where(.lfc-html) .work-item span {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 4px;
  font-weight: 700;
}
:where(.lfc-html) .work-item b {
  display: block;
  font-size: 12px;
  color: #111827;
  word-break: break-word;
}
:where(.lfc-html) .work-item.full {
  grid-column: 1/-1;
}
@container (max-width:900px) {
  :where(.lfc-html) .work-people-layout {
    grid-template-columns: 1fr;
  }
  :where(.lfc-html) .work-people-list {
    position: relative;
    top: auto;
    max-height: 220px;
  }
  :where(.lfc-html) .work-summary-grid {
    grid-template-columns: 1fr;
  }
  :where(.lfc-html) .timeline-top {
    display: block;
  }
  :where(.lfc-html) .timeline-date {
    display: inline-flex;
    margin-top: 6px;
  }
}
:where(.lfc-html) .org-card.employee {
  height: 168px;
  border-color: #bfdbfe;
  background: #f8fbff;
}
:where(.lfc-html) .org-card.employee .title {
  font-size: 13px;
  -webkit-line-clamp: 2;
}
:where(.lfc-html) .org-card.employee .metrics {
  grid-template-columns: repeat(2,1fr);
}
:where(.lfc-html) .org-card.employee.warn {
  border-color: #fdba74;
  background: #fff7ed;
}
:where(.lfc-html) .org-card.employee.key {
  border-color: #86efac;
  background: #f0fdf4;
}
:where(.lfc-html) .org-card .metric.actual b.ok {
  color: #15803d;
}
:where(.lfc-html) .org-card .metric.hire b.warn {
  color: #c2410c;
}
:where(.lfc-html) .emp-flag {
  font-size: 9px;
  font-weight: 900;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 1px 5px;
  background: #fff;
  margin-right: 3px;
  color: #334155;
}
:where(.lfc-html) .emp-flag.warn {
  border-color: #fb923c;
  color: #c2410c;
  background: #ffedd5;
}
:where(.lfc-html) .emp-flag.key {
  border-color: #22c55e;
  color: #15803d;
  background: #dcfce7;
}
:where(.lfc-html) .emp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
:where(.lfc-html) .emp-avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #bfdbfe;
  flex-shrink: 0;
}
:where(.lfc-html) .emp-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #bfdbfe;
  flex-shrink: 0;
}
:where(.lfc-html) .emp-name-box {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
:where(.lfc-html) .emp-flags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 2px 0;
}
:where(.lfc-html) .rank-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
  text-transform: none;
}
:where(.lfc-html) .rank-badge.unconfirmed {
  color: #64748b;
  background: #f8fafc;
  border-color: #e2e8f0;
}
:where(.lfc-html) .org-card.vacancy {
  border: 2px dashed #93c5fd !important;
  background: #f8fbff !important;
}
:where(.lfc-html) .org-card.vacancy .title {
  color: #1d4ed8;
}
:where(.lfc-html) .org-card.more-employees {
  border: 2px dashed #94a3b8 !important;
  background: #f8fafc !important;
  cursor: pointer;
}
:where(.lfc-html) .org-card.more-employees:hover {
  border-color: #2563eb !important;
  background: #eff6ff !important;
}
:where(.lfc-html) .org-card.more-employees .title {
  color: #2563eb;
}
:where(.lfc-html) .help-btn {
  position: fixed !important;
  left: 16px !important;
  bottom: 16px !important;
  z-index: 86 !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
  border: 1px solid #fed7aa !important;
  box-shadow: 0 14px 34px rgba(154,52,18,.22),0 4px 12px rgba(15,23,42,.10) !important;
}
:where(.lfc-html) .help-panel {
  align-items: flex-end !important;
  justify-content: flex-start !important;
  padding: 18px 18px 74px !important;
}
:where(.lfc-html) #levelFilter {
  font-weight: 800 !important;
  background-image: linear-gradient(180deg,#fff,#f8fafc) !important;
}
:where(.lfc-html) #levelFilter option {
  font-weight: 700;
}
@container (max-width:720px) {
  :where(.lfc-html) .help-btn {
    left: 10px !important;
    bottom: 10px !important;
    padding: 9px 12px !important;
  }
  :where(.lfc-html) .help-panel {
    padding: 12px 12px 64px !important;
  }
}
:where(.lfc-html) .drawer .employee-section {
  margin-top: 12px;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}
:where(.lfc-html) .drawer .employee-section h4 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}
:where(.lfc-html) .drawer .employee-section .emp-count {
  font-weight: 900;
  color: #0f766e;
}
:where(.lfc-html) .drawer .detail-muted {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 10px;
}
:where(.lfc-html) .employee-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}
:where(.lfc-html) .employee-card {
  border: 1px solid #dbeafe;
  background: #f8fbff;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.35;
  box-shadow: 0 6px 18px rgba(15,23,42,.05);
  overflow: hidden;
}
:where(.lfc-html) .employee-card.warn {
  border-color: #fdba74;
  background: #fff7ed;
}
:where(.lfc-html) .employee-card.key {
  border-color: #86efac;
  background: #f0fdf4;
}
:where(.lfc-html) .employee-card summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
}
:where(.lfc-html) .employee-card summary::-webkit-details-marker {
  display: none;
}
:where(.lfc-html) .emp-arrow {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #0f172a;
  flex: 0 0 auto;
  transition: .16s ease;
}
:where(.lfc-html) .employee-card[open] .emp-arrow {
  transform: rotate(90deg);
  background: #eff6ff;
  border-color: #93c5fd;
}
:where(.lfc-html) .employee-compact {
  min-width: 0;
  flex: 1;
}
:where(.lfc-html) .employee-line1 {
  font-weight: 900;
  color: #0f172a;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(.lfc-html) .employee-line2 {
  color: #475569;
  font-size: 11px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(.lfc-html) .employee-line3 {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 5px;
}
:where(.lfc-html) .employee-status {
  font-weight: 900;
  font-size: 11px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 2px 7px;
  background: #fff;
  white-space: nowrap;
  align-self: flex-start;
}
:where(.lfc-html) .employee-card.warn .employee-status {
  border-color: #fb923c;
  color: #c2410c;
  background: #ffedd5;
}
:where(.lfc-html) .employee-card.key .employee-status {
  border-color: #22c55e;
  color: #15803d;
  background: #dcfce7;
}
:where(.lfc-html) .employee-details {
  border-top: 1px solid rgba(203,213,225,.72);
  padding: 8px 10px 10px;
  background: rgba(255,255,255,.56);
}
:where(.lfc-html) .employee-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 5px 8px;
}
:where(.lfc-html) .employee-info {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(203,213,225,.75);
  border-radius: 8px;
  padding: 5px 7px;
  min-width: 0;
}
:where(.lfc-html) .employee-info span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #64748b;
  text-transform: none;
}
:where(.lfc-html) .employee-info b {
  display: block;
  font-size: 11px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:where(.lfc-html) .employee-wide {
  grid-column: 1/-1;
}
:where(.lfc-html) .emp-badge {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 1px 6px;
  background: white;
  font-size: 10px;
  font-weight: 800;
  color: #334155;
}
:where(.lfc-html) .emp-badge.warn {
  border-color: #fb923c;
  color: #c2410c;
  background: #ffedd5;
}
:where(.lfc-html) .emp-badge.key {
  border-color: #22c55e;
  color: #15803d;
  background: #dcfce7;
}
:where(.lfc-html) .node-actual {
  font-weight: 900;
  color: #0f766e;
}
@container (max-width:820px) {
  :where(.lfc-html) .employee-grid {
    grid-template-columns: 1fr;
  }
}
:where(.lfc-html) .help-btn {
  position: fixed !important;
  left: 16px !important;
  bottom: 16px !important;
  z-index: 86 !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
  border: 1px solid #fed7aa !important;
  box-shadow: 0 14px 34px rgba(154,52,18,.22),0 4px 12px rgba(15,23,42,.10) !important;
}
:where(.lfc-html) .help-panel {
  align-items: flex-end !important;
  justify-content: flex-start !important;
  padding: 18px 18px 74px !important;
}
:where(.lfc-html) #levelFilter {
  font-weight: 800 !important;
  background-image: linear-gradient(180deg,#fff,#f8fafc) !important;
}
:where(.lfc-html) #levelFilter option {
  font-weight: 700;
}
@container (max-width:720px) {
  :where(.lfc-html) .help-btn {
    left: 10px !important;
    bottom: 10px !important;
    padding: 9px 12px !important;
  }
  :where(.lfc-html) .help-panel {
    padding: 12px 12px 64px !important;
  }
}
:where(.lfc-html) .drawer .drawer-head {
  position: sticky;
  top: -14px;
  z-index: 80;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(12px);
  padding: 14px 0 10px;
  margin: -14px 0 10px;
  border-bottom: 1px solid #e2e8f0;
}
:where(.lfc-html) .drawer .drawer-close {
  position: sticky;
  top: 0;
  z-index: 81;
  flex: 0 0 auto;
}
:where(.lfc-html) .help-btn {
  position: fixed !important;
  left: 16px !important;
  bottom: 16px !important;
  z-index: 86 !important;
  border-radius: 999px !important;
  padding: 10px 14px !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
  border: 1px solid #fed7aa !important;
  box-shadow: 0 14px 34px rgba(154,52,18,.22),0 4px 12px rgba(15,23,42,.10) !important;
}
:where(.lfc-html) .help-panel {
  align-items: flex-end !important;
  justify-content: flex-start !important;
  padding: 18px 18px 74px !important;
}
:where(.lfc-html) #levelFilter {
  font-weight: 800 !important;
  background-image: linear-gradient(180deg,#fff,#f8fafc) !important;
}
:where(.lfc-html) #levelFilter option {
  font-weight: 700;
}
@container (max-width:720px) {
  :where(.lfc-html) .help-btn {
    left: 10px !important;
    bottom: 10px !important;
    padding: 9px 12px !important;
  }
  :where(.lfc-html) .help-panel {
    padding: 12px 12px 64px !important;
  }
}
:where(.lfc-html) .help-card {
  width: min(860px,calc(100cqw - 36px)) !important;
}
:where(.lfc-html) .help-section-title {
  grid-column: 1/-1;
  margin: 8px 0 2px;
  font-size: 12px;
  font-weight: 950;
  color: #0f172a;
  letter-spacing: .01em;
  text-transform: uppercase;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 8px 10px;
}
:where(.lfc-html) .help-box {
  min-height: 88px !important;
}
:where(.lfc-html) .help-box p small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  line-height: 1.35;
}
:where(.lfc-html) .group-red-swatch {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
}
:where(.lfc-html) .group-orange-swatch {
  background: #f97316 !important;
  border-color: #ea580c !important;
}
:where(.lfc-html) .group-blue-swatch {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
}
:where(.lfc-html) .group-purple-swatch {
  background: #7c3aed !important;
  border-color: #6d28d9 !important;
}
:where(.lfc-html) .group-green-swatch {
  background: #16a34a !important;
  border-color: #15803d !important;
}
:where(.lfc-html) .group-gray-swatch {
  background: #64748b !important;
  border-color: #475569 !important;
}
:where(.lfc-html) .group-company-swatch {
  background: linear-gradient(135deg,#0f172a,#1e3a8a) !important;
  border-color: #1d4ed8 !important;
}
:where(.lfc-html) .help-note-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #475569;
  font-size: 12px;
  line-height: 1.48;
}
:where(.lfc-html) .help-note-list li {
  margin: 3px 0;
}
:where(.lfc-html) .help-use b {
  color: #0f172a;
}
div:where(.lfc-html), div:where(.lfc-body) {
  height: 100%;
  min-height: 100%;
}
div:where(.lfc-body) {
  overflow: hidden;
}
:where(.lfc-html) #chartWrap, :where(.lfc-html) #treeWrap, :where(.lfc-html) #orgchart, :where(.lfc-html) #tree, :where(.lfc-html) #chart, :where(.lfc-html) [data-boc], :where(.lfc-html) .boc-chart, :where(.lfc-html) .chart-shell, :where(.lfc-html) .main, :where(.lfc-html) .content {
  min-height: 0;
}
:where(.lfc-html) #btnToggleSearchTree {
  background: #edf2ff !important;
  color: #1d4ed8 !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(37,99,235,.08) !important;
}
div:where(.lfc-body).tree-search-collapsed .controls {
  display: none !important;
}
div:where(.lfc-body).tree-search-collapsed .dashboard {
  display: none !important;
}
div:where(.lfc-body).tree-search-collapsed .topbar {
  grid-template-columns: minmax(0,1fr) auto !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  min-height: 62px !important;
  align-items: center !important;
  overflow: visible !important;
}
div:where(.lfc-body).tree-search-collapsed .brand {
  min-width: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  overflow: hidden !important;
}
div:where(.lfc-body).tree-search-collapsed .brand p {
  display: none !important;
}
div:where(.lfc-body).tree-search-collapsed .logo {
  width: 72px !important;
  height: 34px !important;
  flex: 0 0 auto !important;
}
div:where(.lfc-body).tree-search-collapsed .logo img {
  max-width: 66px !important;
  max-height: 30px !important;
}
div:where(.lfc-body).tree-search-collapsed .brand h1 {
  font-size: 14px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
  max-width: 100% !important;
}
div:where(.lfc-body).tree-search-collapsed #tree {
  padding-top: 86px !important;
  height: 100cqh !important;
}
div:where(.lfc-body).tree-search-collapsed .actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 0 !important;
  max-width: none !important;
  min-width: 132px !important;
  overflow: visible !important;
}
div:where(.lfc-body).tree-search-collapsed .actions button:not(#btnToggleSearchTree) {
  display: none !important;
}
div:where(.lfc-body).tree-search-collapsed #btnToggleSearchTree {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 126px !important;
  min-height: 38px !important;
  padding: 9px 14px !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}
@container (max-width:820px) {
  div:where(.lfc-body).tree-search-collapsed .topbar {
    grid-template-columns: 1fr !important;
    min-height: 96px !important;
  }
  div:where(.lfc-body).tree-search-collapsed .actions {
    justify-content: flex-start !important;
    min-width: 0 !important;
  }
  div:where(.lfc-body).tree-search-collapsed #tree {
    padding-top: 118px !important;
  }
}
@container (max-width:1120px) {
  :where(.lfc-html) .dashboard {
    position: fixed !important;
    z-index: 36 !important;
    top: 248px !important;
    left: 10px !important;
    right: 10px !important;
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 4px !important;
  }
  :where(.lfc-html) .kpi {
    padding: 4px 6px !important;
    border-radius: 9px !important;
  }
  :where(.lfc-html) .kpi .label {
    font-size: 8.5px !important;
  }
  :where(.lfc-html) .kpi .value {
    font-size: 10.5px !important;
  }
  :where(.lfc-html) #tree {
    padding-top: 344px !important;
  }
  :where(.lfc-html) .topbar {
    z-index: 35 !important;
  }
}
@container (max-width:760px) {
  :where(.lfc-html) .dashboard {
    top: 300px !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
  :where(.lfc-html) #tree {
    padding-top: 430px !important;
  }
}
div:where(.lfc-body).tree-search-collapsed .dashboard {
  display: none !important;
}
@container (max-width:1120px) {
  :where(.lfc-html) .topbar {
    z-index: 90 !important;
  }
  :where(.lfc-html) .topbar .actions, :where(.lfc-html) .topbar .controls, :where(.lfc-html) .topbar button, :where(.lfc-html) .topbar select, :where(.lfc-html) .topbar input {
    position: relative !important;
    z-index: 95 !important;
  }
  :where(.lfc-html) .dashboard {
    top: 288px !important;
    z-index: 30 !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 4px !important;
    max-height: 96px !important;
    overflow: hidden !important;
  }
  :where(.lfc-html) #tree {
    padding-top: 394px !important;
  }
}
@container (max-width:760px) {
  :where(.lfc-html) .dashboard {
    top: 336px !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    max-height: 160px !important;
  }
  :where(.lfc-html) #tree {
    padding-top: 508px !important;
  }
}
div:where(.lfc-body).tree-search-collapsed .dashboard {
  display: none !important;
}
div:where(.lfc-body).tree-search-collapsed #tree {
  padding-top: 86px !important;
}
:where(.lfc-html) #drawer.drawer {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  z-index: 2147482600 !important;
}
:where(.lfc-html) #drawer.drawer.show .drawer-head {
  position: sticky !important;
  top: -14px !important;
  z-index: 2147482601 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: -14px -14px 6px -14px !important;
  padding: 8px 14px 8px 14px !important;
  background: linear-gradient(180deg,rgba(255,255,255,.99),rgba(248,250,252,.98)) !important;
  border-bottom: 1px solid #dbe3ef !important;
  box-shadow: 0 6px 14px rgba(15,23,42,.07) !important;
  backdrop-filter: blur(12px) !important;
}
:where(.lfc-html) #drawer.drawer.show .drawer-head h3 {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  padding-right: 8px !important;
}
:where(.lfc-html) #drawer.drawer.show .drawer-actions {
  position: sticky !important;
  top: 0 !important;
  z-index: 2147482602 !important;
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: rgba(255,255,255,.96) !important;
  border-radius: 12px !important;
}
:where(.lfc-html) #drawer.drawer.show .drawer-wide, :where(.lfc-html) #drawer.drawer.show .drawer-close {
  position: relative !important;
  z-index: 2147482603 !important;
  box-shadow: 0 3px 10px rgba(15,23,42,.10) !important;
}
:where(.lfc-html) #drawer.drawer.expanded .drawer-head {
  margin: -14px -14px 12px -14px !important;
}
:where(.lfc-html) #helpPanel.help-panel {
  z-index: 2147482600 !important;
}
:where(.lfc-html) #helpPanel .help-card {
  position: relative !important;
}
:where(.lfc-html) #helpPanel .help-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 2147482601 !important;
  background: linear-gradient(180deg,#ffffff,#f8fafc) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 12px 0 10px 0 !important;
  margin: 0 0 12px 0 !important;
  box-shadow: 0 8px 18px rgba(15,23,42,.08) !important;
}
:where(.lfc-html) #helpPanel .help-head .drawer-close {
  position: sticky !important;
  top: 0 !important;
  z-index: 2147482602 !important;
  background: #f8fafc !important;
  opacity: 1 !important;
}
:where(.lfc-html) [data-boc-right] {
  position: relative !important;
}
:where(.lfc-html) #btnHelp.help-btn.boc-right-docked {
  position: absolute !important;
  left: 8px !important;
  right: auto !important;
  bottom: 8px !important;
  top: auto !important;
  z-index: 999999 !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 22px !important;
  line-height: 1 !important;
  background: #fff7ed !important;
  color: #9a3412 !important;
  border: 1px solid #fed7aa !important;
  box-shadow: 0 14px 34px rgba(154,52,18,.22),0 4px 12px rgba(15,23,42,.10) !important;
}
:where(.lfc-html) #btnHelp.help-btn:not(.boc-right-docked) {
  position: fixed !important;
  right: 18px !important;
  left: auto !important;
  bottom: 18px !important;
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  display: inline-grid !important;
  place-items: center !important;
  font-size: 22px !important;
  z-index: 95 !important;
}
.app-load-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  height: 100%;
  padding: 40px 24px;
  text-align: center;
  background-color: #ffffff;
  color: #0f172a;
  box-sizing: border-box;
}
.app-load-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: app-spin 0.8s linear infinite;
}
@keyframes app-spin {
  to {
    transform: rotate(360deg);
  }
}
.app-load-title {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.01em;
}
.app-load-desc {
  margin-top: 8px;
  max-width: 420px;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}
.app-load-error-icon {
  font-size: 36px;
  line-height: 1;
}
.app-load-status.error .app-load-title {
  color: #b91c1c;
}
.app-load-retry-btn {
  margin-top: 20px;
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: #2563eb;
  border: 1px solid #1d4ed8;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
  transition: all 0.15s ease-in-out;
}
.app-load-retry-btn:hover {
  background-color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}
.app-load-retry-btn:active {
  transform: translateY(0);
}
@media print {
  html.print-frame-lfd .appbar, html.print-frame-lfd #comboRightSide, html.print-frame-lfd #comboSplitDragHandle, html.print-frame-lfd .float-restore, html.print-frame-lfd #paneDetail > .pane-head, html.print-frame-lfd #paneTree, html.print-frame-lfd #paneDetail .split-drag-handle, html.print-frame-lfd #paneDetail #toolbarToggleBtn, html.print-frame-lfd #paneDetail #uatLegendBtn, html.print-frame-lfd #paneDetail .uat-legend, html.print-frame-lfd #paneDetail #comboDetailPopupClose, html.print-frame-lfd #paneDetail .mini-profile-tooltip, html.print-frame-lfd #paneDetail .company-combo-popup {
    display: none !important;
  }
  html.print-frame-lfd, html.print-frame-lfd body {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }
  html.print-frame-lfd .workspace {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  html.print-frame-lfd #comboLeftSide, html.print-frame-lfd #paneDetail {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: none !important;
    overflow: visible !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  html.print-frame-lfd #paneDetail .frame-wrap, html.print-frame-lfd .frame-wrap:not(:where(.legacy-frame) *) {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    flex: none !important;
    overflow: visible !important;
    background: #fff !important;
  }
  html.print-frame-lfd #paneDetail div:where(.legacy-frame).legacy-frame, html.print-frame-lfd #paneDetail [data-frame='lfd'] {
    position: static !important;
    inset: auto !important;
    display: block !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    contain: none !important;
    container-type: normal !important;
  }
  html.print-frame-lfd :where(.lfd-html), html.print-frame-lfd div:where(.lfd-body) {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html.print-frame-lfd :where(.lfd-html) #splitLayout, html.print-frame-lfd div:where(.lfd-body) .split-layout, html.print-frame-lfd div:where(.lfd-body).combo-split-detail-popup .split-layout, html.print-frame-lfd div:where(.lfd-body).combo-split-detail-popup #splitLayout, html.print-frame-lfd div:where(.lfd-body).tools-collapsed .split-layout, html.print-frame-lfd div:where(.lfd-body).tools-collapsed #splitLayout {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  html.print-frame-lfd :where(.lfd-html) #orgTreePane, html.print-frame-lfd :where(.lfd-html) .tree-pane, html.print-frame-lfd div:where(.lfd-body).combo-split-detail-popup .tree-pane, html.print-frame-lfd div:where(.lfd-body).combo-split-detail-popup #orgTreePane, html.print-frame-lfd div:where(.lfd-body).tools-collapsed #orgTreePane, html.print-frame-lfd div:where(.lfd-body).tools-collapsed .tree-pane {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    border: 0 !important;
    padding: 8px 0 !important;
    margin: 0 !important;
  }
  html.print-frame-lfd :where(.lfd-html) #treeContent, html.print-frame-lfd :where(.lfd-html) .tree-content, html.print-frame-lfd div:where(.lfd-body).combo-split-detail-popup #treeContent, html.print-frame-lfd div:where(.lfd-body).combo-split-detail-popup .tree-content {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }
  html.print-frame-lfd :where(.lfd-html) #detailPane, html.print-frame-lfd :where(.lfd-html) .detail-pane, html.print-frame-lfd div:where(.lfd-body).combo-split-detail-popup .detail-pane, html.print-frame-lfd div:where(.lfd-body).tools-collapsed #detailPane, html.print-frame-lfd div:where(.lfd-body).tools-collapsed .detail-pane {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    background: #fff !important;
    padding: 16px !important;
    margin-top: 24px !important;
    margin-bottom: 24px !important;
  }
  html.print-frame-lfd div:where(.lfd-body).combo-split-detail-popup.combo-detail-popup-closed .detail-pane {
    display: none !important;
  }
  html.print-frame-lfd details.org-node {
    break-inside: auto;
  }
  html.print-frame-lfd details.org-node > summary {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  html.print-frame-lfd .position-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  html.print-frame-lfd .employee-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  html.print-frame-lfd .detail-table, html.print-frame-lfd .rows-table {
    break-inside: auto;
  }
  html.print-frame-lfd tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  html.print-frame-lfd .detail-stats {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}
#root {
  display: contents;
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-blur {
  syntax: "*";
  inherits: false;
}
@property --tw-brightness {
  syntax: "*";
  inherits: false;
}
@property --tw-contrast {
  syntax: "*";
  inherits: false;
}
@property --tw-grayscale {
  syntax: "*";
  inherits: false;
}
@property --tw-hue-rotate {
  syntax: "*";
  inherits: false;
}
@property --tw-invert {
  syntax: "*";
  inherits: false;
}
@property --tw-opacity {
  syntax: "*";
  inherits: false;
}
@property --tw-saturate {
  syntax: "*";
  inherits: false;
}
@property --tw-sepia {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false;
}
@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}
@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}
/* Only the selected detail surface changes; COMBO shell and reference stay intact. */
.combo-detail-modal {
  --brand: #0f4c81;
  --muted: #52627b;
  box-sizing: border-box;
  width: min(1120px, calc(100vw - 48px));
  max-width: none;
  height: auto;
  max-height: calc(100dvh - 48px);
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d7e1ee;
  border-radius: 18px;
  background: #fff;
  color: #0f172a;
  font:
    14px/1.5 Arial,
    'Helvetica Neue',
    sans-serif;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}
.combo-detail-modal:not([open]) {
  display: none !important;
}
.combo-detail-modal[open] {
  display: flex;
  flex-direction: column;
}
.combo-detail-modal::backdrop {
  background: rgba(15, 23, 42, 0.48);
}
.combo-detail-modal .combo-detail-modal-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid #dce5f0;
  background: #f7faff;
  box-shadow: none;
}
.combo-detail-modal-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
}
.combo-detail-modal .combo-detail-modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  cursor: pointer;
}
.combo-detail-modal-close:hover {
  background: #eaf2ff;
}
.combo-detail-modal-close:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}
.combo-detail-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 24px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.combo-detail-modal .detail-kicker {
  display: none;
}
.combo-detail-modal .detail-title {
  font-size: 24px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.combo-detail-modal .detail-meta {
  font-size: 13px;
  margin-top: 8px;
}
.combo-detail-modal .detail-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-block: 20px;
}
.combo-detail-modal .detail-stat {
  padding: 14px;
}
.combo-detail-modal .detail-stat span {
  font-size: 12px;
}
.combo-detail-modal .detail-stat b {
  font-size: 19px;
  overflow-wrap: anywhere;
}
.combo-detail-modal .detail-section {
  margin-top: 24px;
}
.combo-detail-modal .detail-section h3 {
  font-size: 15px;
}
.combo-detail-modal .detail-table {
  font-size: 13px;
}
.combo-detail-modal .detail-table td,
.combo-detail-modal .detail-table th {
  padding: 10px 12px;
  overflow-wrap: anywhere;
}
.combo-detail-modal .employee-summary {
  gap: 12px;
  padding: 12px;
}
.combo-detail-modal .employee-line1 {
  font-size: 14px;
}
.combo-detail-modal .employee-line2,
.combo-detail-modal .employee-line3 {
  font-size: 12px;
}
.combo-detail-modal .employee-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.combo-detail-modal .employee-info {
  padding: 10px 12px;
  min-width: 0;
}
.combo-detail-modal .employee-info span {
  font-size: 12px;
}
.combo-detail-modal .employee-info b {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.combo-detail-modal .employee-wide {
  grid-column: 1 / -1;
}
.combo-detail-modal .detail-tab-head {
  flex-wrap: wrap;
  gap: 8px;
}
.combo-detail-modal .detail-tab-btn {
  font-size: 13px;
  min-height: 40px;
}
.combo-detail-modal .work-people-layout {
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.5fr);
}
.combo-modal-layout.split-layout {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
}
.combo-modal-layout .tree-pane {
  min-height: 0 !important;
}
.employee-photo {
  display: inline-grid;
  position: relative;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border-radius: 50%;
  background: #eaf2ff;
  color: #1d4ed8;
}
.employee-photo-initials {
  font-size: 13px;
  font-weight: 700;
}
.employee-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.employee-photo-large {
  width: 80px;
  height: 80px;
  flex-basis: 80px;
}
.employee-photo-large .employee-photo-initials {
  font-size: 24px;
}
.combo-profile-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.combo-profile-heading h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.combo-profile-heading p {
  margin: 6px 0 0;
  color: #52627b;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.combo-chart-detail .badges {
  margin: 0 0 18px;
}
.combo-chart-detail .badge {
  font-size: 12px;
}
.combo-chart-detail > table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.combo-chart-detail > table th,
.combo-chart-detail > table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.combo-chart-detail > table th {
  width: 28%;
  background: #f7faff;
  color: #475569;
  font-weight: 600;
}
.combo-chart-detail .employee-section {
  margin-top: 24px;
}
.combo-chart-detail .employee-section h4 {
  font-size: 15px;
}
@media (max-width: 640px) {
  .combo-detail-modal {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 14px;
  }
  .combo-detail-modal .combo-detail-modal-head {
    padding: 12px 16px;
    gap: 12px;
  }
  .combo-detail-modal-head h2 {
    font-size: 15px;
  }
  .combo-detail-modal-body {
    padding: 16px;
  }
  .combo-detail-modal .detail-title,
  .combo-profile-heading h3 {
    font-size: 20px;
  }
  .combo-detail-modal .detail-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .combo-detail-modal .detail-stat {
    padding: 10px;
  }
  .combo-detail-modal .detail-stat b {
    font-size: 15px;
  }
  .combo-detail-modal .employee-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .combo-detail-modal .work-people-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .combo-detail-modal .employee-summary {
    flex-wrap: wrap;
  }
  .combo-detail-modal .employee-compact {
    min-width: 0;
    flex: 1;
  }
  .combo-detail-modal .employee-status {
    margin-left: auto;
  }
  .combo-detail-modal .detail-table td:last-child {
    white-space: normal;
  }
  .combo-chart-detail > table th {
    width: 36%;
  }
  .combo-chart-detail > table th,
  .combo-chart-detail > table td {
    padding: 8px;
    font-size: 12px;
  }
}
@media print {
  .combo-detail-modal {
    display: none !important;
  }
}
/* Styles for ChartActionsMenu - Nút "Thao tác sơ đồ" và popover panel */
.chart-actions-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 600;
  font-family:
    'Segoe UI',
    system-ui,
    -apple-system,
    Arial,
    sans-serif;
  cursor: pointer;
  line-height: 1.4;
  white-space: nowrap;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chart-actions-trigger:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.chart-actions-trigger:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.chart-actions-trigger[aria-expanded='true'] {
  background: #f1f5f9;
  border-color: #2563eb;
  color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.chart-actions-trigger .trigger-arrow {
  font-size: 11px;
  line-height: 1;
  color: #64748b;
  transition: transform 0.15s ease;
}

.chart-actions-trigger[aria-expanded='true'] .trigger-arrow {
  color: #2563eb;
}

/* Ensure trigger remains visible in live mode when search is collapsed */
div:where(.lfc-body).tree-search-collapsed .actions button#btnChartActionsTrigger,
div.tree-search-collapsed .actions button#btnChartActionsTrigger,
.tree-search-collapsed #btnChartActionsTrigger {
  display: inline-flex !important;
}

/* Panel portal */
.chart-actions-panel {
  position: fixed;
  width: 300px;
  max-width: calc(100vw - 16px);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow:
    0 10px 25px -5px rgba(0, 0, 0, 0.1),
    0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 6px 0;
  z-index: 9999;
  font-family:
    'Segoe UI',
    system-ui,
    -apple-system,
    Arial,
    sans-serif;
  animation: chartActionsFadeIn 0.12s ease-out;
  box-sizing: border-box;
}

@keyframes chartActionsFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chart-actions-group {
  padding: 4px 0;
}

.chart-actions-group + .chart-actions-group {
  border-top: 1px solid #e2e8f0;
}

.chart-actions-group-title {
  padding: 6px 14px 2px 14px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  user-select: none;
}

.chart-actions-item-btn {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #1e293b;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.1s ease,
    color 0.1s ease;
  box-sizing: border-box;
}

.chart-actions-item-btn:hover:not(:disabled) {
  background: #f1f5f9;
  color: #0f172a;
}

.chart-actions-item-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
  background: #eff6ff;
}

.chart-actions-item-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  color: #94a3b8;
}

.chart-actions-item-hint {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}
/* Typography tokens và scoped readability overrides cho Live Tuyến quản lý & COMBO V26 */
/* Tuân thủ quy tắc mục 5.1, 5.2 & 5.3 - GEMINI_PLAN_CAY_QUAN_LY_MENU_FONT_2026-10-02.md */

:root {
  --combo-font-system: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --combo-card-live-w: 390px;
  --combo-card-live-h: 220px;
}

/* Áp dụng font system cho toàn bộ frame live và modal */
body:not(.combo-reference-body) [data-frame='lfc'],
body:not(.combo-reference-body) [data-frame='lfd'],
body:not(.combo-reference-body) .combo-detail-modal,
body:not(.combo-reference-body) .chart-actions-portal {
  font-family: var(--combo-font-system);
  color: #1e293b;
  -webkit-font-smoothing: antialiased;
}

/* 1. Thanh điều khiển trên cùng (controls, buttons, search) */
body:not(.combo-reference-body) [data-frame='lfc'] .topbar .controls select,
body:not(.combo-reference-body) [data-frame='lfc'] .topbar .controls button,
body:not(.combo-reference-body) [data-frame='lfc'] .topbar .controls input,
body:not(.combo-reference-body) [data-frame='lfc'] .actions button,
body:not(.combo-reference-body) [data-frame='lfc'] .search-bar input {
  font-family: var(--combo-font-system);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

body:not(.combo-reference-body) [data-frame='lfc'] .topbar h1 {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
}

body:not(.combo-reference-body) [data-frame='lfc'] .topbar p {
  font-size: 13px;
  font-weight: 400;
  color: #64748b;
}

/* 2. KPI / Dashboard */
body:not(.combo-reference-body) [data-frame='lfc'] #dashboard .kpi {
  padding: 8px 14px;
  border-radius: 8px;
}

body:not(.combo-reference-body) [data-frame='lfc'] #dashboard .kpi .label {
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: #475569 !important;
}

body:not(.combo-reference-body) [data-frame='lfc'] #dashboard .kpi .value {
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

/* 3. Thẻ sơ đồ (Card Geometry & Typography: 390x220) */
body:not(.combo-reference-body) [data-frame='lfc'] .org-card {
  width: var(--combo-card-live-w) !important;
  height: var(--combo-card-live-h) !important;
  font-family: var(--combo-font-system);
  box-sizing: border-box;
}

/* Khắc phục blanket font-weight 800/900 từ legacy CSS */
body:not(.combo-reference-body) [data-frame='lfc'] .org-card .body {
  font-weight: 400 !important;
}

/* Thẻ nhân viên / quản lý */
body:not(.combo-reference-body) [data-frame='lfc'] .org-card .emp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 6px 0;
}

body:not(.combo-reference-body) [data-frame='lfc'] .org-card .emp-avatar-img,
body:not(.combo-reference-body) [data-frame='lfc'] .org-card .emp-avatar-fallback {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
}

body:not(.combo-reference-body) [data-frame='lfc'] .org-card .emp-name-box {
  flex: 1;
  min-width: 0;
}

body:not(.combo-reference-body) [data-frame='lfc'] .org-card .title,
body:not(.combo-reference-body) [data-frame='lfc'] .org-card .emp-name-box .title {
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:not(.combo-reference-body) [data-frame='lfc'] .org-card .sub,
body:not(.combo-reference-body) [data-frame='lfc'] .org-card .emp-name-box .sub {
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Nhãn cấp bậc / type trên card */
body:not(.combo-reference-body) [data-frame='lfc'] .org-card .type {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #64748b;
  letter-spacing: normal;
  text-transform: uppercase;
}

body:not(.combo-reference-body) [data-frame='lfc'] .org-card .rank-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
}

/* Vùng metrics trên card: chiều cao 48-52px */
body:not(.combo-reference-body) [data-frame='lfc'] .org-card .metrics {
  height: 50px !important;
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 6px;
  padding: 4px 6px;
  border-top: 1px solid #f1f5f9;
}

body:not(.combo-reference-body) [data-frame='lfc'] .org-card .metrics .metric b {
  font-size: 16px !important;
  font-weight: 600 !important;
}

body:not(.combo-reference-body) [data-frame='lfc'] .org-card .metrics .metric span {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #64748b;
}

/* 4. Modal chi tiết (DetailModal & QuickInfo) */
body:not(.combo-reference-body) .combo-detail-modal {
  font-family: var(--combo-font-system);
}

body:not(.combo-reference-body) .combo-detail-modal-head h2 {
  font-size: 22px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #0f172a;
}

body:not(.combo-reference-body) .combo-profile-heading h3 {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #0f172a;
}

body:not(.combo-reference-body) .combo-profile-heading p {
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #475569;
}

body:not(.combo-reference-body) .combo-profile-heading .emp-avatar-img,
body:not(.combo-reference-body) .combo-profile-heading .emp-avatar-fallback {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px;
  min-height: 80px;
  font-size: 28px !important;
}

body:not(.combo-reference-body) .combo-detail-modal table {
  font-size: 15px;
  line-height: 1.5;
}

body:not(.combo-reference-body) .combo-detail-modal table th {
  font-weight: 500;
  color: #475569;
  width: 170px;
}

body:not(.combo-reference-body) .combo-detail-modal table td {
  font-weight: 400;
  color: #0f172a;
}
