/* OKKwork — резерв места в шапке и режим «только просмотр» по dataScope RBAC */

/* Специфичность выше okkwork-header-chrome.css: html body #129_29 { display:flex !important } */
html.okkwork-rbac-restricted-known body #129_29.Pixso-frame-129_29,
html.okkwork-rbac-restricted-known body #129_29.okkwork-tooltip-host,
html.okkwork-rbac-restricted-known body #129_33.Pixso-frame-129_33,
html.okkwork-rbac-restricted-known body #129_33.okkwork-license-countdown,
html.okkwork-rbac-restricted-known body .okkwork-license-countdown,
html.okkwork-rbac-restricted-known body [data-okkwork-perm="balance"],
html.okkwork-rbac-restricted-known body [data-okkwork-perm="tariff"],
html.okkwork-rbac-restricted-known body [data-okkwork-perm="referral"],
html.okkwork-rbac-restricted-known body [data-okkwork-referral-open],
html.okkwork-rbac-pending:not(.okkwork-rbac-cached) body #129_29.Pixso-frame-129_29,
html.okkwork-rbac-pending:not(.okkwork-rbac-cached) body #129_29.okkwork-tooltip-host,
html.okkwork-rbac-pending:not(.okkwork-rbac-cached) body #129_33.Pixso-frame-129_33,
html.okkwork-rbac-pending:not(.okkwork-rbac-cached) body #129_33.okkwork-license-countdown,
html.okkwork-rbac-pending:not(.okkwork-rbac-cached) body [data-okkwork-perm],
html body #129_29.Pixso-frame-129_29.okkwork-perm-denied,
html body #129_29.okkwork-tooltip-host.okkwork-perm-denied,
html body #129_33.Pixso-frame-129_33.okkwork-perm-denied,
html body #129_33.okkwork-license-countdown.okkwork-perm-denied,
html body .okkwork-header-icon-host.okkwork-perm-denied[data-okkwork-perm="referral"],
html body [data-okkwork-referral-open].okkwork-perm-denied,
.okkwork-perm-denied[data-okkwork-perm="referral"],
.okkwork-perm-denied[data-okkwork-referral-open] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Pixso-шапка принудительно показывает иконки — RBAC должен перебивать это правило */
.Pixso-frame-219_2 .okkwork-header-icon-host.okkwork-perm-denied,
.Pixso-frame-219_2 #129_29.okkwork-perm-denied,
.Pixso-frame-219_2 .okkwork-license-countdown.okkwork-perm-denied {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  cursor: default !important;
}

.Pixso-frame-219_2 .okkwork-header-icon-host.okkwork-perm-denied:not(.okkwork-perm-reserved),
.Pixso-frame-219_2 #129_29.okkwork-perm-denied:not(.okkwork-perm-reserved) {
  display: none !important;
}

.okkwork-perm-reserved {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.Pixso-frame-219_2 .okkwork-header-icon-host.okkwork-perm-reserved,
.Pixso-frame-219_2 #129_29.okkwork-perm-reserved,
.Pixso-frame-219_2 .okkwork-license-countdown.okkwork-perm-reserved,
html body #129_29.okkwork-perm-reserved,
html body #129_33.okkwork-perm-reserved {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body.okkwork-org-view-only .okkwork-org-page [data-okkwork-org-editable],
body.okkwork-org-view-only .okkwork-org-page [contenteditable="true"] {
  pointer-events: none;
  user-select: text;
  -webkit-user-modify: read-only;
}

body.okkwork-org-view-only .okkwork-org-page [data-okkwork-org-add-spec],
body.okkwork-org-view-only .okkwork-org-page [data-okkwork-org-add-dept],
body.okkwork-org-view-only .okkwork-org-page [data-okkwork-org-mkk-branch-add-dept],
body.okkwork-org-view-only .okkwork-org-page [data-okkwork-org-add-dept-mkk],
body.okkwork-org-view-only .okkwork-org-page [data-okkwork-org-assign-dept-head],
body.okkwork-org-view-only .okkwork-org-page [data-okkwork-org-permissions],
body.okkwork-org-view-only .okkwork-org-page .okkwork-org-dept__menu,
body.okkwork-org-view-only .okkwork-org-page .okkwork-org-dept__add {
  display: none !important;
}

[data-project-add].okkwork-perm-denied,
[data-okkwork-mkk-add-checklist].okkwork-perm-denied,
[data-okkwork-mkk-add-department].okkwork-perm-denied,
.okkwork-vd-dd__add-li.okkwork-perm-denied,
.okkwork-crm-dropdown-footer.okkwork-perm-denied,
#okkwork-stage4-add-subdivision.okkwork-perm-denied,
#okkwork-stage4-checklist-add.okkwork-perm-denied {
  display: none !important;
}

body.okkwork-analytics-view-only #okkwork-analytics-page input,
body.okkwork-analytics-view-only #okkwork-analytics-page select,
body.okkwork-analytics-view-only #okkwork-analytics-page textarea,
body.okkwork-analytics-view-only #okkwork-analytics-page button:not([data-okkwork-analytics-close]) {
  pointer-events: none;
  opacity: 0.72;
}
