/* OKKwork — working layout on phones/tablets (not a scaled 1920 canvas). */

html.okkwork-mobile-work {
  --okkwork-scale: 1 !important;
}

html.okkwork-mobile-work body {
  overflow-x: hidden;
}

html.okkwork-mobile-work .scroll-container,
html.okkwork-mobile-work .Pixso-canvas-0_1 {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  display: block !important;
  min-height: 100dvh;
}

html.okkwork-mobile-work .Pixso-frame-219_2,
html.okkwork-mobile-work #219_2.Pixso-frame-219_2 {
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
}

html.okkwork-mobile-work input,
html.okkwork-mobile-work select,
html.okkwork-mobile-work textarea {
  font-size: 16px !important;
}

html.okkwork-mobile-work .okkwork-help-search-shortcut {
  display: none !important;
}

/* —— Header —— */
html.okkwork-mobile-work #okkwork-unified-header,
html.okkwork-mobile-work #okkwork-unified-header[data-okkwork-header-persist="1"] {
  position: sticky !important;
  top: 0 !important;
  z-index: 101200 !important;
  height: auto !important;
  min-height: 56px !important;
  max-height: none !important;
  overflow: visible !important;
  pointer-events: auto !important;
}

html.okkwork-mobile-work body .Pixso-frame-219_3,
html.okkwork-mobile-work body #219_3.Pixso-frame-219_3,
html.okkwork-mobile-work #okkwork-unified-header .Pixso-frame-219_3 {
  position: relative !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 10px !important;
  padding: 8px 12px !important;
  padding-top: max(8px, env(safe-area-inset-top, 0px)) !important;
  background: #dce7f2 !important;
  pointer-events: auto !important;
  overflow: visible !important;
}

html.okkwork-mobile-work #219_3 > *,
html.okkwork-mobile-work #okkwork-unified-header > * {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
}

html.okkwork-mobile-work #129_38,
html.okkwork-mobile-work .Pixso-rectangle-129_38 {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

html.okkwork-mobile-work .okkwork-header-brand-link {
  order: 1;
  z-index: 1;
  min-width: 0;
  flex: 1 1 auto;
}

html.okkwork-mobile-work .okkwork-brand__tagline,
html.okkwork-mobile-work #219_5 {
  display: none !important;
}

html.okkwork-mobile-work .okkwork-brand__title,
html.okkwork-mobile-work #219_4 {
  font-size: 20px !important;
  line-height: 1.1 !important;
}

html.okkwork-mobile-work #129_23,
html.okkwork-mobile-work .Pixso-frame-129_23 {
  order: 3;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  z-index: 1;
}

html.okkwork-mobile-work #129_24,
html.okkwork-mobile-work .frame-content-129_23,
html.okkwork-mobile-work .Pixso-frame-129_24 {
  display: flex !important;
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  gap: 6px;
}

html.okkwork-mobile-work .okkwork-header-icon-host {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
}

html.okkwork-mobile-work #129_29,
html.okkwork-mobile-work .Pixso-frame-129_29 {
  order: 4;
  z-index: 1;
}

html.okkwork-mobile-work #129_33,
html.okkwork-mobile-work .okkwork-license-countdown {
  order: 5;
  z-index: 1;
}

html.okkwork-mobile-work body #okkwork-unified-header .Pixso-frame-129_19.okkwork-support-host,
html.okkwork-mobile-work body .Pixso-frame-129_19.okkwork-support-host,
html.okkwork-mobile-work body [id="129_19"].okkwork-support-host {
  left: auto !important;
  order: 6;
  z-index: 2;
}

html.okkwork-mobile-work #129_22,
html.okkwork-mobile-work .Pixso-paragraph-129_22 {
  display: none !important;
}

html.okkwork-mobile-work #219_6,
html.okkwork-mobile-work .okkwork-user-menu-host {
  order: 7;
  margin-left: auto;
  z-index: 2;
  width: 44px !important;
  height: 44px !important;
}

html.okkwork-mobile-work #129_35,
html.okkwork-mobile-work .okkwork-help-search-host,
html.okkwork-mobile-work #okkwork-unified-header > #129_35 {
  order: 10;
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 44px !important;
  z-index: 1;
}

html.okkwork-mobile-work .okkwork-help-search-host.Pixso-frame-129_35:hover,
html.okkwork-mobile-work .okkwork-help-search-host.Pixso-frame-129_35:focus-within {
  width: 100% !important;
  max-width: 100% !important;
}

html.okkwork-mobile-work .okkwork-help-search-input,
html.okkwork-mobile-work #okkwork-help-search-input {
  position: absolute !important;
  left: 36px !important;
  right: 10px !important;
  top: 8px !important;
  width: auto !important;
  font-size: 16px !important;
}

/* —— Stage cards —— */
html.okkwork-mobile-work .okkwork-stagecards {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: calc(100% - 24px) !important;
  max-width: 100% !important;
  margin: 10px 12px 0 !important;
  z-index: 6;
}

html.okkwork-mobile-work .okkwork-stagecards .layout {
  flex-direction: column !important;
}

html.okkwork-mobile-work .okkwork-stagecards .grid {
  grid-template-columns: 1fr !important;
}

html.okkwork-mobile-work .okkwork-stagecards .nav {
  width: auto !important;
  min-width: 0 !important;
  flex-direction: row !important;
  padding: 0 14px 14px !important;
}

html.okkwork-mobile-work .okkwork-stagecards .card {
  min-height: 0;
}

html.okkwork-mobile-work .okkwork-stagecards .btn,
html.okkwork-mobile-work .okkwork-stagecards #okkwork-stagecards-next {
  min-height: 44px !important;
}

/* —— Stage 1 project fields —— */
html.okkwork-mobile-work .okkwork-stage1-topblock {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: calc(100% - 24px) !important;
  max-width: 100% !important;
  margin: 12px 12px 0 !important;
  height: auto !important;
}

html.okkwork-mobile-work .okkwork-stage1-topblock .Pixso-frame-169_174 {
  width: 100% !important;
  height: auto !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 12px 16px;
  box-sizing: border-box;
}

html.okkwork-mobile-work .okkwork-stage1-topblock .stroke-wrapper-169_175 {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

html.okkwork-mobile-work .okkwork-stage1-topblock .Pixso-frame-171_11,
html.okkwork-mobile-work .okkwork-stage1-topblock .Pixso-frame-171_10,
html.okkwork-mobile-work .okkwork-stage1-topblock .Pixso-frame-169_178 {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

html.okkwork-mobile-work .okkwork-stage1-topblock .okkwork-stage1-ops-toolbar {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: flex-start !important;
}

html.okkwork-mobile-work .okkwork-stage1-topblock .okkwork-stage4-checklist-stats {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  order: 20;
}

html.okkwork-mobile-work .okkwork-stage1-topblock .okkwork-stage4-checklist-stats__content {
  flex-wrap: wrap !important;
  gap: 8px 12px !important;
}

html.okkwork-mobile-work .okkwork-stage1-topblock .okkwork-stage4-add-subdivision-center,
html.okkwork-mobile-work .okkwork-stage1-topblock .okkwork-stage4-add-subdivision-btn {
  position: relative !important;
  left: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 44px;
}

html.okkwork-mobile-work .okkwork-s1-fieldhost {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: calc(100% - 24px) !important;
  max-width: 100% !important;
  margin: 12px 12px 24px !important;
}

html.okkwork-mobile-work .okkwork-s1-fieldhost__layout {
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
}

html.okkwork-mobile-work .okkwork-s1-fieldhost .okkwork-stage1-add-subdivision-fieldhost,
html.okkwork-mobile-work .okkwork-stage1-org-preview {
  flex: 1 1 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-left: 0 !important;
}

html.okkwork-mobile-work .okkwork-stage1-org-preview {
  --okk-s1-org-panel-w: 100%;
  pointer-events: auto;
}

/* —— Stage 2 —— */
html.okkwork-mobile-work .okkwork-stage2-dual-panel {
  margin: 12px !important;
  max-width: calc(100% - 24px) !important;
  grid-template-columns: 1fr !important;
}

html.okkwork-mobile-work body[data-okkwork-stage="2"] .Pixso-frame-219_2:has(.okkwork-stage2-dual-panel) {
  height: auto !important;
}

/* —— Stage 3 scoring actions that sit at 1650px —— */
html.okkwork-mobile-work .okkwork-scoring-select-btn,
html.okkwork-mobile-work .okkwork-scoring-select-btn.Pixso-frame-219_565,
html.okkwork-mobile-work .okkwork-scoring-select-btn.Pixso-frame-219_584,
html.okkwork-mobile-work .okkwork-scoring-select-btn.Pixso-frame-219_470 {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: calc(100% - 24px) !important;
  margin: 8px 12px !important;
}

/* —— MKK workspace —— */
html.okkwork-mobile-work #okkwork-mkk-violation-dashboard {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  width: calc(100% - 16px) !important;
  max-width: 100% !important;
  margin: 8px 8px 20px !important;
}

html.okkwork-mobile-work #okkwork-mkk-violation-dashboard .okkwork-vd__layout-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

html.okkwork-mobile-work #okkwork-mkk-violation-dashboard .okkwork-vd__layout-grid > .okkwork-vd__toolbar,
html.okkwork-mobile-work #okkwork-mkk-violation-dashboard .okkwork-vd__layout-grid > .okkwork-vd__matrix-band,
html.okkwork-mobile-work #okkwork-mkk-violation-dashboard .okkwork-vd__layout-grid > .okkwork-vd__right-rail {
  grid-column: auto !important;
  grid-row: auto !important;
  width: 100% !important;
}

html.okkwork-mobile-work .okkwork-mkk-ws__tabs {
  flex-wrap: wrap;
}

html.okkwork-mobile-work .okkwork-mkk-ws__tab,
html.okkwork-mobile-work .okkwork-mkk-work-timer__btn {
  min-height: 44px;
}

html.okkwork-mobile-work .okkwork-vd__matrix-band {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* —— Org overlay —— */
html.okkwork-mobile-work .okkwork-org-page__header {
  grid-template-columns: 1fr !important;
  padding: 10px 12px !important;
}

html.okkwork-mobile-work .okkwork-org-page__back {
  min-height: 44px;
}

html.okkwork-mobile-work .okkwork-org-page--v15 .okkwork-org-page__departments {
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  justify-content: stretch !important;
  padding-top: 24px !important;
  gap: 14px !important;
}

html.okkwork-mobile-work .okkwork-org-dept-column {
  flex: 1 1 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

html.okkwork-mobile-work .okkwork-org-page__add-dept {
  width: 44px;
  height: 44px;
}

html.okkwork-mobile-work .okkwork-org-page__canvas-wrap {
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
