.corp-org {
  display: flex;
  flex-direction: column;
  min-height: 640px;
  color: #e8ecf5;
  font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  position: relative;
}

.corp-industry-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 12px;
  background: #121826;
  border-bottom: 1px solid #2f364a;
}

.corp-industry-bar strong {
  flex: 0 0 auto;
}

.corp-industry-bar .muted {
  flex: 1 1 220px;
  margin: 0;
}

.corp-industry-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.corp-industry-btn {
  appearance: none;
  border: 1px solid #3a4258;
  background: #1a2130;
  color: #e8ecf5;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.corp-industry-btn.is-active {
  border-color: #d4a24c;
  background: #3a2e18;
  color: #f3d7a1;
}

.corp-industry-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.corp-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  padding: 8px 8px 0;
  background: #0c1018;
  border-bottom: 1px solid #2f364a;
  overflow-x: auto;
}

.corp-tab {
  appearance: none;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 108px;
  max-width: 200px;
  padding: 9px 14px 10px;
  border: 1px solid #2f364a;
  border-bottom: none;
  border-radius: 10px 10px 0 0;
  background: #121824;
  color: #8b94ad;
  cursor: pointer;
  font-size: 13px;
}

.corp-tab em {
  font-style: normal;
  font-size: 11px;
  color: #6d7690;
}

.corp-tab:hover {
  color: #e8ecf5;
  background: #182033;
}

.corp-tab.is-active {
  background: #161c2a;
  color: #e8ecf5;
  border-color: #3d4660;
  position: relative;
  z-index: 1;
  margin-bottom: -1px;
  padding-bottom: 11px;
}

.corp-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: #161c2a;
}

.corp-tab-add {
  min-width: 40px;
  max-width: 40px;
  justify-content: center;
  font-size: 18px;
  padding-left: 0;
  padding-right: 0;
}

.corp-tab:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.corp-page {
  display: flex;
  flex-direction: column;
  background: #161c2a;
}

.org-tree {
  padding: 18px 16px 8px;
  background:
    radial-gradient(900px 280px at 50% 0%, #1a2438, transparent),
    #121824;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.org-tree-layer {
  width: min(100%, 920px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 6px;
  border-radius: 10px;
  cursor: pointer;
}

.org-tree-layer + .org-tree-layer {
  margin-top: 6px;
}

.org-tree-layer + .org-tree-layer::before {
  content: '';
  width: 2px;
  height: 14px;
  background: #3d4660;
  border-radius: 1px;
  margin-top: -6px;
}

.org-tree-layer:hover,
.org-tree-layer.is-active {
  background: rgba(120, 200, 160, 0.08);
}

.org-tree-layer.is-active {
  outline: 1px solid #3d7a62;
}

.org-tree-layer-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #8b94ad;
  font-size: 12px;
}

.org-tree-layer-head strong {
  color: #c5d0e6;
  font-size: 13px;
}

.org-tree-nodes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}

.org-tree-layer[data-select-layer='1'] .org-tree-nodes,
.org-tree-layer[data-select-layer='2'] .org-tree-nodes {
  max-width: 920px;
}

.org-tree-layer[data-select-layer='3'] .org-tree-nodes,
.org-tree-layer[data-select-layer='4'] .org-tree-nodes {
  max-width: 280px;
}

/* 下层专员席位过多时略压缩 */
.org-tree-layer[data-select-layer='1'] .org-seat {
  width: 96px;
  min-height: 76px;
  padding: 8px 6px;
}

.org-seat {
  width: 112px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 8px;
  border: 1px solid #3d4660;
  border-radius: 10px;
  background: #1a2233;
  color: #e8ecf5;
  cursor: pointer;
}

.org-seat:hover {
  border-color: #78c8a0;
}

.org-seat-name {
  min-width: 4em;
  text-align: center;
  font-size: 14px;
  border-bottom: 1px dashed #7c869c;
  padding-bottom: 2px;
  color: #c5d0e6;
}

.org-seat.is-vacant {
  background: #141a26;
  border-style: dashed;
}

.org-seat.is-vacant .org-seat-name {
  color: #5d667c;
}

.org-seat-title {
  font-size: 11px;
  color: #8b94ad;
}

.org-seat-empty {
  font-size: 11px;
  color: #6d7690;
}

.org-list {
  border-top: 1px solid #2f364a;
  padding: 12px 14px 16px;
  background: #161c2a;
}

.org-list-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.org-list h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.org-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.org-list-actions button,
.corp-org-dialog button,
.org-table button {
  border: 1px solid #3d4660;
  background: #1e2738;
  color: #e8ecf5;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
}

.org-list-actions button:hover,
.corp-org-dialog button:hover,
.org-table button:hover {
  border-color: #78c8a0;
}

.org-table-wrap {
  overflow-x: auto;
}

.org-wage-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}

.org-wage-form input {
  width: 88px;
  padding: 4px 6px;
  border: 1px solid #3d4660;
  border-radius: 6px;
  background: #101622;
  color: #e8ecf5;
}

.org-wage-form button {
  padding: 4px 8px;
}

.org-wage-floor {
  flex: 1 0 100%;
  font-size: 11px;
  color: #8b93a7;
}

.org-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.org-table th,
.org-table td {
  padding: 8px 8px;
  border-bottom: 1px solid #2f364a;
  text-align: left;
  white-space: nowrap;
}

.org-table th {
  color: #8b94ad;
  font-weight: 600;
}

.org-name-slot {
  display: inline-block;
  min-width: 4em;
  color: #e6ecf7;
}

.corp-org-dialog-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 16, 0.62);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 8;
  overflow: auto;
  padding: 24px 12px;
}

.corp-org-dialog {
  width: min(420px, calc(100% - 24px));
  padding: 14px;
  border: 1px solid #3d4660;
  border-radius: 10px;
  background: #161c2a;
}

.corp-org-dialog-wide {
  width: min(1080px, calc(100% - 24px));
}

.corp-org-dialog h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.corp-org-dialog label {
  display: block;
  margin-bottom: 10px;
  color: #8b94ad;
  font-size: 13px;
}

.corp-org-dialog input {
  display: block;
  width: 100%;
  margin-top: 4px;
  border: 1px solid #3d4660;
  background: #1e2738;
  color: #e8ecf5;
  border-radius: 6px;
  padding: 6px 8px;
}

.corp-org-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.muted {
  color: #8b94ad;
  font-size: 13px;
}
