/* OKKwork: единый стиль pop-up (как okkwork-referral-requisites-modal__frame) */

/* —— Затемнение фона —— */
.okkwork-stage4-confirm,
.okkwork-stage2-confirm,
.okkwork-stage1-confirm,
.okkwork-stage4-import-help,
.okkwork-stage1-import-help,
.okkwork-stage1-integration-help,
.okkwork-stage4-templates-modal {
  background: rgba(8, 20, 34, 0.52) !important;
  padding: 24px 16px !important;
  box-sizing: border-box !important;
}

.okkwork-stage4-confirm,
.okkwork-stage2-confirm,
.okkwork-stage1-confirm {
  background: rgba(0, 0, 0, 0.55) !important;
}

.okkwork-logout-confirm__backdrop {
  background: rgba(8, 20, 34, 0.52) !important;
}

/* —— Stage 1 / 2 / 4: подтверждение — белая панель с синей рамкой —— */
.okkwork-stage4-confirm__panel,
.okkwork-stage2-confirm__panel,
.okkwork-stage1-confirm__panel {
  position: relative !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
  width: min(520px, 92vw) !important;
  max-width: none !important;
  padding: 0 !important;
  border-radius: 22px !important;
  background: #ffffff !important;
  border: 2px solid rgba(6, 88, 162, 0.72) !important;
  box-shadow:
    0 16px 48px rgba(6, 40, 72, 0.14),
    0 8px 24px rgba(0, 0, 0, 0.1) !important;
  overflow: hidden !important;
}

.okkwork-stage4-confirm__panel::before,
.okkwork-stage2-confirm__panel::before,
.okkwork-stage1-confirm__panel::before {
  content: none !important;
  display: none !important;
}

.okkwork-stage4-confirm__panel > *,
.okkwork-stage2-confirm__panel > *,
.okkwork-stage1-confirm__panel > * {
  position: relative;
  z-index: 1;
}

.okkwork-stage4-confirm__body,
.okkwork-stage2-confirm__body,
.okkwork-stage1-confirm__body {
  padding: 26px 30px 10px !important;
  font-family: "Rubik", "Rubik-Medium", "Inter-Medium", sans-serif !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: rgba(59, 85, 109, 1) !important;
}

.okkwork-stage4-confirm__actions,
.okkwork-stage2-confirm__actions,
.okkwork-stage1-confirm__actions {
  gap: 12px !important;
  padding: 12px 30px 26px !important;
}

.okkwork-stage4-confirm__actions button,
.okkwork-stage2-confirm__actions button,
.okkwork-stage1-confirm__actions button {
  appearance: none !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 10px 18px !important;
  font-family: "Rubik", "Rubik-Medium", "Inter-Medium", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  line-height: 1.25 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  border: 1px solid rgba(6, 88, 162, 0.28) !important;
  background: #dce7f2 !important;
  background-image: none !important;
  color: #0658a2 !important;
  box-shadow: 0 8px 18px rgba(6, 88, 162, 0.1) !important;
  transition: filter 120ms ease, transform 120ms ease !important;
}

.okkwork-stage4-confirm__actions button.okkwork-stage4-confirm__yes,
.okkwork-stage2-confirm__actions button.okkwork-stage2-confirm__yes,
.okkwork-stage1-confirm__actions button.okkwork-stage1-confirm__yes {
  border-color: rgba(255, 91, 110, 0.55) !important;
  background: rgba(255, 236, 236, 1) !important;
  background-image: none !important;
  box-shadow: 0 14px 35px rgba(255, 91, 110, 0.12) !important;
  color: rgba(200, 40, 40, 1) !important;
}

.okkwork-stage4-confirm__actions button.okkwork-stage4-confirm__no,
.okkwork-stage2-confirm__actions button.okkwork-stage2-confirm__no,
.okkwork-stage1-confirm__actions button.okkwork-stage1-confirm__no {
  border: 1px solid rgba(6, 88, 162, 0.28) !important;
  background: #dce7f2 !important;
  background-image: none !important;
  box-shadow: 0 8px 18px rgba(6, 88, 162, 0.1) !important;
  color: #0658a2 !important;
}

.okkwork-stage4-confirm__actions button.okkwork-stage4-confirm__yes:hover,
.okkwork-stage2-confirm__actions button.okkwork-stage2-confirm__yes:hover,
.okkwork-stage1-confirm__actions button.okkwork-stage1-confirm__yes:hover,
.okkwork-stage4-confirm__actions button.okkwork-stage4-confirm__no:hover,
.okkwork-stage2-confirm__actions button.okkwork-stage2-confirm__no:hover,
.okkwork-stage1-confirm__actions button.okkwork-stage1-confirm__no:hover {
  filter: brightness(1.03) !important;
  transform: translateY(-1px);
}

.okkwork-stage4-confirm__actions button.okkwork-stage4-confirm__yes:active,
.okkwork-stage2-confirm__actions button.okkwork-stage2-confirm__yes:active,
.okkwork-stage1-confirm__actions button.okkwork-stage1-confirm__yes:active,
.okkwork-stage4-confirm__actions button.okkwork-stage4-confirm__no:active,
.okkwork-stage2-confirm__actions button.okkwork-stage2-confirm__no:active,
.okkwork-stage1-confirm__actions button.okkwork-stage1-confirm__no:active {
  filter: brightness(0.98) !important;
  transform: translateY(0);
}

.okkwork-stage4-confirm__actions button.okkwork-stage4-confirm__yes:focus-visible,
.okkwork-stage2-confirm__actions button.okkwork-stage2-confirm__yes:focus-visible,
.okkwork-stage1-confirm__actions button.okkwork-stage1-confirm__yes:focus-visible,
.okkwork-stage4-confirm__actions button.okkwork-stage4-confirm__no:focus-visible,
.okkwork-stage2-confirm__actions button.okkwork-stage2-confirm__no:focus-visible,
.okkwork-stage1-confirm__actions button.okkwork-stage1-confirm__no:focus-visible {
  outline: 1px solid rgba(6, 88, 162, 0.35) !important;
  outline-offset: 2px !important;
}

/* —— Внешняя рамка (frame) — logout, help —— */
.okkwork-logout-confirm__panel {
  width: min(420px, calc(100vw - 40px)) !important;
  max-width: 420px !important;
}

.okkwork-stage4-import-help__panel,
.okkwork-stage1-import-help__panel,
.okkwork-stage1-integration-help__panel,
.okkwork-logout-confirm__panel,
.okkwork-stage4-templates-modal__panel {
  position: relative !important;
  z-index: 1 !important;
  box-sizing: border-box !important;
  padding: 2px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(6, 88, 162, 0.95), rgba(26, 95, 158, 0.95)) !important;
  border: none !important;
  box-shadow: 0 28px 70px rgba(6, 40, 72, 0.35) !important;
  overflow: hidden !important;
}

.okkwork-stage4-import-help__panel::before,
.okkwork-stage1-import-help__panel::before,
.okkwork-stage1-integration-help__panel::before,
.okkwork-logout-confirm__panel::before,
.okkwork-stage4-templates-modal__panel::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 16px;
  background: #f8fafc;
  z-index: 0;
  pointer-events: none;
}

.okkwork-stage4-import-help__panel > *,
.okkwork-stage1-import-help__panel > *,
.okkwork-stage1-integration-help__panel > *,
.okkwork-logout-confirm__panel > *,
.okkwork-stage4-templates-modal__panel > * {
  position: relative;
  z-index: 1;
}

/* —— Подтверждения: контейнер —— */
.okkwork-stage4-confirm,
.okkwork-stage2-confirm,
.okkwork-stage1-confirm {
  position: fixed !important;
  inset: 0 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 20000 !important;
}

.okkwork-stage4-confirm.is-open,
.okkwork-stage2-confirm.is-open,
.okkwork-stage1-confirm.is-open {
  display: flex !important;
}

.okkwork-stage4-confirm__actions,
.okkwork-stage2-confirm__actions,
.okkwork-stage1-confirm__actions {
  display: flex !important;
  justify-content: flex-end !important;
}

/* —— Выход / подсказка этапа 3 —— */
.okkwork-logout-confirm__panel {
  padding: 2px !important;
  font-family: "Rubik", "Rubik-Medium", system-ui, sans-serif !important;
}

.okkwork-logout-confirm__title {
  margin: 0 0 14px !important;
  padding: 22px 22px 0 !important;
  font-family: "Rubik", "Rubik-Medium", system-ui, sans-serif !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: rgba(81, 95, 108, 1) !important;
}

.okkwork-logout-confirm__actions {
  padding: 0 22px 22px !important;
}

.okkwork-logout-confirm__actions button {
  font-family: "Rubik", "Rubik-Medium", system-ui, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}

.okkwork-logout-confirm__cancel {
  background: rgba(6, 88, 162, 0.08) !important;
  color: rgba(6, 88, 162, 0.9) !important;
}

.okkwork-logout-confirm__cancel:hover {
  background: rgba(6, 88, 162, 0.14) !important;
}

.okkwork-logout-confirm__yes {
  background: rgba(6, 88, 162, 1) !important;
  color: #fff !important;
}

/* —— Import / integration help —— */
.okkwork-stage4-import-help__head,
.okkwork-stage1-import-help__head,
.okkwork-stage1-integration-help__head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 18px 22px 14px !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(6, 88, 162, 0.12) !important;
}

.okkwork-stage4-import-help__title,
.okkwork-stage1-import-help__title,
.okkwork-stage1-integration-help__title {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  font-family: "Rubik-Bold", "Rubik", sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(6, 88, 162, 1) !important;
}

.okkwork-stage4-import-help__close,
.okkwork-stage1-import-help__close,
.okkwork-stage1-integration-help__close {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: rgba(6, 88, 162, 0.08) !important;
  color: rgba(6, 88, 162, 0.9) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  padding: 0 !important;
}

.okkwork-stage4-import-help__close:hover,
.okkwork-stage1-import-help__close:hover,
.okkwork-stage1-integration-help__close:hover {
  background: rgba(6, 88, 162, 0.14) !important;
}

.okkwork-stage4-import-help__body,
.okkwork-stage1-import-help__body,
.okkwork-stage1-integration-help__body {
  padding: 14px 22px 6px !important;
  font-family: "Rubik", "Rubik-Medium", system-ui, sans-serif !important;
  color: rgba(81, 95, 108, 1) !important;
}

.okkwork-stage4-import-help__actions,
.okkwork-stage1-import-help__actions {
  padding: 12px 22px 22px !important;
}

.okkwork-stage4-import-help,
.okkwork-stage1-import-help {
  z-index: 20320 !important;
}

.okkwork-stage4-import-help__panel,
.okkwork-stage1-import-help__panel {
  width: min(560px, 100%) !important;
  max-width: none !important;
}

/* —— Import help: внутренние элементы —— */
.okkwork-stage4-import-help__steps,
.okkwork-stage1-import-help__steps {
  display: grid;
  gap: 10px;
}

.okkwork-stage4-import-help__step,
.okkwork-stage1-import-help__step {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(6, 88, 162, 0.1);
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fc 100%);
  font-size: 14px;
  line-height: 1.45;
}

.okkwork-stage4-import-help__files,
.okkwork-stage1-import-help__files {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.okkwork-stage4-import-help__file,
.okkwork-stage1-import-help__file {
  appearance: none;
  border: 1px solid rgba(6, 88, 162, 0.22);
  background: #fff;
  color: rgba(6, 88, 162, 1);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  font-family: "Rubik", "Rubik-Medium", sans-serif;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(6, 88, 162, 0.08);
  transition: background 120ms ease, transform 120ms ease;
}

.okkwork-stage4-import-help__file:hover,
.okkwork-stage1-import-help__file:hover {
  background: rgba(6, 88, 162, 0.06);
}

.okkwork-stage4-import-help__file:focus-visible,
.okkwork-stage1-import-help__file:focus-visible {
  outline: 2px solid rgba(6, 88, 162, 0.45);
  outline-offset: 2px;
}

.okkwork-stage4-import-help__hint,
.okkwork-stage1-import-help__hint {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(81, 95, 108, 0.95);
}

.okkwork-stage4-import-help__picked,
.okkwork-stage1-import-help__picked {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(6, 88, 162, 0.18);
  background: #fff;
  color: rgba(15, 23, 42, 0.88);
  font-weight: 600;
  font-size: 13px;
}

.okkwork-stage4-import-help__btn,
.okkwork-stage1-import-help__btn {
  appearance: none !important;
  font-family: "Rubik", "Rubik-Medium", sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 11px 22px !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  border: 0 !important;
  background: linear-gradient(180deg, #0a6bc4 0%, #0658a2 100%) !important;
  background-image: linear-gradient(180deg, #0a6bc4 0%, #0658a2 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 18px rgba(6, 88, 162, 0.28) !important;
  transition: filter 120ms ease, transform 120ms ease !important;
}

.okkwork-stage4-import-help__btn:hover,
.okkwork-stage1-import-help__btn:hover {
  filter: brightness(1.05) !important;
  transform: translateY(-1px);
}

.okkwork-stage4-import-help__btn:active,
.okkwork-stage1-import-help__btn:active {
  filter: brightness(0.98) !important;
  transform: translateY(0);
}

.okkwork-stage4-import-help__btn:focus-visible,
.okkwork-stage1-import-help__btn:focus-visible {
  outline: 2px solid rgba(6, 88, 162, 0.45) !important;
  outline-offset: 2px !important;
}

/* —— Шаблоны чек-листа —— */
.okkwork-stage4-templates-modal__head {
  padding: 18px 22px 14px !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(6, 88, 162, 0.12) !important;
}

.okkwork-stage4-templates-modal__title {
  font-family: "Rubik-Bold", "Rubik", sans-serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: rgba(6, 88, 162, 1) !important;
}

.okkwork-stage4-templates-modal__close {
  border-radius: 8px !important;
  background: rgba(6, 88, 162, 0.08) !important;
  color: rgba(6, 88, 162, 0.9) !important;
}

.okkwork-stage4-templates-modal__close:hover {
  background: rgba(6, 88, 162, 0.14) !important;
}

.okkwork-stage4-templates-modal__body {
  padding: 10px 12px 14px !important;
}
