/* OKKwork — страница «Орг. структура проекта» */

.okkwork-org-page {
  --okk-org-add-dept-gap: 12px;
  --okk-org-add-dept-margin-top: 2px;
  --okk-org-add-dept-btn-h: 28px;
  position: fixed;
  inset: 0;
  z-index: 101520;
  display: none;
  pointer-events: none;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(81, 95, 108, 0.95);
  -webkit-font-smoothing: antialiased;
}

.okkwork-org-page :where(button, input, select, textarea, optgroup, option) {
  font-family: inherit;
}

.okkwork-org-page.is-open,
.okkwork-org-page.is-open[hidden] {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto;
}

.okkwork-org-page__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
}

.okkwork-org-page__shell {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #f4f9fd;
  box-shadow: -4px 0 32px rgba(15, 23, 42, 0.12);
}

.okkwork-org-page__header {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px) auto;
  gap: 16px 20px;
  align-items: end;
  padding: 14px 20px 12px;
  border-bottom: 1px solid rgba(6, 88, 162, 0.12);
  background: #fff;
}

.okkwork-org-page__header-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.okkwork-org-page__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 6px 10px 6px 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(6, 88, 162, 1);
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.okkwork-org-page__back:hover {
  background: rgba(6, 88, 162, 0.08);
}

.okkwork-org-page__title-wrap {
  min-width: 0;
}

.okkwork-org-page__title {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.1;
  color: rgba(6, 88, 162, 1);
}

.okkwork-org-page__subtitle {
  margin: 4px 0 0;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: lowercase;
  color: rgba(6, 88, 162, 1);
}

.okkwork-org-page__project {
  position: relative;
  min-width: 0;
}

.okkwork-org-page__project-label {
  display: block;
  margin-bottom: 4px;
  font-family: "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(81, 95, 108, 0.85);
}

.okkwork-org-page__project-dd {
  position: relative;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.okkwork-org-page__project-dd-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid rgba(6, 88, 162, 0.22);
  border-radius: 8px;
  background: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(6, 88, 162, 1);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.okkwork-org-page__project-dd-trigger:hover {
  border-color: rgba(6, 88, 162, 0.38);
  background: rgba(244, 249, 253, 1);
}

.okkwork-org-page__project-dd-trigger:focus-visible {
  outline: 2px solid rgba(6, 88, 162, 0.35);
  outline-offset: 2px;
}

.okkwork-org-page__project-dd-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.3;
}

.okkwork-org-page__project-dd-chevron {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(6, 88, 162, 0.75);
  border-bottom: 2px solid rgba(6, 88, 162, 0.75);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}

.okkwork-org-page__project-dd.is-open .okkwork-org-page__project-dd-chevron {
  transform: rotate(-135deg) translateY(2px);
}

.okkwork-org-page__project-dd.is-open .okkwork-org-page__project-dd-trigger {
  border-color: rgba(6, 88, 162, 0.45);
}

.okkwork-org-page__project-dd-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border: 1px solid rgba(6, 88, 162, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  max-height: min(280px, 40vh);
  overflow-y: auto;
  user-select: none;
  -webkit-user-select: none;
}

.okkwork-org-page__project-dd.is-open .okkwork-org-page__project-dd-list {
  z-index: 60;
}

.okkwork-org-page__project-dd-list[hidden] {
  display: none !important;
}

.okkwork-org-page__project-dd-option {
  display: block;
  width: calc(100% - 12px);
  margin: 2px 6px;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #515f6c;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.okkwork-org-page__project-dd-option:hover,
.okkwork-org-page__project-dd-option:focus-visible {
  background: rgba(120, 175, 236, 0.22);
  color: #0658a2;
  outline: none;
}

.okkwork-org-page__project-dd-option.is-selected {
  background: rgba(120, 175, 236, 0.35);
  color: #0658a2;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(120, 175, 236, 0.55);
}

.okkwork-org-page__project-dd-option.is-selected:hover,
.okkwork-org-page__project-dd-option.is-selected:focus-visible {
  background: rgba(120, 175, 236, 0.42);
  color: #0658a2;
}

.okkwork-org-page__header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.okkwork-org-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
}

.okkwork-org-page__btn--primary {
  background: rgba(6, 88, 162, 1);
  color: #fff;
  gap: 8px;
}

.okkwork-org-page__btn-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.okkwork-org-page__btn--primary .okkwork-org-page__btn-icon {
  filter: brightness(0) invert(1);
}

.okkwork-org-page__btn--primary:hover {
  background: #054a8a;
}

.okkwork-org-page__btn--ghost {
  background: #fff;
  border-color: rgba(6, 88, 162, 0.28);
  color: rgba(6, 88, 162, 1);
}

.okkwork-org-page__btn--ghost:hover {
  background: rgba(6, 88, 162, 0.06);
}

.okkwork-org-page__zoom {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 30;
  pointer-events: auto;
}

.okkwork-org-page__zoom-bar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(6, 88, 162, 0.14);
  box-shadow: 0 4px 18px rgba(6, 88, 162, 0.12);
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(6, 88, 162, 1);
}

.okkwork-org-page__zoom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  color: inherit;
  cursor: pointer;
}

.okkwork-org-page__zoom-btn:hover {
  background: rgba(6, 88, 162, 0.08);
}

.okkwork-org-page__zoom-btn--reset {
  font-size: 15px;
}

.okkwork-org-page__zoom-sep {
  width: 1px;
  height: 18px;
  margin: 0 2px;
  background: rgba(6, 88, 162, 0.16);
  flex-shrink: 0;
}

.okkwork-org-page__zoom-val {
  min-width: 40px;
  padding: 0 2px;
  text-align: center;
  font: inherit;
  line-height: 1;
  user-select: none;
}

.okkwork-org-page__scroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  touch-action: none;
}

.okkwork-org-page.is-space-pan .okkwork-org-page__scroll,
.okkwork-org-page.is-space-pan [data-okkwork-org-chart-layout] {
  cursor: grab;
}

.okkwork-org-page.is-panning {
  user-select: none;
}

.okkwork-org-page.is-panning .okkwork-org-page__scroll {
  cursor: grabbing;
}

.okkwork-org-page__canvas-wrap {
  min-height: 100%;
  padding: 20px;
  overflow: visible;
}

.okkwork-org-page__canvas {
  transform-origin: 0 0;
  transition: transform 0.18s ease;
}

.okkwork-org-page--chart-settling .okkwork-org-page__canvas,
.okkwork-org-page__canvas.is-view-dragging {
  transition: none !important;
  will-change: transform;
}

/* —— Макет v15: линии иерархии —— */
.okkwork-org-page--v15 .okkwork-org-page__canvas-wrap {
  background: linear-gradient(180deg, #fff 0%, var(--okk-bg, #f4f9fd) 120px);
}

.okkwork-org-page--v15 .okkwork-org-page__chart {
  position: relative;
  width: max-content;
  min-width: 0;
  max-width: none;
  margin: 0 auto;
  padding-bottom: 12px;
  box-sizing: border-box;
}

.okkwork-org-page--v15 .okkwork-org-page__chart-layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  min-width: 0;
  margin: 0 auto;
  box-sizing: border-box;
}

.okkwork-org-page--v15 .okkwork-org-page__chart-bus {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
  max-width: none;
  margin: 0 auto;
  box-sizing: border-box;
}

.okkwork-org-page--v15 [data-okkwork-org-chart-bus] .okkwork-org-page__leadership,
.okkwork-org-page--v15 [data-okkwork-org-chart-bus] .okkwork-org-page__departments {
  width: 100%;
}

.okkwork-org-page--v15 .okkwork-org-page__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.okkwork-org-page__add-dept {
  position: absolute;
  z-index: 14;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(6, 88, 162, 1);
  color: #fff;
  font-family: "Rubik", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 0 0 3px #fff,
    0 4px 16px rgba(6, 88, 162, 0.45);
  pointer-events: auto;
}

.okkwork-org-page--v15 .okkwork-org-page__add-dept:hover {
  background: rgba(5, 76, 142, 1);
}

.okkwork-org-page--v15 .okkwork-org-page__add-dept:focus-visible {
  outline: 2px solid rgba(6, 88, 162, 0.45);
  outline-offset: 2px;
}

.okkwork-org-page--v15 .okkwork-org-page__leadership {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-bottom: 8px;
  margin-bottom: 0;
}

.okkwork-org-page--v15 .okkwork-org-page__lead-row {
  justify-content: center;
}

.okkwork-org-page--v15 .okkwork-org-page__departments {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: center;
  width: max-content;
  max-width: none;
  box-sizing: border-box;
  margin: 0 auto;
  padding-top: 56px;
  padding-bottom: 8px;
  gap: 22px;
  overflow: visible;
}

.okkwork-org-dept-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 0 0 300px;
  width: 300px;
  min-width: 300px;
  max-width: 300px;
  box-sizing: border-box;
}

.okkwork-org-dept-column__mkk {
  width: 100%;
  min-width: 0;
}

.okkwork-org-mkk-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.okkwork-org-mkk-branch__manager {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 351px);
  max-width: 351px;
  box-sizing: border-box;
}

.okkwork-org-mkk-branch__manager-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.okkwork-org-page__leadership-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}

.okkwork-org-page__leadership-head-anchor {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: min(100%, 351px);
  box-sizing: border-box;
}

.okkwork-org-page__leadership-head-anchor .okkwork-org-card--head {
  width: 100%;
}

.okkwork-org-page--v15 .okkwork-org-page__leadership-add-dept.okkwork-org-page__add-dept,
.okkwork-org-page--v15 [data-okkwork-org-add-dept].okkwork-org-page__add-dept:not(.okkwork-org-mkk-branch__add-dept) {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  flex-shrink: 0;
  align-self: center;
  margin: var(--okk-org-add-dept-margin-top, 2px) 0 var(--okk-org-add-dept-gap, 12px);
}

.okkwork-org-mkk-branch__add-dept.okkwork-org-page__add-dept {
  position: relative;
  left: auto;
  top: auto;
  flex-shrink: 0;
  margin: var(--okk-org-add-dept-margin-top, 2px) 0 var(--okk-org-add-dept-gap, 12px);
  transform: none;
}

.okkwork-org-mkk-branch__manager .okkwork-org-mkk-card {
  width: min(100%, 351px);
  box-sizing: border-box;
}

.okkwork-org-dept-column__mkk .okkwork-org-mkk-card {
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}

.okkwork-org-mkk-branch__columns {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 22px;
  width: max-content;
  max-width: none;
  box-sizing: border-box;
}

.okkwork-org-mkk-branch__columns > .okkwork-org-dept-column {
  flex: 0 0 300px;
}

.okkwork-org-page--v15 .okkwork-org-dept-column .okkwork-org-dept {
  gap: 0;
}

.okkwork-org-page--v15 .okkwork-org-dept__mkk-slot {
  margin-top: 6px;
}

.okkwork-org-page--v15 .okkwork-org-dept {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px dashed rgba(6, 88, 162, 0.32);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(6, 88, 162, 0.08);
  box-sizing: border-box;
}

.okkwork-org-page--v15 .okkwork-org-dept__toolbar {
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  background: rgba(6, 88, 162, 1);
  box-sizing: border-box;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.okkwork-org-page--v15 .okkwork-org-dept__toolbar-head {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.okkwork-org-page--v15 .okkwork-org-dept__title-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.okkwork-org-page--v15 .okkwork-org-dept__title {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
}

.okkwork-org-page--v15 .okkwork-org-dept__plan {
  align-self: flex-start;
  max-width: 100%;
}

.okkwork-org-page--v15 .okkwork-org-dept__toolbar + .okkwork-org-dept__box {
  margin-top: 0;
}

.okkwork-org-dept__toolbar-drag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: grab;
}

.okkwork-org-dept__toolbar-drag:active {
  cursor: grabbing;
}

.okkwork-org-dept__toolbar-drag:hover,
.okkwork-org-dept__toolbar-drag:focus-visible {
  background: rgba(6, 88, 162, 0.1);
  outline: none;
}

.okkwork-org-dept__toolbar-drag img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
  pointer-events: none;
}

.okkwork-org-page--v15 .okkwork-org-dept__toolbar-drag:hover,
.okkwork-org-page--v15 .okkwork-org-dept__toolbar-drag:focus-visible {
  background: rgba(255, 255, 255, 0.14);
}

.okkwork-org-page--v15 .okkwork-org-dept__toolbar-drag img {
  filter: brightness(0) invert(1);
}

.okkwork-org-card--manager.is-drop-target-mkk,
.okkwork-org-mkk-card.is-drop-target-mkk {
  outline: 2px dashed rgba(6, 88, 162, 0.55);
  outline-offset: 4px;
  border-radius: 10px;
  box-shadow: 0 0 0 3px rgba(6, 88, 162, 0.38);
}

.okkwork-org-page--v15 .okkwork-org-dept__title {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.okkwork-org-page--v15 .okkwork-org-dept__toolbar-menu:hover {
  background: rgba(255, 255, 255, 0.14);
}

.okkwork-org-page--v15 .okkwork-org-dept__toolbar-menu img {
  filter: brightness(0) invert(1);
}

.okkwork-org-dept__plan {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 10px;
  border: 1px solid rgba(6, 88, 162, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  color: #0658a2;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
  max-width: min(48vw, 220px);
}

.okkwork-org-dept__plan:disabled {
  cursor: default;
  opacity: 0.92;
}

.okkwork-org-dept__plan-label {
  opacity: 0.82;
  white-space: nowrap;
}

.okkwork-org-dept__plan-value {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.okkwork-org-page--v15 .okkwork-org-dept__plan {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.okkwork-org-page--v15 .okkwork-org-dept__plan.is-set {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.2);
}

.okkwork-org-page--v15 .okkwork-org-dept__plan.is-none {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.okkwork-org-page--v15 .okkwork-org-dept__plan:hover:not(:disabled),
.okkwork-org-page--v15 .okkwork-org-dept__plan:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, 0.24);
  outline: none;
}

.okkwork-org-dept-plan-popover {
  position: fixed;
  z-index: 10055;
  width: min(300px, calc(100vw - 16px));
  padding: 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 32, 58, 0.18);
  font-family: "Rubik", sans-serif;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.okkwork-org-dept-plan-popover.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.okkwork-org-dept-plan-popover__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: #0f203a;
}

.okkwork-org-dept-plan-popover__options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.okkwork-org-dept-plan-popover__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #1e293b;
  cursor: pointer;
}

.okkwork-org-dept-plan-popover__field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.okkwork-org-dept-plan-popover__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #b1cbe2;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: #0f203a;
}

.okkwork-org-dept-plan-popover__unit {
  flex-shrink: 0;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}

.okkwork-org-dept-plan-popover__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.okkwork-org-dept-plan-popover__save,
.okkwork-org-dept-plan-popover__cancel {
  height: 34px;
  padding: 0 14px;
  border-radius: 8px;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.okkwork-org-dept-plan-popover__save {
  background: #0658a2;
  color: #fff;
}

.okkwork-org-dept-plan-popover__cancel {
  background: #e8f1f8;
  color: #0658a2;
}

.okkwork-org-page--v15 .okkwork-org-dept__box {
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff;
  overflow: hidden;
}

.okkwork-org-page--v15 .okkwork-org-dept__head {
  padding: 10px 12px;
  background: #d2e1ee;
}

.okkwork-org-page--v15 .okkwork-org-dept__head-role {
  background: #b1cbe2;
  color: rgba(6, 88, 162, 1);
}

.okkwork-org-page--v15 .okkwork-org-dept__head-name {
  color: rgba(20, 36, 52, 0.92);
}

.okkwork-org-page--v15 .okkwork-org-dept__divider {
  margin: 0;
  border-top-color: rgba(6, 88, 162, 0.14);
}

.okkwork-org-page--v15 .okkwork-org-dept__staff {
  padding: 10px 12px 8px;
  background: #fff;
}

.okkwork-org-page--v15 .okkwork-org-dept__add {
  margin-bottom: 12px;
}

.okkwork-org-page--v15 .okkwork-org-dept.is-drop-target {
  border-color: rgba(6, 88, 162, 0.55);
  box-shadow: 0 0 0 2px rgba(6, 88, 162, 0.14);
}

.okkwork-org-page--v15 .okkwork-org-dept.is-drop-target .okkwork-org-dept__box {
  border: 0;
  box-shadow: none;
  background: #fff;
}

.okkwork-org-dept__mkk-slot {
  width: 100%;
  min-width: 0;
}

.okkwork-org-dept__mkk-add {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 10px 12px 10px 14px;
  border: 1px dashed rgba(6, 88, 162, 0.42);
  border-radius: 12px;
  background: rgba(220, 231, 242, 0.92);
  box-sizing: border-box;
  cursor: pointer;
}

.okkwork-org-dept__mkk-add:hover {
  background: rgba(210, 225, 240, 0.98);
  border-color: rgba(6, 88, 162, 0.55);
}

.okkwork-org-dept__mkk-add-label {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.okkwork-org-dept__mkk-add-line {
  display: block;
  width: 100%;
  font-family: "Rubik", sans-serif;
  line-height: 1.2;
  color: rgba(6, 88, 162, 1);
}

.okkwork-org-dept__mkk-add-line--action {
  font-size: 14px;
  font-weight: 600;
}

.okkwork-org-dept__mkk-add-line--role {
  font-size: 13px;
  font-weight: 500;
}

.okkwork-org-dept__mkk-add-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(6, 88, 162, 0.75);
}

.okkwork-org-dept__mkk-add-icon svg {
  width: 23px;
  height: 23px;
}

.okkwork-org-dept__head-assign {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 100%;
  min-height: 72px;
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed rgba(6, 88, 162, 0.42);
  border-radius: 8px;
  background: rgba(220, 231, 242, 0.92);
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.okkwork-org-dept__head-assign:hover {
  background: rgba(210, 225, 240, 0.98);
  border-color: rgba(6, 88, 162, 0.55);
}

.okkwork-org-dept__head-assign-line {
  display: block;
  width: 100%;
  font-family: "Rubik", sans-serif;
  line-height: 1.2;
  color: rgba(6, 88, 162, 1);
}

.okkwork-org-dept__head-assign-line--action {
  font-size: 14px;
  font-weight: 600;
}

.okkwork-org-dept__head-assign-line--role {
  font-size: 13px;
  font-weight: 500;
}

.okkwork-org-dept__head-empty {
  margin: 0;
  padding: 14px 12px;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  color: rgba(20, 36, 52, 0.55);
}

.okkwork-org-mkk-card.okkwork-org-card--head {
  width: min(100%, 351px);
  min-height: 0;
  padding: 10px 34px 10px 6px;
  box-shadow: 0 4px 16px rgba(6, 88, 162, 0.22);
  grid-template-rows: auto auto auto;
}

.okkwork-org-mkk-card.okkwork-org-card--head .okkwork-org-card__avatar {
  grid-row: 1 / span 3;
}

.okkwork-org-mkk-card.okkwork-org-card--head .okkwork-org-card__role {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.okkwork-org-mkk-card.okkwork-org-card--head .okkwork-org-card__name {
  font-size: 15px;
  font-weight: 300;
}

.okkwork-org-mkk-card__stars {
  --profile-star-on: #f5c518;
  --profile-star-off: rgba(255, 255, 255, 0.38);
  --profile-star-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
  grid-column: 3;
  grid-row: 3;
  position: static;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 2px;
  margin: 4px 0 0;
  padding: 0;
  line-height: 1;
  pointer-events: none;
}

.okkwork-org-mkk-card .okkwork-org-card__quota {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 1;
}

.okkwork-org-mkk-card .okkwork-org-card__menu {
  z-index: 3;
}

.okkwork-org-mkk-card__stars .profile-star {
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background-color: var(--profile-star-off);
  -webkit-mask-image: var(--profile-star-mask);
  mask-image: var(--profile-star-mask);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.okkwork-org-mkk-card__stars .profile-star.is-on {
  background-color: var(--profile-star-on);
}

.okkwork-org-mkk-invite-dialog__dept {
  margin: 0 0 14px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(6, 88, 162, 1);
}

.okkwork-org-mkk-invite-dialog__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.okkwork-org-mkk-invite-dialog__tab {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(6, 88, 162, 0.22);
  border-radius: 8px;
  background: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(6, 88, 162, 1);
  cursor: pointer;
  pointer-events: auto;
}

.okkwork-org-mkk-invite-dialog__tab:not(.is-active):hover {
  background: rgba(6, 88, 162, 0.06);
  border-color: rgba(6, 88, 162, 0.35);
}

.okkwork-org-mkk-invite-dialog__tab.is-active {
  background: rgba(6, 88, 162, 1);
  border-color: rgba(6, 88, 162, 1);
  color: #fff;
}

.okkwork-org-mkk-invite-dialog__panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.okkwork-org-mkk-invite-dialog__panel[hidden] {
  display: none !important;
}

.okkwork-org-mkk-invite-dialog__label {
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(20, 36, 52, 0.85);
}

.okkwork-org-mkk-invite-dialog__select,
.okkwork-org-mkk-invite-dialog__input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(6, 88, 162, 0.22);
  border-radius: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(6, 88, 162, 1);
}

.okkwork-org-mkk-invite-dialog__input::placeholder {
  color: rgba(6, 88, 162, 0.45);
  font-weight: 400;
}

.okkwork-org-mkk-invite-dialog__input:-webkit-autofill,
.okkwork-org-mkk-invite-dialog__input:-webkit-autofill:hover,
.okkwork-org-mkk-invite-dialog__input:-webkit-autofill:focus {
  -webkit-text-fill-color: rgba(6, 88, 162, 1);
}

.okkwork-org-mkk-channel-picker {
  position: relative;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.okkwork-org-mkk-channel-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  border: 1px solid rgba(6, 88, 162, 0.22);
  border-radius: 8px;
  background: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  color: rgba(20, 36, 52, 1);
  cursor: pointer;
  text-align: left;
}

.okkwork-org-mkk-channel-picker__trigger:hover {
  border-color: rgba(6, 88, 162, 0.38);
  background: rgba(244, 249, 253, 1);
}

.okkwork-org-mkk-channel-picker__trigger-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.okkwork-org-mkk-channel-picker__icon-wrap {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.okkwork-org-mkk-channel-picker__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: block;
  border-radius: 0;
  object-fit: contain;
}

.okkwork-org-mkk-channel-picker__label {
  font-weight: 400;
  line-height: 1.3;
}

.okkwork-org-mkk-channel-picker__chevron {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(81, 95, 108, 0.85);
  border-bottom: 2px solid rgba(81, 95, 108, 0.85);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.15s ease;
}

.okkwork-org-mkk-channel-picker.is-open .okkwork-org-mkk-channel-picker__chevron {
  transform: rotate(-135deg) translateY(2px);
}

.okkwork-org-mkk-channel-picker__list {
  position: absolute;
  z-index: 4;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  border: 1px solid rgba(6, 88, 162, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
  max-height: 220px;
  overflow-y: auto;
  user-select: none;
  -webkit-user-select: none;
}

.okkwork-org-mkk-channel-picker.is-open .okkwork-org-mkk-channel-picker__list {
  z-index: 20;
}

.okkwork-org-mkk-invite-dialog:has(.okkwork-org-mkk-channel-picker.is-open) .okkwork-org-dialog__panel,
.okkwork-org-mkk-invite-dialog:has(.okkwork-org-mkk-channel-picker.is-open) .okkwork-org-dialog__body {
  overflow: visible;
}

.okkwork-org-mkk-channel-picker__list[hidden] {
  display: none !important;
}

.okkwork-org-mkk-channel-picker__option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(20, 36, 52, 1);
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.okkwork-org-mkk-channel-picker__option:hover,
.okkwork-org-mkk-channel-picker__option:focus-visible {
  background: rgba(6, 88, 162, 0.08);
  outline: none;
}

.okkwork-org-mkk-channel-picker__option.is-selected {
  background: rgba(6, 88, 162, 1);
  color: #fff;
}

.okkwork-org-mkk-channel-picker__option.is-selected .okkwork-org-mkk-channel-picker__option-sub {
  color: rgba(255, 255, 255, 0.88);
}

.okkwork-org-mkk-channel-picker__option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.okkwork-org-mkk-channel-picker__option-sub {
  font-size: 11px;
  font-weight: 400;
  color: rgba(81, 95, 108, 0.85);
}

.okkwork-org-mkk-invite-dialog__hint {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  line-height: 1.4;
  color: rgba(20, 36, 52, 0.65);
}

.okkwork-org-invite-spec-picker .okkwork-org-mkk-channel-picker__trigger.is-placeholder .okkwork-org-mkk-channel-picker__label {
  color: rgba(81, 95, 108, 0.78);
}

.okkwork-org-invite-spec-picker .okkwork-org-mkk-channel-picker__trigger:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.okkwork-org-mkk-invite-dialog:has(.okkwork-org-invite-spec-picker.is-open) .okkwork-org-dialog__panel,
.okkwork-org-mkk-invite-dialog:has(.okkwork-org-invite-spec-picker.is-open) .okkwork-org-dialog__body {
  overflow: visible;
}


.okkwork-org-page__leadership {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.okkwork-org-page__lead-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.okkwork-org-card {
  position: relative;
  box-sizing: border-box;
  border-radius: 10px;
  min-width: 0;
}

.okkwork-org-card--head {
  display: grid;
  grid-template-columns: 12px 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  width: min(100%, 351px);
  padding: 10px 34px 10px 6px;
  background: rgba(6, 88, 162, 1);
  color: #fff;
  box-shadow: 0 4px 16px rgba(6, 88, 162, 0.22);
}

.okkwork-org-card--manager {
  display: grid;
  grid-template-columns: 12px 44px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
  width: min(100%, 280px);
  padding: 10px 34px 10px 6px;
  background: rgba(6, 88, 162, 1);
  color: #fff;
}

.okkwork-org-card__role {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.okkwork-org-card--head .okkwork-org-card__role {
  font-size: 18px;
}

.okkwork-org-card__name {
  grid-column: 3;
  grid-row: 2;
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.25;
  opacity: 0.95;
}

.okkwork-org-card__drag {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  flex-shrink: 0;
  cursor: grab;
}

.okkwork-org-card__drag:active {
  cursor: grabbing;
}

.okkwork-org-card__drag img {
  display: block;
  width: 10px;
  height: 10px;
  object-fit: contain;
  filter: none;
  opacity: 0.92;
  pointer-events: none;
}

.okkwork-org-card.is-dragging {
  opacity: 0.72;
}

.okkwork-org-card__menu {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.okkwork-org-card__menu:hover {
  background: rgba(255, 255, 255, 0.12);
}

.okkwork-org-card__menu img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.okkwork-org-card__avatar {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.25);
  border: 2px solid rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

.okkwork-org-card__quota {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}

.okkwork-org-page__departments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  align-items: start;
}

.okkwork-org-dept {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.okkwork-org-dept__toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  min-width: 0;
}

.okkwork-org-dept__head-drag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 10px;
  height: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
}

.okkwork-org-dept__head-drag:active {
  cursor: grabbing;
}

.okkwork-org-dept__head-row.is-dragging {
  opacity: 0.72;
}

.okkwork-org-dept.is-drop-target .okkwork-org-dept__box {
  border-color: rgba(6, 88, 162, 0.55);
  box-shadow: 0 0 0 2px rgba(6, 88, 162, 0.14);
  background: rgba(255, 255, 255, 0.98);
}

[data-okkwork-org-drag-handle] {
  -webkit-user-drag: element;
  user-select: none;
  touch-action: none;
}

.okkwork-org-dept__head-drag img,
.okkwork-org-staff__drag img,
[data-okkwork-org-drag-handle] img {
  display: block;
  width: 10px;
  height: 10px;
  object-fit: contain;
  object-position: center;
  filter: none;
  opacity: 1;
  pointer-events: none;
}

.okkwork-org-dept__title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 0;
}

.okkwork-org-dept__title {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(6, 88, 162, 1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.okkwork-org-dept__title[data-okkwork-org-editable],
.okkwork-org-dept__head-role[data-okkwork-org-editable],
.okkwork-org-staff__role[data-okkwork-org-editable],
.okkwork-org-staff__name[data-okkwork-org-editable],
.okkwork-org-card__role[data-okkwork-org-editable],
.okkwork-org-card__name[data-okkwork-org-editable] {
  cursor: text;
  border-radius: 4px;
}

.okkwork-org-dept__title[data-okkwork-org-editable][contenteditable="true"],
.okkwork-org-dept__head-role[data-okkwork-org-editable][contenteditable="true"],
.okkwork-org-staff__role[data-okkwork-org-editable][contenteditable="true"],
.okkwork-org-staff__name[data-okkwork-org-editable][contenteditable="true"],
.okkwork-org-card__role[data-okkwork-org-editable][contenteditable="true"],
.okkwork-org-card__name[data-okkwork-org-editable][contenteditable="true"] {
  outline: 2px solid rgba(6, 88, 162, 0.38);
  outline-offset: 2px;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
}

.okkwork-org-card--head .okkwork-org-card__role[data-okkwork-org-editable],
.okkwork-org-card--head .okkwork-org-card__name[data-okkwork-org-editable],
.okkwork-org-mkk-card .okkwork-org-card__role[data-okkwork-org-editable],
.okkwork-org-mkk-card .okkwork-org-card__name[data-okkwork-org-editable],
.okkwork-org-card--manager .okkwork-org-card__role[data-okkwork-org-editable],
.okkwork-org-card--manager .okkwork-org-card__name[data-okkwork-org-editable] {
  cursor: text;
  user-select: none;
  -webkit-user-select: none;
}

.okkwork-org-card--head .okkwork-org-card__role[data-okkwork-org-editable][contenteditable="true"],
.okkwork-org-card--head .okkwork-org-card__name[data-okkwork-org-editable][contenteditable="true"],
.okkwork-org-mkk-card .okkwork-org-card__role[data-okkwork-org-editable][contenteditable="true"],
.okkwork-org-mkk-card .okkwork-org-card__name[data-okkwork-org-editable][contenteditable="true"],
.okkwork-org-card--manager .okkwork-org-card__role[data-okkwork-org-editable][contenteditable="true"],
.okkwork-org-card--manager .okkwork-org-card__name[data-okkwork-org-editable][contenteditable="true"] {
  outline-color: rgba(255, 255, 255, 0.55);
  user-select: text;
  -webkit-user-select: text;
}

.okkwork-org-page--v15 .okkwork-org-dept__title[data-okkwork-org-editable] {
  cursor: text;
}

.okkwork-org-page--v15 .okkwork-org-dept__title[data-okkwork-org-editable][contenteditable="true"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  outline-color: rgba(255, 255, 255, 0.45);
}

.okkwork-org-dept__head-role[data-okkwork-org-editable][contenteditable="true"] {
  display: inline-block;
  min-width: 2ch;
}

.okkwork-org-dept__toolbar-menu,
.okkwork-org-dept__head-menu {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.okkwork-org-dept__toolbar-menu {
  flex-shrink: 0;
  transform: translateX(-3px);
  min-width: 20px;
  min-height: 20px;
}

.okkwork-org-dept__head-menu {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
  min-width: 20px;
  min-height: 20px;
}

.okkwork-org-dept__toolbar-menu:hover,
.okkwork-org-dept__head-menu:hover {
  background: rgba(6, 88, 162, 0.08);
}

.okkwork-org-dept__toolbar-menu img,
.okkwork-org-dept__head-menu img {
  display: block;
  width: 20px;
  height: 20px;
}

.okkwork-org-dept__head-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.okkwork-org-dept__invite-statuses {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.okkwork-org-dept__invite-status {
  display: inline-flex;
  width: 20px;
  height: 20px;
  align-items: center;
  justify-content: center;
}

.okkwork-org-dept__invite-status img {
  display: block;
  width: 20px;
  height: 20px;
}

.okkwork-org-card__menu img {
  filter: brightness(0) invert(1);
}

.okkwork-org-dept__box {
  border: 1px dashed rgba(6, 88, 162, 0.32);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  padding: 10px 10px 12px;
}

.okkwork-org-dept__head {
  margin-bottom: 0;
}

.okkwork-org-dept__head-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.okkwork-org-dept__head-text {
  flex: 1 1 0;
  min-width: 0;
}

.okkwork-org-dept__head-role {
  display: inline-block;
  margin: 0 0 4px;
  padding: 2px 8px;
  border-radius: 6px;
  background: #b1cbe2;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(6, 88, 162, 1);
}

.okkwork-org-dept__head-name {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  color: rgba(81, 95, 108, 0.95);
}

.okkwork-org-dept__head-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #dce8f2;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(6, 88, 162, 0.12);
  cursor: pointer;
}

.okkwork-org-dept-menu-popover {
  position: fixed;
  z-index: 10050;
  min-width: 280px;
  max-width: 320px;
  font-family: "Rubik", sans-serif;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.okkwork-org-dept-menu-popover.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.okkwork-org-dept-menu-popover__eyebrow {
  margin: 0 0 6px 4px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.72);
}

.okkwork-org-dept-menu-popover__panel {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 32, 58, 0.18);
  padding: 8px 0;
  overflow: hidden;
}

.okkwork-org-dept-menu-popover__item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.okkwork-org-dept-menu-popover__item:hover,
.okkwork-org-dept-menu-popover__item:focus-visible {
  background: rgba(6, 88, 162, 0.06);
  outline: none;
}

.okkwork-org-dept-menu-popover__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
}

.okkwork-org-dept-menu-popover__icon img {
  display: block;
  width: 26px;
  height: 26px;
}

.okkwork-org-dept-menu-popover__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex: 1 1 0;
  min-width: 0;
}

.okkwork-org-dept-menu-popover__title,
.okkwork-org-dept-menu-popover__desc {
  display: block;
  width: 100%;
}

.okkwork-org-dept-menu-popover__title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(45, 58, 72, 1);
}

.okkwork-org-dept-menu-popover__desc {
  margin: 0;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
  color: rgba(120, 132, 145, 1);
}

.okkwork-org-dept__divider {
  height: 0;
  margin: 10px 0;
  border-top: 1px dashed rgba(6, 88, 162, 0.16);
}

.okkwork-org-dept.is-drop-target .okkwork-org-dept__box {
  border-color: rgba(6, 88, 162, 0.5);
  box-shadow: 0 0 0 2px rgba(6, 88, 162, 0.1);
  background: rgba(255, 255, 255, 0.96);
}

.okkwork-org-dept__staff {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.okkwork-org-dept__drop-slot {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px dashed rgba(6, 88, 162, 0.42);
  border-radius: 8px;
  background: rgba(220, 231, 242, 0.92);
  box-sizing: border-box;
  pointer-events: none;
}

.okkwork-org-dept__drop-slot-label {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(6, 88, 162, 1);
}

.okkwork-org-dept.is-drop-slot-active .okkwork-org-dept__drop-slot {
  display: flex;
}

.okkwork-org-dept.is-drop-slot-active .okkwork-org-dept__add {
  opacity: 0.35;
  pointer-events: none;
}

.okkwork-org-dept__head {
  position: relative;
}

.okkwork-org-dept__head-drop-slot {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px dashed rgba(6, 88, 162, 0.42);
  border-radius: 8px;
  background: rgba(220, 231, 242, 0.96);
  box-sizing: border-box;
  pointer-events: none;
}

.okkwork-org-dept__head-drop-slot-label {
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: rgba(6, 88, 162, 1);
  text-align: center;
}

.okkwork-org-dept.is-head-drop-active .okkwork-org-dept__head-drop-slot {
  display: flex;
}

.okkwork-org-dept.is-head-drop-active .okkwork-org-dept__head-row {
  visibility: hidden;
}

.okkwork-org-staff {
  display: block;
  width: 100%;
  min-height: 0;
}

.okkwork-org-staff.is-dragging {
  opacity: 0.55;
}

.okkwork-org-staff__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.okkwork-org-staff__role-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 0;
}

.okkwork-org-staff__main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.okkwork-org-staff__drag {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: grab;
}

.okkwork-org-staff__drag:active {
  cursor: grabbing;
}

.okkwork-org-staff__avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #dce8f2;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(6, 88, 162, 0.12);
  cursor: pointer;
}

.okkwork-org-staff__name-box {
  flex: 1 1 0;
  min-width: 0;
  min-height: 32px;
  box-sizing: border-box;
  display: flex;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: 1px solid rgba(6, 88, 162, 0.12);
  border-radius: 8px;
  background: rgba(6, 88, 162, 0.06);
  overflow: hidden;
}

.okkwork-org-staff__name-box:focus-within {
  background: rgba(6, 88, 162, 0.1);
  border-color: rgba(6, 88, 162, 0.28);
  outline: 2px solid rgba(6, 88, 162, 0.2);
  outline-offset: 1px;
}

.okkwork-org-staff__name-box:focus-within .okkwork-org-staff__menu {
  background: #054a8c;
}

.okkwork-org-staff__role {
  margin: 0;
  min-width: 0;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  color: rgba(6, 88, 162, 1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.okkwork-org-staff__name {
  margin: 0;
  flex: 1 1 0;
  min-width: 0;
  padding: 4px 8px;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.25;
  color: rgba(81, 95, 108, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.okkwork-org-staff__menu {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-width: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(6, 88, 162, 0.14);
  border-radius: 0 7px 7px 0;
  background: #0658a2;
  color: #fff;
  cursor: pointer;
}

.okkwork-org-staff__menu:hover,
.okkwork-org-staff__menu:focus-visible {
  background: #054a8c;
  outline: none;
}

.okkwork-org-staff__menu-icon {
  display: block;
  width: 4px;
  height: 14px;
}

.okkwork-org-staff__name[data-okkwork-org-editable]:empty::before,
.okkwork-org-staff__name[data-okkwork-org-editable][contenteditable="true"]:empty::before {
  content: "Введите имя специалиста";
  color: rgba(81, 95, 108, 0.45);
}

.okkwork-org-staff__name-input {
  display: block;
  width: 100%;
  margin: 0;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.25;
  color: rgba(81, 95, 108, 0.95);
  outline: none;
}

.okkwork-org-staff__name-input::placeholder {
  color: rgba(81, 95, 108, 0.45);
  font-weight: 300;
}

.okkwork-org-dept__add {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 12px auto 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(6, 88, 162, 1);
  color: #fff;
  font-family: "Rubik", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(6, 88, 162, 0.22);
  pointer-events: auto;
  position: relative;
  z-index: 3;
}

.okkwork-org-dept__add:hover {
  background: #054a8a;
}

.okkwork-org-page__empty {
  width: 100%;
  padding: 28px 20px;
  border: 1px dashed rgba(6, 88, 162, 0.22);
  border-radius: 12px;
  text-align: center;
  color: rgba(81, 95, 108, 0.9);
  font-size: 14px;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.65);
}

.okkwork-org-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  z-index: 101600;
  padding: 0;
  border: 0;
  background: transparent;
  width: min(520px, calc(100vw - 32px));
  max-width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: visible;
}

.okkwork-org-dialog:not([open]) {
  display: none;
}

.okkwork-org-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.okkwork-org-dialog__panel {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  max-height: min(80vh, 680px);
  overflow-y: auto;
}

.okkwork-org-mkk-invite-dialog__panel {
  width: 100%;
}

.okkwork-org-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(6, 88, 162, 0.12);
}

.okkwork-org-dialog__head h2 {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(6, 88, 162, 1);
}

.okkwork-org-dialog__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(81, 95, 108, 0.9);
  font-family: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.okkwork-org-dialog__close:hover {
  background: rgba(6, 88, 162, 0.08);
}

.okkwork-org-dialog__body {
  padding: 16px;
}

.okkwork-org-dialog__hint {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(81, 95, 108, 0.9);
}

.okkwork-org-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.okkwork-org-dept-setup-dialog,
.okkwork-org-dept-setup-dialog .okkwork-org-dialog__body,
.okkwork-org-dept-setup-dialog .okkwork-org-dialog__hint,
.okkwork-org-dept-setup-dialog .okkwork-org-page__btn {
  font-family: "Rubik", sans-serif;
}

.okkwork-org-dept-setup-dialog__steps {
  margin: 0 0 16px;
  padding-left: 20px;
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(81, 95, 108, 0.95);
}

.okkwork-org-dept-setup-dialog__steps li + li {
  margin-top: 10px;
}

.okkwork-org-dept-setup-dialog__steps strong {
  color: rgba(6, 88, 162, 1);
  font-weight: 500;
}

.okkwork-org-dept-setup-dialog__actions {
  margin-top: 4px;
}

.okkwork-org-perm-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.okkwork-org-perm-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(6, 88, 162, 0.08);
  font-size: 13px;
  line-height: 1.4;
  color: rgba(81, 95, 108, 0.95);
}

.okkwork-org-perm-list li:last-child {
  border-bottom: 0;
}

.okkwork-org-perm-list strong {
  display: block;
  margin-bottom: 2px;
  color: rgba(6, 88, 162, 1);
  font-family: "Rubik", sans-serif;
  font-weight: 500;
}

/* ===== Страница "Права доступа" (slide-in справа, как профиль) ===== */
:root {
  --okkwork-permissions-panel-width: min(1180px, 100vw);
  --okkwork-permissions-slide-ms: 0.4s;
  --okkwork-permissions-slide-ease: ease-in-out;
}

.okkwork-permissions-page {
  position: fixed;
  inset: 0;
  z-index: 101530;
  display: none;
  pointer-events: none;
  visibility: hidden;
}

.okkwork-permissions-page.is-open {
  display: block;
  visibility: visible;
}

.okkwork-permissions-page__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  transition: opacity var(--okkwork-permissions-slide-ms) var(--okkwork-permissions-slide-ease);
}

.okkwork-permissions-page.is-open.is-profile-entering .okkwork-permissions-page__backdrop,
.okkwork-permissions-page.is-open.is-slide-open .okkwork-permissions-page__backdrop {
  opacity: 1;
}

.okkwork-permissions-page__shell {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--okkwork-permissions-panel-width);
  max-width: var(--okkwork-permissions-panel-width);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-left: 1px solid rgba(6, 88, 162, 0.16);
  box-shadow: -4px 0 24px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transform: translateX(100%);
  transform-origin: right center;
  transition: transform var(--okkwork-permissions-slide-ms) var(--okkwork-permissions-slide-ease);
  will-change: transform;
}

.okkwork-permissions-page.is-open.is-profile-entering .okkwork-permissions-page__shell,
.okkwork-permissions-page.is-open.is-slide-open .okkwork-permissions-page__shell {
  transform: translateX(0);
}

.okkwork-permissions-page.is-open.is-profile-leaving .okkwork-permissions-page__shell {
  transform: translateX(100%);
}

.okkwork-permissions-page.is-open.is-profile-entering,
.okkwork-permissions-page.is-open.is-slide-open {
  pointer-events: auto;
}

/* Орг. структура слева: клики проходят в схему, а не в прозрачный слой «Права доступа» */
body.okkwork-org-structure-open #okkwork-permissions-page.is-open {
  pointer-events: none !important;
}

body.okkwork-org-structure-open #okkwork-permissions-page.is-open .okkwork-permissions-page__shell {
  pointer-events: auto !important;
}

.okkwork-permissions-page.is-open.is-profile-leaving {
  pointer-events: none;
}

.okkwork-permissions-page__collapse.profile-panel__close {
  position: absolute;
  top: 12px;
  right: 17px;
  z-index: 6;
}

.okkwork-permissions-page.is-open .okkwork-permissions-page__collapse .profile-panel__close-ico {
  transform: rotate(90deg);
}

.okkwork-permissions-page__header {
  flex-shrink: 0;
  padding: 16px 52px 14px 24px;
  border-bottom: 1px solid rgba(6, 88, 162, 0.12);
  background: #fff;
}

.okkwork-permissions-page__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 32px;
}

.okkwork-permissions-page__title {
  margin: 0;
  font-family: "Rubik", sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  color: rgba(6, 88, 162, 1);
}

.okkwork-permissions-page__title-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.okkwork-permissions-page__scroll {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: auto;
}

.okkwork-permissions-page__content {
  padding: 18px 24px 30px;
}

@media (prefers-reduced-motion: reduce) {
  .okkwork-permissions-page__shell,
  .okkwork-permissions-page__backdrop {
    transition: none !important;
  }

  .okkwork-permissions-page.is-open.is-profile-entering .okkwork-permissions-page__shell,
  .okkwork-permissions-page.is-open.is-slide-open .okkwork-permissions-page__shell {
    transform: translateX(0) !important;
  }
}

.okkwork-perm-scroll-cluster {
  position: relative;
  width: 100%;
  min-width: 0;
}

.okkwork-perm-split {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  position: relative;
}

.okkwork-perm-split::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--okk-perm-left-col-width, 300px);
  width: 1px;
  background: rgba(6, 88, 162, 0.1);
  pointer-events: none;
  z-index: 5;
}

.okkwork-perm-split__labels {
  flex: 0 0 var(--okk-perm-left-col-width, 300px);
  width: var(--okk-perm-left-col-width, 300px);
  position: relative;
  z-index: 4;
  background: #fff;
  box-shadow: none;
}

.okkwork-perm-split__roles {
  flex: 1 1 auto;
  min-width: 0;
}

.okkwork-perm-table-wrap {
  width: 100%;
  overflow: visible;
}

.okkwork-perm-roles-scroll-head {
  display: grid;
  grid-template-columns: var(--okk-perm-left-col-width, 300px) minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  height: 30px;
  margin: 0 0 4px;
  padding: 0 2px;
  position: relative;
  z-index: 30;
}

.okkwork-perm-roles-scroll-head .okkwork-perm-toolbar {
  margin: 0;
  align-self: center;
}

.okkwork-perm-roles-scroll-head .okkwork-perm-toolbar-btn.profile-page__footer-copy {
  width: 30px;
  height: 30px;
  border-radius: 6px;
}

.okkwork-perm-roles-scroll-head .okkwork-perm-toolbar-btn.profile-page__footer-copy .okkwork-perm-toolbar-btn__icon {
  width: 24px;
  height: 24px;
}

.okkwork-perm-scroll-cluster .okkwork-perm-roles-scroll-ctrl {
  justify-self: end;
}

.okkwork-perm-roles-scroll-wrap {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding-right: 0;
  overflow-x: hidden;
  overflow-y: hidden;
}

.okkwork-perm-roles-scroll-wrap.is-scrollable {
  overflow-x: auto;
}

.okkwork-perm-scroll-cluster .okkwork-perm-roles-scroll-ctrl {
  position: static;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  pointer-events: auto;
}

.okkwork-perm-scroll-cluster .okkwork-vd-spec-scroll-ctrl {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.okkwork-perm-scroll-cluster .okkwork-vd-spec-scroll-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(6, 88, 162, 0.28);
  border-radius: 999px;
  background: rgba(241, 245, 249, 1);
  color: #0658a2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease,
    transform 0.05s ease;
}

.okkwork-perm-scroll-cluster .okkwork-vd-spec-scroll-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 2px 8px rgba(6, 88, 162, 0.14);
}

.okkwork-perm-scroll-cluster .okkwork-vd-spec-scroll-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.okkwork-perm-scroll-cluster .okkwork-vd-spec-scroll-btn:focus-visible {
  outline: 2px solid rgba(6, 88, 162, 0.45);
  outline-offset: 2px;
}

.okkwork-perm-scroll-cluster .okkwork-vd-spec-scroll-btn:disabled {
  opacity: 0.32;
  cursor: default;
}

.okkwork-perm-scroll-cluster .okkwork-vd-spec-scroll-btn__svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.okkwork-perm-table {
  --okk-perm-bg: #fff;
  --okk-perm-band-b: #f3f8fc;
  --okk-perm-group-bg: #edf4fa;
  --okk-perm-row-line: rgba(6, 88, 162, 0.1);
  --okk-perm-group-line: rgba(6, 88, 162, 0.12);
  --okk-perm-card-radius: 12px;
  --okk-perm-card-shadow: 0 4px 16px rgba(6, 88, 162, 0.06);
  --okk-perm-left-col-width: 300px;
  --okk-perm-role-col-width: 118px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-family: "Rubik", sans-serif;
}

.okkwork-perm-table th,
.okkwork-perm-table td {
  box-sizing: border-box;
}

.okkwork-perm-table--labels {
  width: 100%;
}

.okkwork-perm-table--roles {
  width: calc(var(--okk-perm-role-count, 5) * var(--okk-perm-role-col-width));
}

.okkwork-perm-table thead th {
  background: transparent;
  color: rgba(6, 88, 162, 1);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  vertical-align: top;
  white-space: nowrap;
}

.okkwork-perm-table--labels thead th {
  padding: 6px 10px 10px;
}

.okkwork-perm-table--roles thead th {
  padding: 4px 4px 8px;
  vertical-align: top;
}

.okkwork-perm-table thead th:first-child,
.okkwork-perm-table thead th.okkwork-perm-roles-head,
.okkwork-perm-table tbody td:first-child {
  width: var(--okk-perm-left-col-width);
  min-width: var(--okk-perm-left-col-width);
  max-width: var(--okk-perm-left-col-width);
}

.okkwork-perm-split__labels .okkwork-perm-table thead th,
.okkwork-perm-split__labels .okkwork-perm-table tbody td {
  width: 100%;
  min-width: 0;
  max-width: none;
}

.okkwork-perm-split__labels .okkwork-perm-table thead th:first-child,
.okkwork-perm-split__labels .okkwork-perm-table tbody td:first-child {
  position: static;
  left: auto;
  z-index: auto;
  box-shadow: none;
}

.okkwork-perm-table thead th.okkwork-perm-roles-head {
  text-align: left;
}

.okkwork-perm-col-left {
  width: var(--okk-perm-left-col-width);
}

.okkwork-perm-col-role {
  width: var(--okk-perm-role-col-width);
}

.okkwork-perm-table thead th.okkwork-perm-role-col,
.okkwork-perm-table tbody td.okkwork-perm-role-cell {
  width: var(--okk-perm-role-col-width);
  min-width: var(--okk-perm-role-col-width);
  max-width: var(--okk-perm-role-col-width);
}

.okkwork-perm-table thead th.okkwork-perm-role-col {
  position: relative;
  z-index: 1;
  overflow: hidden;
  white-space: normal;
  padding-left: 4px;
  padding-right: 4px;
}

.okkwork-perm-table thead {
  position: relative;
  z-index: 6;
}

.okkwork-perm-roles-head__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  overflow: visible;
}

.okkwork-perm-roles-head__title-row {
  display: flex;
  align-items: flex-start;
  min-height: 0;
}

.okkwork-perm-roles-head__desc,
.okkwork-perm-staff-row__desc {
  margin: 0;
}

.okkwork-perm-roles-head .okkwork-perm-item-label,
.okkwork-perm-staff-row .okkwork-perm-item-label {
  margin: 0 0 2px;
}

.okkwork-perm-roles-head .okkwork-perm-item-label {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: rgba(81, 95, 108, 1);
}

.okkwork-perm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  overflow: visible;
}

.okkwork-perm-table thead th.okkwork-perm-roles-head {
  overflow: visible;
}

.okkwork-perm-toolbar-btn.profile-page__footer-copy {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.okkwork-perm-toolbar-tip {
  position: fixed;
  z-index: 102250;
  max-width: min(320px, calc(100vw - 24px));
  padding: 6px 10px;
  border-radius: 8px;
  border: 0.5px solid #b4c9dc;
  background: #edf4fa;
  color: #033d72;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(3, 61, 114, 0.14);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
}

.okkwork-perm-toolbar-tip.is-visible {
  opacity: 1;
  visibility: visible;
}

.okkwork-perm-toolbar-tip[hidden] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

.okkwork-perm-toolbar-btn.profile-page__footer-copy .okkwork-perm-toolbar-btn__icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  pointer-events: none;
}

.okkwork-perm-toolbar-btn.profile-page__footer-copy.is-copied {
  color: rgba(6, 88, 162, 0.85);
  background: rgba(6, 88, 162, 0.08);
}

.okkwork-perm-role-col__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  padding-top: 6px;
  padding-bottom: 8px;
  box-sizing: border-box;
}

.okkwork-perm-role-col__pill-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.okkwork-perm-role-delete-btn {
  display: none;
  position: absolute;
  top: -5px;
  right: -7px;
  z-index: 6;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #c50f0f;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

.okkwork-perm-role-delete-btn__x {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.5px);
}

.is-perm-role-delete-mode .okkwork-perm-role-delete-btn {
  display: inline-flex;
}

.is-perm-role-delete-mode .okkwork-perm-table thead th.okkwork-perm-role-col {
  overflow: visible;
}

.is-perm-role-delete-mode .okkwork-perm-toolbar-btn[data-okkwork-perm-toolbar="delete-role"] {
  background: rgba(197, 15, 15, 0.1);
}

.okkwork-perm-role-clear-btn {
  display: none;
  position: absolute;
  top: -5px;
  right: -7px;
  z-index: 6;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

.okkwork-perm-role-clear-btn__icon {
  display: block;
  width: 10px;
  height: 10px;
  object-fit: contain;
  pointer-events: none;
}

.is-perm-role-clear-mode .okkwork-perm-role-clear-btn {
  display: inline-flex;
}

.is-perm-role-clear-mode .okkwork-perm-table thead th.okkwork-perm-role-col {
  overflow: visible;
}

.is-perm-role-clear-mode .okkwork-perm-toolbar-btn[data-okkwork-perm-toolbar="clear-role"] {
  background: rgba(6, 88, 162, 0.1);
}

.okkwork-perm-role-template-save-btn {
  display: none;
  position: absolute;
  top: -5px;
  right: -7px;
  z-index: 6;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.18);
}

.okkwork-perm-role-template-save-btn__plus {
  display: block;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-0.5px);
  pointer-events: none;
}

.is-perm-template-create-mode .okkwork-perm-role-template-save-btn {
  display: inline-flex;
}

.is-perm-template-create-mode .okkwork-perm-table thead th.okkwork-perm-role-col {
  overflow: visible;
}

.is-perm-template-create-mode .okkwork-perm-toolbar-btn[data-okkwork-perm-toolbar="template-role"] {
  background: rgba(22, 163, 74, 0.12);
}

.okkwork-perm-toolbar-copy-wrap {
  position: relative;
  z-index: 2;
}

.okkwork-perm-toolbar-btn[data-okkwork-perm-toolbar="copy-role"].is-active {
  background: rgba(6, 88, 162, 0.1);
}

.okkwork-perm-toolbar-btn[data-okkwork-perm-toolbar="template-role"].is-active {
  background: rgba(6, 88, 162, 0.1);
}

.okkwork-perm-copy-panel {
  position: fixed;
  z-index: 102240;
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 260px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(6, 88, 162, 0.14);
  box-shadow: 0 10px 28px rgba(6, 88, 162, 0.16);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.okkwork-perm-copy-panel.is-open {
  display: flex;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.okkwork-perm-copy-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.okkwork-perm-copy-panel__submit {
  width: 100%;
  min-height: 34px;
  margin-top: 2px;
}

.okkwork-perm-template-panel {
  position: fixed;
  z-index: 102260;
  display: none;
  flex-direction: column;
  gap: 10px;
  width: 260px;
  padding: 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(6, 88, 162, 0.14);
  box-shadow: 0 10px 28px rgba(6, 88, 162, 0.16);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.okkwork-perm-template-panel.is-open {
  display: flex;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.okkwork-perm-template-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.okkwork-perm-template-panel__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow-x: hidden;
  overflow-y: auto;
}

.okkwork-perm-template-panel__list > li[data-template-id] {
  cursor: default;
}

.okkwork-perm-template-panel__row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.okkwork-perm-template-panel__item {
  display: block;
  flex: 1;
  min-width: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1e293b;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.okkwork-perm-template-panel__item:hover,
.okkwork-perm-template-panel__row:hover .okkwork-perm-template-panel__item {
  background: rgba(6, 88, 162, 0.06);
}

.okkwork-perm-template-panel__delete {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-right: 2px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.okkwork-perm-template-panel__delete:hover,
.okkwork-perm-template-panel__delete:focus-visible {
  background: rgba(197, 15, 15, 0.1);
  outline: none;
}

.okkwork-perm-template-panel__delete-icon {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
  pointer-events: none;
}

.okkwork-perm-template-panel__empty {
  margin: 0;
  padding: 8px 2px 2px;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(81, 95, 108, 0.92);
  text-align: center;
}

.okkwork-perm-template-panel__create {
  width: 100%;
  min-height: 34px;
  margin-top: 2px;
}

.okkwork-perm-role-picker {
  position: relative;
}

.okkwork-perm-role-picker__label {
  margin: 0 0 6px;
  font-family: "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(81, 95, 108, 1);
}

.okkwork-perm-role-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(6, 88, 162, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.okkwork-perm-role-picker__trigger:hover {
  border-color: rgba(6, 88, 162, 0.32);
}

.okkwork-perm-role-picker__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.okkwork-perm-role-picker__chevron {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid rgba(6, 88, 162, 0.55);
  border-bottom: 1.5px solid rgba(6, 88, 162, 0.55);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.12s ease;
}

.okkwork-perm-role-picker.is-open .okkwork-perm-role-picker__chevron {
  transform: rotate(-135deg) translateY(1px);
}

.okkwork-perm-role-picker__list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 3;
  max-height: 180px;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(6, 88, 162, 0.14);
  box-shadow: 0 8px 24px rgba(6, 88, 162, 0.14);
}

.okkwork-perm-role-picker__list[hidden] {
  display: none !important;
}

.okkwork-perm-role-picker__option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #1e293b;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.okkwork-perm-role-picker__option:hover,
.okkwork-perm-role-picker__option:focus-visible {
  background: rgba(6, 88, 162, 0.08);
  outline: none;
}

.okkwork-perm-role-picker__option.is-selected {
  background: rgba(6, 88, 162, 0.12);
  color: #0658a2;
}

.okkwork-perm-role-col__pill-btn {
  display: flex;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.okkwork-perm-role-col__pill {
  display: flex;
  width: 100%;
  max-width: 100%;
  align-items: center;
  justify-content: center;
}

.okkwork-perm-role-col.is-active .okkwork-perm-role-pill {
  box-shadow: 0 0 0 2px rgba(6, 88, 162, 0.35);
}

.okkwork-perm-role-pill-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: 100%;
  padding-bottom: 0;
  box-sizing: border-box;
}

.okkwork-perm-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 30px;
  padding: 0 4px;
  border-radius: 8px;
  background: rgba(6, 88, 162, 1);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.okkwork-perm-role-pill[data-perm-role-editable] {
  cursor: text;
}

.okkwork-perm-role-pill[contenteditable="true"] {
  outline: 2px solid rgba(255, 255, 255, 0.65);
  outline-offset: -2px;
  cursor: text;
}

.okkwork-perm-role-badge {
  position: static;
  transform: none;
  left: auto;
  top: auto;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(6, 88, 162, 0.18);
  color: rgba(6, 88, 162, 1);
  font-family: "Rubik", sans-serif;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.okkwork-perm-staff-row td:not(:first-child) {
  text-align: center;
}

.okkwork-perm-staff-row td {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--okk-perm-row-line);
  box-shadow: none !important;
}

.okkwork-perm-staff-row + .okkwork-perm-acc-section td {
  border-top: none;
}

.okkwork-perm-table--roles .okkwork-perm-staff-row td.okkwork-perm-role-cell:not(:last-child) {
  border-right: none;
}

.okkwork-perm-split__labels .okkwork-perm-staff-row td:first-child {
  box-shadow: none !important;
}

.okkwork-perm-roles-scroll-wrap {
  position: relative;
}

.okkwork-perm-table--labels .okkwork-perm-acc-section td {
  border-right: none;
}

.okkwork-perm-table--roles .okkwork-perm-acc-section td:first-child,
.okkwork-perm-table--roles .okkwork-perm-acc-item td:first-child,
.okkwork-perm-table--roles .okkwork-perm-staff-row td:first-child {
  border-left: none !important;
  border-radius: 0;
}

.okkwork-perm-table--roles tbody td.okkwork-perm-role-cell {
  border-left: none;
}

.okkwork-perm-table--roles thead th.okkwork-perm-role-col {
  border-left: none;
}

.okkwork-perm-table--roles thead th.okkwork-perm-role-col:not(:last-child),
.okkwork-perm-table--roles tbody td.okkwork-perm-role-cell:not(:last-child) {
  border-right: none;
}

.okkwork-perm-table--roles .okkwork-perm-acc-section.is-collapsed td:first-child {
  border-radius: 0;
  box-shadow: none;
}

.okkwork-perm-table--labels .okkwork-perm-acc-section td:first-child {
  border-radius: var(--okk-perm-card-radius) 0 0 0;
}

.okkwork-perm-table--roles .okkwork-perm-acc-section td:last-child {
  border-radius: 0 var(--okk-perm-card-radius) 0 0;
}

.okkwork-perm-table--labels .okkwork-perm-acc-section.is-collapsed td:first-child {
  border-radius: var(--okk-perm-card-radius) 0 0 var(--okk-perm-card-radius);
  box-shadow: var(--okk-perm-card-shadow);
}

.okkwork-perm-table--roles .okkwork-perm-acc-section.is-collapsed td:last-child {
  border-radius: 0 var(--okk-perm-card-radius) var(--okk-perm-card-radius) 0;
  box-shadow: var(--okk-perm-card-shadow);
}

.okkwork-perm-table--labels .okkwork-perm-acc-item td {
  border-left: 1px solid var(--okk-perm-group-line);
  border-right: none;
}

.okkwork-perm-table--labels .okkwork-perm-acc-item td:first-child {
  width: 100%;
  min-width: 0;
  max-width: none;
  box-sizing: border-box;
}

.okkwork-perm-table--labels .okkwork-perm-acc-item--last td {
  border-bottom: 1px solid var(--okk-perm-group-line) !important;
  border-radius: 0 0 0 var(--okk-perm-card-radius);
  box-shadow: var(--okk-perm-card-shadow);
}

.okkwork-perm-table--roles .okkwork-perm-acc-item--last td {
  border-bottom: 1px solid var(--okk-perm-group-line) !important;
}

.okkwork-perm-table--roles .okkwork-perm-acc-item--last td:last-child {
  border-radius: 0 0 var(--okk-perm-card-radius) 0;
  box-shadow: var(--okk-perm-card-shadow);
}

.okkwork-perm-staff-row td.okkwork-perm-role-cell {
  padding-left: 4px;
  padding-right: 4px;
}

.okkwork-perm-role-staff {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  overflow: hidden;
}

.okkwork-perm-role-avatars {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  max-width: calc(100% - 22px);
  overflow: hidden;
  padding-left: 0;
}

.okkwork-perm-role-avatar {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-left: -8px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
  background: #e8eef5;
  cursor: pointer;
}

.okkwork-perm-role-avatar:first-child {
  margin-left: 0;
  z-index: 1;
}

.okkwork-perm-role-avatar:nth-child(2) {
  z-index: 2;
}

.okkwork-perm-role-avatar:nth-child(3) {
  z-index: 3;
}

.okkwork-perm-role-avatar:nth-child(4) {
  z-index: 4;
}

.okkwork-perm-role-avatar:nth-child(5) {
  z-index: 5;
}

.okkwork-perm-role-avatar:nth-child(6) {
  z-index: 6;
}

.okkwork-perm-role-add.okkwork-org-page__add-dept {
  position: relative;
  top: auto;
  left: auto;
  z-index: 1;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-width: 1px;
  font-size: 0;
  line-height: 0;
  pointer-events: auto;
  cursor: pointer;
  box-shadow:
    0 0 0 1px #fff,
    0 3px 12px rgba(6, 88, 162, 0.45);
}

.okkwork-perm-role-add.okkwork-org-page__add-dept::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background:
    linear-gradient(#fff, #fff) center / 8px 1.5px no-repeat,
    linear-gradient(#fff, #fff) center / 1.5px 8px no-repeat;
}

.okkwork-perm-staff-picker {
  position: fixed;
  z-index: 101540;
  min-width: 220px;
  max-width: 280px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.okkwork-perm-staff-picker.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.okkwork-perm-staff-picker__panel {
  max-height: min(320px, 50vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 32, 58, 0.18);
  padding: 6px 0;
}

.okkwork-perm-staff-picker__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 10px 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(6, 88, 162, 0.12);
}

.okkwork-perm-staff-picker__create {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(6, 88, 162, 0.22);
  border-radius: 8px;
  background: rgba(6, 88, 162, 0.06);
  color: rgba(6, 88, 162, 1);
  font-family: "Rubik", sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.okkwork-perm-staff-picker__create:hover {
  background: rgba(6, 88, 162, 0.12);
}

.okkwork-perm-staff-picker__group + .okkwork-perm-staff-picker__group {
  border-top: 1px solid rgba(6, 88, 162, 0.08);
  margin-top: 4px;
  padding-top: 4px;
}

.okkwork-perm-staff-picker__dept {
  margin: 0;
  padding: 6px 12px 4px;
  font-family: "Rubik", sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(6, 88, 162, 0.75);
}

.okkwork-perm-staff-picker__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: "Rubik", sans-serif;
}

.okkwork-perm-staff-picker__item:hover,
.okkwork-perm-staff-picker__item:focus-visible {
  background: rgba(6, 88, 162, 0.06);
  outline: none;
}

.okkwork-perm-staff-picker__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e8eef5;
}

.okkwork-perm-staff-picker__name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(45, 58, 72, 1);
}

.okkwork-perm-staff-picker__role {
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.25;
  color: rgba(120, 132, 145, 1);
  text-align: right;
  white-space: nowrap;
}

.okkwork-org-leadership-swap-picker .okkwork-perm-staff-picker__item {
  gap: 10px;
}

.okkwork-perm-staff-picker__empty {
  margin: 0;
  padding: 12px 14px;
  font-family: "Rubik", sans-serif;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(120, 132, 145, 1);
}

.okkwork-perm-table tbody td {
  border-bottom: none;
  box-shadow: inset 0 -1px 0 var(--okk-perm-row-line);
  padding: 10px 12px;
  vertical-align: middle;
  background: var(--okk-perm-bg);
}

.okkwork-perm-table tbody tr.okkwork-perm-item-row td,
.okkwork-perm-table tbody tr.okkwork-perm-item-row td:first-child {
  background: var(--okk-perm-bg) !important;
}

.okkwork-perm-acc-gap td {
  height: 8px;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
}

.okkwork-perm-table--roles .okkwork-perm-acc-gap td.okkwork-perm-acc-gap-cell:not(:last-child) {
  border-right: none !important;
}

.okkwork-perm-acc-section td {
  padding: 0;
  vertical-align: middle;
  box-shadow: none !important;
  border-top: 1px solid var(--okk-perm-group-line);
  border-left: 1px solid var(--okk-perm-group-line);
  border-right: none;
  border-bottom: none;
  background: color-mix(in srgb, var(--perm-group-color, #0658a2) 6%, white) !important;
}

.okkwork-perm-table--roles .okkwork-perm-acc-section td {
  border-left: none;
}

.okkwork-perm-table--roles .okkwork-perm-acc-section td:not(:last-child) {
  border-right: none;
}

.okkwork-perm-table tbody tr.okkwork-perm-acc-section:not(.is-collapsed) {
  position: relative;
  z-index: 2;
}

.okkwork-perm-acc-section:not(.is-collapsed) td {
  position: relative;
  z-index: 2;
  overflow: visible;
  border-bottom: 1px solid var(--okk-perm-group-line);
}

.okkwork-perm-acc-section:not(.is-collapsed) + tr.okkwork-perm-acc-item td {
  position: relative;
  z-index: 1;
  padding-top: 16px;
}

.okkwork-perm-acc-section td:first-child {
  border-radius: var(--okk-perm-card-radius) 0 0 0;
}

.okkwork-perm-acc-section td:last-child {
  border-radius: 0 var(--okk-perm-card-radius) 0 0;
}

.okkwork-perm-acc-section.is-collapsed td {
  border-bottom: 1px solid var(--okk-perm-group-line);
}

.okkwork-perm-acc-section.is-collapsed td:first-child {
  border-radius: var(--okk-perm-card-radius) 0 0 var(--okk-perm-card-radius);
  box-shadow: var(--okk-perm-card-shadow);
}

.okkwork-perm-acc-section.is-collapsed td:last-child {
  border-radius: 0 var(--okk-perm-card-radius) var(--okk-perm-card-radius) 0;
  box-shadow: var(--okk-perm-card-shadow);
}

.okkwork-perm-acc-summary {
  position: relative;
  z-index: 22;
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 14px 22px 56px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: "Rubik", sans-serif;
  color: inherit;
  overflow: visible;
}

.okkwork-perm-acc-summary:focus-visible {
  outline: 2px solid rgba(6, 88, 162, 0.45);
  outline-offset: -2px;
}

.okkwork-perm-acc-chevron {
  position: absolute;
  left: 50%;
  bottom: -7px;
  z-index: 50;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, 50%);
  box-shadow:
    0 1px 4px rgba(6, 88, 162, 0.16),
    0 0 0 1px rgba(6, 88, 162, 0.22);
  pointer-events: auto;
  cursor: pointer;
}

.okkwork-perm-table tbody tr.okkwork-perm-acc-section.is-collapsed {
  position: relative;
  z-index: 1;
}

.okkwork-perm-acc-section.is-collapsed .okkwork-perm-acc-chevron {
  box-shadow:
    0 1px 4px rgba(6, 88, 162, 0.12),
    0 0 0 1px rgba(6, 88, 162, 0.18);
}

.okkwork-perm-acc-chevron::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 6px;
  height: 6px;
  margin: auto;
  border-right: 2px solid rgba(6, 88, 162, 0.85);
  border-bottom: 2px solid rgba(6, 88, 162, 0.85);
  transform: rotate(-135deg);
  transition: transform 0.2s ease;
}

.okkwork-perm-acc-section.is-collapsed .okkwork-perm-acc-chevron::before {
  transform: rotate(45deg);
}

.okkwork-perm-group-icon {
  position: absolute;
  left: 14px;
  top: 12px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--perm-group-color, #0658a2) 14%, white);
  color: var(--perm-group-color, #0658a2);
  display: grid;
  place-items: center;
  font-size: 14px;
  line-height: 1;
}

.okkwork-perm-group-icon--img {
  font-size: 0;
  color: transparent;
}

.okkwork-perm-group-icon--img::after {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background-color: var(--perm-group-color, #0658a2);
  mask-image: var(--perm-group-icon);
  mask-mode: alpha;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-image: var(--perm-group-icon);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.okkwork-perm-acc-titles {
  flex: 1;
  min-width: 0;
}

.okkwork-perm-acc-badge-cell {
  position: relative;
  vertical-align: top;
  padding: 0 !important;
  min-height: 48px;
}

.okkwork-perm-acc-role-spacer {
  padding: 0 !important;
  vertical-align: top;
}

.okkwork-perm-acc-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  background: var(--perm-group-color, #0658a2);
  color: #fff;
  border-radius: 50%;
}

.okkwork-perm-acc-item td {
  border-left: 1px solid var(--okk-perm-group-line);
  border-right: none;
  background: #fff !important;
  box-shadow: none !important;
}

.okkwork-perm-table--roles .okkwork-perm-acc-item td {
  border-left: none;
}

.okkwork-perm-table--roles .okkwork-perm-acc-item td:not(:last-child) {
  border-right: none;
}

.okkwork-perm-acc-item td:first-child {
  box-sizing: border-box;
}

.okkwork-perm-acc-item--stripe td {
  background: rgba(6, 88, 162, 0.03) !important;
}

.okkwork-perm-table tbody tr.okkwork-perm-acc-item--last td {
  border-bottom: 1px solid var(--okk-perm-group-line) !important;
}

.okkwork-perm-table--labels tbody tr.okkwork-perm-acc-item--last td:first-child {
  border-radius: 0 0 0 var(--okk-perm-card-radius);
  box-shadow: var(--okk-perm-card-shadow);
}

.okkwork-perm-table--roles tbody tr.okkwork-perm-acc-item--last td:last-child {
  border-radius: 0 0 var(--okk-perm-card-radius) 0;
  box-shadow: var(--okk-perm-card-shadow);
}

.okkwork-perm-acc-item.is-collapsed {
  display: none;
}

.okkwork-perm-acc-section .okkwork-perm-group-chip {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--perm-group-color, #0658a2);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 2px;
}

.okkwork-perm-acc-section .okkwork-perm-group-chip__desc {
  display: block;
  margin-top: 0;
  font-size: 11px;
  font-weight: 500;
  color: rgba(81, 95, 108, 0.65);
}

.okkwork-perm-acc-section .okkwork-perm-item-desc {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  color: rgba(81, 95, 108, 0.65);
}

.okkwork-perm-item-label {
  font-weight: 700;
  color: rgba(81, 95, 108, 1);
  font-size: 13px;
  line-height: 1.2;
  margin-bottom: 2px;
}

.okkwork-perm-item-desc {
  font-weight: 500;
  color: rgba(81, 95, 108, 0.65);
  font-size: 12px;
  line-height: 1.2;
}

.okkwork-perm-toggle-cell {
  text-align: center;
}

.okkwork-perm-toggle-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
  position: relative;
}

.okkwork-perm-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.okkwork-perm-toggle-wrap .perm-toggle__track {
  width: 34px;
  height: 18px;
  border-radius: 999px;
  background: #d1d9e2;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.okkwork-perm-toggle-wrap .perm-toggle__track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.okkwork-perm-toggle-wrap.is-on .perm-toggle__track,
.okkwork-perm-toggle:checked + .perm-toggle__track {
  background: rgba(17, 188, 32, 1);
}

.okkwork-perm-toggle-wrap.is-on .perm-toggle__track::after,
.okkwork-perm-toggle:checked + .perm-toggle__track::after {
  transform: translateX(16px);
}

.okkwork-perm-toggle-wrap:has(.okkwork-perm-toggle:focus-visible) .perm-toggle__track {
  box-shadow: 0 0 0 2px rgba(17, 188, 32, 0.35);
}

.okkwork-perm-toggle-wrap.is-readonly {
  opacity: 0.72;
  pointer-events: none;
}

html[data-okkwork-org-restore="1"] #0_1 {
  visibility: hidden !important;
}

html[data-okkwork-org-restore="1"] #okkwork-org-structure-page.is-open {
  display: block !important;
  visibility: visible !important;
}

html[data-okkwork-org-restore="1"] body,
body.okkwork-org-structure-open {
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .okkwork-org-page__header {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .okkwork-org-page__header-actions {
    justify-content: flex-start;
  }

  .okkwork-org-page--v15 .okkwork-org-page__departments {
    flex-wrap: nowrap;
    padding-top: 32px;
  }
}

/* Результат приглашения (менеджер ОКК / руководитель подразделения) */
body.okkwork-invite-result-open {
  overflow: hidden;
}

.okkwork-invite-result {
  position: fixed;
  inset: 0;
  z-index: 102500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  box-sizing: border-box;
  font-family: "Rubik", "Rubik-Medium", "Segoe UI", system-ui, sans-serif;
}

.okkwork-invite-result__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(56, 189, 248, 0.18) 0%, transparent 55%),
    rgba(8, 22, 42, 0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.okkwork-invite-result__frame {
  position: relative;
  width: min(520px, 100%);
  max-height: min(90vh, 820px);
  padding: 2px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(6, 88, 162, 0.92), rgba(14, 165, 233, 0.75));
  box-shadow: 0 28px 70px rgba(6, 40, 72, 0.38);
  animation: okkwork-invite-result-enter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes okkwork-invite-result-enter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.okkwork-invite-result__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 816px);
  overflow: auto;
  background: #f8fafc;
  border-radius: 20px;
}

.okkwork-invite-result__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.okkwork-invite-result__close:hover {
  background: rgba(255, 255, 255, 0.32);
}

.okkwork-invite-result__hero {
  position: relative;
  padding: 26px 24px 22px;
  text-align: center;
  color: #fff;
}

.okkwork-invite-result__hero--prepared {
  background: linear-gradient(145deg, #0b5cad 0%, #0678c8 42%, #0ea5e9 100%);
}

.okkwork-invite-result__hero--success {
  background: linear-gradient(145deg, #0d7a4d 0%, #16a34a 45%, #2eb97a 100%);
}

.okkwork-invite-result__hero--warning {
  background: linear-gradient(145deg, #b45309 0%, #d97706 42%, #f59e0b 100%);
}

.okkwork-invite-result__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.okkwork-invite-result__title {
  margin: 0;
  font: 600 22px/1.25 "Rubik", sans-serif;
}

.okkwork-invite-result__role {
  margin: 8px 0 0;
  font: 500 14px/1.35 "Rubik", sans-serif;
  opacity: 0.92;
}

.okkwork-invite-result__body {
  padding: 20px 24px 8px;
}

.okkwork-invite-result__meta {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dbe7f2;
  display: grid;
  gap: 10px;
}

.okkwork-invite-result__meta-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 10px;
  align-items: start;
}

.okkwork-invite-result__meta-row dt {
  margin: 0;
  font: 500 13px/1.4 "Rubik", sans-serif;
  color: #64748b;
}

.okkwork-invite-result__meta-row dd {
  margin: 0;
  font: 600 14px/1.4 "Rubik", sans-serif;
  color: #1e293b;
  word-break: break-word;
}

.okkwork-invite-result__warn {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fdba74;
  color: #9a3412;
}

.okkwork-invite-result__warn-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ea580c;
  color: #fff;
  font: 700 14px/24px "Rubik", sans-serif;
  text-align: center;
}

.okkwork-invite-result__warn p {
  margin: 0;
  font: 500 14px/1.45 "Rubik", sans-serif;
}

.okkwork-invite-result__link-block {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #eef6fc;
  border: 1px solid #c5d9eb;
}

.okkwork-invite-result__link-label {
  margin: 0 0 10px;
  font: 600 13px/1.35 "Rubik", sans-serif;
  color: #0658a2;
}

.okkwork-invite-result__link-label span {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  color: #4b6f8f;
}

.okkwork-invite-result__link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.okkwork-invite-result__link {
  flex: 1 1 200px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #b8d0e6;
  font: 500 12px/1.4 "Rubik", sans-serif;
  color: #0a6bc0;
  text-decoration: none;
  word-break: break-all;
}

.okkwork-invite-result__link:hover {
  border-color: #0658a2;
  text-decoration: underline;
}

.okkwork-invite-result__copy {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid #0658a2;
  border-radius: 10px;
  background: linear-gradient(180deg, #0a6bc0 0%, #0658a2 100%);
  color: #fff;
  font: 600 13px/1.2 "Rubik", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}

.okkwork-invite-result__copy:hover {
  filter: brightness(1.05);
}

.okkwork-invite-result__copy.is-copied {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  border-color: #15803d;
}

.okkwork-invite-result__footnote {
  margin: 0 0 6px;
  font: 400 13px/1.5 "Rubik", sans-serif;
  color: #5b6f82;
}

.okkwork-invite-result__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 24px 20px;
}

.okkwork-invite-result__btn {
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 11px;
  border: 1px solid transparent;
  font: 600 14px/1.2 "Rubik", sans-serif;
  cursor: pointer;
}

.okkwork-invite-result__btn--primary {
  background: linear-gradient(180deg, #0a6bc0 0%, #0658a2 100%);
  color: #fff;
}

.okkwork-invite-result__btn--primary:hover {
  filter: brightness(1.05);
}

.okkwork-invite-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.okkwork-invite-result__btn--balance {
  background: #fff;
  color: #0658a2;
  border-color: #b8d4ef;
}

.okkwork-invite-result__btn--balance:hover {
  background: #f3f9ff;
}

@media (max-width: 520px) {
  .okkwork-invite-result__meta-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .okkwork-invite-result__link-row {
    flex-direction: column;
  }

  .okkwork-invite-result__copy {
    width: 100%;
  }
}

[data-okkwork-org-project-dd].is-switching [data-okkwork-org-project-dd-text] {
  opacity: 0.72;
  transition: opacity 0.15s ease;
}

[data-okkwork-org-project-dd].is-switching [data-okkwork-org-project-dd-list] {
  pointer-events: none;
}
