﻿/* QPANEL organization CSS manifest. Source split into qpanel/organization/*.css. */
@import url('./qpanel/organization/00-base-hero-toolbar.css');
@import url('./qpanel/organization/10-organization-canvas.css');
@import url('./qpanel/organization/20-organization-responsive.css');
@import url('./qpanel/organization/30-process-graph.css');
@import url('./qpanel/organization/40-drawers-bottom.css');
@import url('./qpanel/organization/50-department-type-map.css');
@import url('./qpanel/organization/90-responsive.css');

/* Legacy qPanel right-drawer tree loaded by CustomCode/organization/get_jobs_tree.php. */
.qp-org-tree-panel {
  display: grid;
  gap: 0.85rem;
  padding: 0.9rem;
  color: #102342;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.qp-org-tree-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #dbe6f3;
}

.qp-org-tree-header strong {
  display: block;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 950;
}

.qp-org-tree-header span {
  display: block;
  margin-top: 0.18rem;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.4;
}

.qp-org-list-link,
.qp-org-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 0.62rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 0.72rem;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
  cursor: pointer;
}

.qp-org-list-link:hover,
.qp-org-view:hover {
  border-color: #60a5fa;
  background: #dbeafe;
  color: #0f3d91;
  text-decoration: none;
}

.qp-org-actions-mini {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: max-content;
}

.qp-org-actions-mini .qp-org-view {
  min-height: 26px;
  padding-inline: 0.52rem;
}

.qp-org-tree-body {
  display: grid;
  gap: 0.55rem;
}

.qp-org-list {
  display: grid;
  gap: 0.48rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qp-org-list .qp-org-list {
  margin-top: 0.48rem;
  margin-left: 0.45rem;
  padding-left: 0.82rem;
  border-left: 1px dashed #bfd1e6;
}

.qp-org-item {
  display: grid;
  gap: 0.35rem;
}

.qp-org-summary,
.qp-org-leaf {
  width: 100%;
  display: grid;
  grid-template-columns: 10px 28px minmax(0, 1fr) auto;
  gap: 0.52rem;
  align-items: center;
  padding: 0.58rem 0.65rem;
  border: 1px solid #dbe6f3;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.qp-org-summary {
  cursor: pointer;
}

.qp-org-summary:hover,
.qp-org-leaf:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.qp-org-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.qp-org-dot-green {
  background: #16a34a;
}

.qp-org-dot-yellow {
  background: #f59e0b;
}

.qp-org-dot-gray {
  background: #94a3b8;
}

.qp-org-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: #1d4ed8;
  background: #eff6ff;
}

.qp-org-main {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.qp-org-title {
  color: #102342;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.25;
}

.qp-org-meta,
.qp-org-description {
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.35;
}

.qp-org-description {
  margin-left: 3.1rem;
  padding: 0 0.25rem 0.28rem;
  max-width: calc(100% - 3.1rem);
}

.qp-org-role-tree-panel .qp-org-tree-body {
  gap: 0.65rem;
}

.qp-org-role-tree-list {
  margin-left: 1.02rem;
}

.qp-org-role-leaf {
  background: #f8fbff;
}

@media (max-width: 520px) {
  .qp-org-tree-header,
  .qp-org-summary,
  .qp-org-leaf {
    grid-template-columns: 10px 24px minmax(0, 1fr);
  }

  .qp-org-view {
    grid-column: 3;
    justify-self: start;
  }

  .qp-org-actions-mini {
    grid-column: 3;
    justify-self: start;
  }
}
