/* Clickup / Gemba — modal no modelo ficha (cp-purchase-sheet), igual compras/VIPP */

#gembaFormModal .gemba-purchase-sheet,
#gembaGuiasModal .gemba-purchase-sheet {
  width: min(1120px, 96vw) !important;
  max-width: 96vw !important;
  height: min(860px, 94vh) !important;
  max-height: 94vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #f8fafc !important;
  color: #273142 !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 8px !important;
  box-shadow: 0 24px 70px rgba(2, 6, 23, .34) !important;
  color-scheme: light;
}

#gembaFormModal .gemba-purchase-sheet > .gemba-modal-head,
#gembaGuiasModal .gemba-purchase-sheet > .gemba-modal-head,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet > .gemba-modal-head,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet > .gemba-modal-head {
  flex: 0 0 auto;
  min-height: 56px;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff !important;
  color: #273142 !important;
  border: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

#gembaFormModal .gemba-purchase-sheet > .gemba-modal-head h3,
#gembaGuiasModal .gemba-purchase-sheet > .gemba-modal-head h3,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet > .gemba-modal-head h3,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet > .gemba-modal-head h3 {
  margin: 0 !important;
  display: flex !important;
  align-items: center;
  gap: 10px;
  color: #a53c36 !important;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
}

#gembaFormModal .gemba-purchase-sheet > .gemba-modal-head h3 > i,
#gembaGuiasModal .gemba-purchase-sheet > .gemba-modal-head h3 > i {
  color: #d04f45 !important;
  font-size: 17px;
}

#gembaFormModal .gemba-purchase-sheet > .gemba-modal-head h3 strong,
#gembaGuiasModal .gemba-purchase-sheet > .gemba-modal-head h3 strong,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet > .gemba-modal-head h3 strong,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet > .gemba-modal-head h3 strong {
  color: #a53c36 !important;
  font-weight: 650;
}

#gembaFormModal .gemba-purchase-sheet .modal-close,
#gembaGuiasModal .gemba-purchase-sheet .modal-close {
  position: static !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  background: transparent !important;
  color: #64748b !important;
  border: 0 !important;
  border-radius: 5px !important;
  font-size: 24px !important;
  cursor: pointer;
}

#gembaFormModal .gemba-purchase-sheet > .gemba-modal-body,
#gembaGuiasModal .gemba-purchase-sheet > .gemba-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 !important;
  gap: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  color: #273142 !important;
}

#gembaFormModal .gemba-purchase-sheet .cp-sheet-layout,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-layout {
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  background: #fff;
}

#gembaFormModal .gemba-purchase-sheet .cp-sheet-main,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-main {
  min-width: 0;
  min-height: 0;
  height: 100%;
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #fff !important;
  color: #273142 !important;
}

#gembaFormModal .gemba-purchase-sheet .cp-sheet-actions,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-actions,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .cp-sheet-actions,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet .cp-sheet-actions {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f4fbfc !important;
  border-left: 1px solid #d7e2e6;
  overflow-y: auto;
  color: #334155 !important;
}

#gembaFormModal .gemba-purchase-sheet .cp-sheet-actions-title,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-actions-title {
  margin: 0 6px 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #d7e2e6;
}

#gembaFormModal .gemba-purchase-sheet .gemba-sheet-actions-sep {
  margin-top: 14px;
}

#gembaFormModal .gemba-purchase-sheet .cp-sheet-actions-title span,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-actions-title span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .cp-sheet-actions-title span,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet .cp-sheet-actions-title span {
  display: block;
  color: #26323d !important;
  font-size: 12px;
  font-weight: 700;
}

#gembaFormModal .gemba-purchase-sheet .cp-sheet-actions-title small,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-actions-title small,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .cp-sheet-actions-title small,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet .cp-sheet-actions-title small {
  color: #526579 !important;
  font-size: 10px;
}

#gembaFormModal .gemba-purchase-sheet .cp-sheet-action,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-action {
  width: 100%;
  min-height: 38px;
  padding: 7px 8px !important;
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: #a53c36 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 5px !important;
  text-align: left;
  text-decoration: none;
  font-size: 12px !important;
  font-weight: 550 !important;
  cursor: pointer;
}

#gembaFormModal .gemba-purchase-sheet .cp-sheet-action:hover,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-action:hover {
  background: #fff !important;
}

#gembaFormModal .gemba-purchase-sheet .cp-sheet-action > span,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-action > span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .cp-sheet-action > span,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet .cp-sheet-action > span {
  color: #64748b !important;
  font-size: 12px;
  font-weight: 550;
}

#gembaFormModal .gemba-purchase-sheet .cp-sheet-action > i,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-action > i,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .cp-sheet-action > i,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet .cp-sheet-action > i {
  color: #7c8798 !important;
  width: 16px;
  text-align: center;
}

#gembaFormModal .gemba-purchase-sheet .cp-sheet-action small,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-action small {
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 9px;
  white-space: nowrap;
  color: #64748b !important;
}

#gembaFormModal .gemba-purchase-sheet .cp-sheet-action.is-ready > span,
#gembaFormModal .gemba-purchase-sheet .cp-sheet-action.is-primary > span,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-action.is-ready > span,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-action.is-primary > span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .cp-sheet-action.is-ready > span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .cp-sheet-action.is-primary > span,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet .cp-sheet-action.is-ready > span,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet .cp-sheet-action.is-primary > span {
  color: #a53c36 !important;
  font-weight: 650 !important;
}

#gembaFormModal .gemba-purchase-sheet .cp-sheet-action.is-ready > i,
#gembaFormModal .gemba-purchase-sheet .cp-sheet-action.is-primary > i,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-action.is-ready > i,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-action.is-primary > i {
  color: #c34237 !important;
}

#gembaFormModal .gemba-purchase-sheet .cp-sheet-action.is-ready small,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-action.is-ready small {
  color: #067647 !important;
  background: #dcfae6;
}

#gembaFormModal .gemba-purchase-sheet .gemba-fluxo-btn.is-current {
  box-shadow: inset 3px 0 0 #0284c7;
}
#gembaFormModal .gemba-purchase-sheet .gemba-fluxo-btn.is-current > span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-fluxo-btn.is-current > span {
  color: #0369a1 !important;
  font-weight: 700 !important;
}
#gembaFormModal .gemba-purchase-sheet .gemba-fluxo-btn.is-prev > span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-fluxo-btn.is-prev > span {
  color: #526579 !important;
}
#gembaFormModal .gemba-purchase-sheet .gemba-fluxo-btn.is-next > span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-fluxo-btn.is-next > span {
  color: #273142 !important;
}

#gembaFormModal .gemba-nfe-numero {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}
#gembaFormModal .gemba-nfe-numero input {
  width: 100%;
  min-height: 36px;
  box-sizing: border-box;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
  color: #273142;
  -webkit-text-fill-color: #273142;
  font-size: 14px;
  font-weight: 600;
}

#gembaFormModal .gemba-purchase-sheet .gemba-guia.is-active,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-guia.is-active {
  background: #fff !important;
  box-shadow: inset 3px 0 0 #d04f45;
}

#gembaFormModal .gemba-purchase-sheet .gemba-guia.is-active > span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-guia.is-active > span {
  color: #a53c36 !important;
  font-weight: 700 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-guia.is-active > i,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-guia.is-active > i {
  color: #c34237 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-btn-excluir,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-btn-excluir {
  color: #b91c1c !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-btn-excluir > span,
#gembaFormModal .gemba-purchase-sheet .gemba-btn-excluir > i {
  color: #b91c1c !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-btn-salvar,
#gembaGuiasModal .gemba-purchase-sheet .gemba-btn-salvar {
  background: transparent !important;
  color: #a53c36 !important;
}

/* Campos e textos da ficha clara */
#gembaFormModal .gemba-purchase-sheet .gemba-field,
#gembaFormModal .gemba-purchase-sheet .gemba-midia-box,
#gembaGuiasModal .gemba-purchase-sheet,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-field,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-midia-box {
  color: #273142 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-field > span,
#gembaFormModal .gemba-purchase-sheet .gemba-midia-box > span,
#gembaFormModal .gemba-purchase-sheet .gemba-modal-autores span,
#gembaFormModal .gemba-purchase-sheet .cp-sheet-main span,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-main span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-field > span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-midia-box > span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-modal-autores span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .cp-sheet-main span,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet .cp-sheet-main span {
  color: #667085 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-field strong,
#gembaFormModal .gemba-purchase-sheet .gemba-modal-autores strong,
#gembaFormModal .gemba-purchase-sheet .cp-sheet-main strong,
#gembaGuiasModal .gemba-purchase-sheet .cp-sheet-main strong,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-field strong,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-modal-autores strong,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .cp-sheet-main strong,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet .cp-sheet-main strong {
  color: #273142 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-midia-hint,
#gembaGuiasModal .gemba-purchase-sheet .gemba-midia-hint,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-midia-hint,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet .gemba-midia-hint {
  color: #667085 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-modal-autores {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #667085 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#gembaFormModal .gemba-purchase-sheet .gemba-nfe-numero input,
#gembaFormModal .gemba-purchase-sheet .gemba-field textarea,
#gembaFormModal .gemba-purchase-sheet .gemba-field select,
#gembaGuiasModal .gemba-purchase-sheet input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-nfe-numero input,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-field textarea,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-field select,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  background: #fff !important;
  color: #273142 !important;
  -webkit-text-fill-color: #273142 !important;
  caret-color: #273142 !important;
  opacity: 1 !important;
  border: 1px solid #cbd5e1 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-field input:read-only,
#gembaFormModal .gemba-purchase-sheet .gemba-field textarea:read-only,
#gembaFormModal .gemba-purchase-sheet .gemba-field select:disabled,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-field input:read-only,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-field textarea:read-only {
  background: #f8fafc !important;
  color: #273142 !important;
  -webkit-text-fill-color: #273142 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-field input::placeholder,
#gembaFormModal .gemba-purchase-sheet .gemba-nfe-numero input::placeholder,
#gembaFormModal .gemba-purchase-sheet .gemba-field textarea::placeholder,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-field input::placeholder,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-nfe-numero input::placeholder,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-field textarea::placeholder {
  color: #667085 !important;
  -webkit-text-fill-color: #667085 !important;
  opacity: 1 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-field[hidden],
#gembaFormModal .gemba-purchase-sheet .gemba-midia-grid[hidden],
#gembaFormModal .gemba-purchase-sheet .gemba-midia-box[hidden],
#gembaFormModal .gemba-purchase-sheet .gemba-guia[hidden],
#gembaFormModal .gemba-purchase-sheet #gembaFormFluxoWrap[hidden],
#gembaFormModal .gemba-purchase-sheet .gemba-btn-excluir[hidden],
#gembaFormModal .gemba-purchase-sheet #gembaFormReprovar[hidden],
#gembaFormModal .gemba-purchase-sheet #gembaFormReprovaBox[hidden],
#gembaFormModal .gemba-purchase-sheet #gembaFormReprovaAviso[hidden] {
  display: none !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-reprova-aviso {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #fdba74;
  border-radius: 8px;
  background: #fff7ed !important;
  color: #9a3412 !important;
  font-size: 13px;
  line-height: 1.4;
}

#gembaFormModal .gemba-purchase-sheet .gemba-reprova-aviso strong {
  color: #9a3412 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-reprova-box {
  margin: 0 6px 10px;
}

#gembaFormModal .gemba-purchase-sheet .gemba-reprova-box .gemba-field > span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-reprova-box .gemba-field > span {
  color: #667085 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid #e2e8f0;
}

#gembaFormModal .gemba-purchase-sheet .gemba-page-tabs .gemba-guia,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-page-tabs .gemba-guia {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  background: #fff !important;
  color: #273142 !important;
  box-shadow: none !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

#gembaFormModal .gemba-purchase-sheet .gemba-page-tabs .gemba-guia > span,
#gembaFormModal .gemba-purchase-sheet .gemba-page-tabs .gemba-guia > i,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-page-tabs .gemba-guia > span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-page-tabs .gemba-guia > i {
  color: #273142 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-page-tabs .gemba-guia.is-active,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-page-tabs .gemba-guia.is-active {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
  box-shadow: none !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-page-tabs .gemba-guia.is-active > span,
#gembaFormModal .gemba-purchase-sheet .gemba-page-tabs .gemba-guia.is-active > i,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-page-tabs .gemba-guia.is-active > span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-page-tabs .gemba-guia.is-active > i {
  color: #0369a1 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-midia-box {
  border-color: #cbd5e1 !important;
  background: #f8fafc;
}

#gembaFormModal .gemba-purchase-sheet .gemba-preview {
  background: #f1f5f9 !important;
  color: #64748b !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-preview img,
#gembaFormModal .gemba-purchase-sheet .gemba-preview video {
  background: #f1f5f9 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-foto-drop,
#gembaFormModal .gemba-purchase-sheet .gemba-foto-drop strong,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-foto-drop,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-foto-drop strong {
  color: #273142 !important;
  -webkit-text-fill-color: #273142;
}

#gembaFormModal .gemba-purchase-sheet .gemba-foto-drop > i,
#gembaFormModal .gemba-purchase-sheet .gemba-foto-drop .gemba-midia-hint,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-foto-drop > i,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-foto-drop .gemba-midia-hint {
  color: #667085 !important;
  -webkit-text-fill-color: #667085;
}

#gembaFormModal .gemba-purchase-sheet .gemba-foto-drop.is-dragging,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-foto-drop.is-dragging {
  background: #e0f2fe !important;
  border-color: #0284c7 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-foto-del,
#gembaFormModal .gemba-purchase-sheet .gemba-foto-del i,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-foto-del,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-foto-del i {
  background: #fff !important;
  color: #b42318 !important;
  -webkit-text-fill-color: #b42318;
}

#gembaFormModal .gemba-purchase-sheet .gemba-user-combo-list {
  background: #fff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12) !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-user-combo-item {
  color: #273142 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-user-combo-item:hover {
  background: #f1f5f9 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-mencionados-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}
#gembaFormModal .gemba-purchase-sheet .gemba-mencionados-chips:empty {
  display: none;
}
#gembaFormModal .gemba-purchase-sheet .gemba-mencionado-chip,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-mencionado-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef2f6 !important;
  color: #273142 !important;
  -webkit-text-fill-color: #273142;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 4px 8px 4px 10px;
  font-size: 13px;
}
#gembaFormModal .gemba-purchase-sheet .gemba-mencionado-del,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-mencionado-del {
  background: transparent !important;
  color: #667085 !important;
  -webkit-text-fill-color: #667085;
  border: 0;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}
#gembaFormModal .gemba-purchase-sheet .gemba-mencionado-del:hover,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-mencionado-del:hover {
  color: #b42318 !important;
  -webkit-text-fill-color: #b42318;
}

#gembaFormModal .gemba-purchase-sheet .gemba-historico {
  border-top-color: #e2e8f0 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-hist-title,
#gembaFormModal .gemba-purchase-sheet .gemba-hist-item span,
#gembaFormModal .gemba-purchase-sheet .gemba-hist-item em,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-hist-title,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-hist-item span,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-hist-item em {
  color: #667085 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-prazo-hist {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-prazo-hist-title,
#gembaFormModal .gemba-purchase-sheet .gemba-prazo-hist-item,
#gembaFormModal .gemba-purchase-sheet .gemba-prazo-hist-item small,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-prazo-hist-title,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-prazo-hist-item,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-prazo-hist-item small {
  color: #667085 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-prazo-hist-item strong,
:root:not(.light-mode) #gembaFormModal .gemba-purchase-sheet .gemba-prazo-hist-item strong {
  color: #b45309 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-sub-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #273142 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-sub-item strong {
  color: #273142 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-sub-item small {
  color: #667085 !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-form-erro,
#gembaGuiasModal .gemba-purchase-sheet .gemba-form-erro {
  color: #b91c1c !important;
}

#gembaFormModal .gemba-purchase-sheet .gemba-chatbot-btn {
  border: 1px solid #cbd5e1 !important;
  background: #fff !important;
  color: #0369a1 !important;
}

#gembaGuiasModal .gemba-purchase-sheet .gemba-guias-item {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  color: #273142 !important;
}

#gembaGuiasModal .gemba-purchase-sheet .gemba-guias-ord button,
#gembaGuiasModal .gemba-purchase-sheet [data-gemba-guia-del],
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet .gemba-guias-ord button,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet [data-gemba-guia-del] {
  color: #475569 !important;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
}

#gembaGuiasModal .gemba-purchase-sheet .gemba-guias-ord button i,
#gembaGuiasModal .gemba-purchase-sheet [data-gemba-guia-del] i,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet .gemba-guias-ord button i,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet [data-gemba-guia-del] i {
  color: #475569 !important;
}

#gembaGuiasModal .gemba-purchase-sheet [data-gemba-guia-del],
#gembaGuiasModal .gemba-purchase-sheet [data-gemba-guia-del] i,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet [data-gemba-guia-del],
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet [data-gemba-guia-del] i {
  color: #b91c1c !important;
}

#gembaGuiasModal .gemba-purchase-sheet .gemba-guias-fixa,
#gembaGuiasModal .gemba-purchase-sheet .gemba-guias-tipo,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet .gemba-guias-fixa,
:root:not(.light-mode) #gembaGuiasModal .gemba-purchase-sheet .gemba-guias-tipo {
  color: #667085 !important;
}

@media (max-width: 860px) {
  #gembaFormModal .gemba-purchase-sheet .cp-sheet-layout,
  #gembaGuiasModal .gemba-purchase-sheet .cp-sheet-layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
  }

  #gembaFormModal .gemba-purchase-sheet .cp-sheet-actions,
  #gembaGuiasModal .gemba-purchase-sheet .cp-sheet-actions {
    border-left: 0;
    border-top: 1px solid #d7e2e6;
    max-height: 42vh;
  }
}

/* OS de manutenção — mesma ficha clara do Clickup */
#manutencaoOsFormModal .gemba-purchase-sheet {
  width: min(960px, 96vw) !important;
  max-width: 96vw !important;
  height: min(780px, 94vh) !important;
  max-height: 94vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #f8fafc !important;
  color: #273142 !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 8px !important;
  box-shadow: 0 24px 70px rgba(2, 6, 23, .34) !important;
  color-scheme: light;
}
#manutencaoOsFormModal .gemba-purchase-sheet > .gemba-modal-head {
  flex: 0 0 auto;
  min-height: 56px;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background: #fff !important;
  color: #273142 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
#manutencaoOsFormModal .gemba-purchase-sheet > .gemba-modal-head h3,
#manutencaoOsFormModal .gemba-purchase-sheet > .gemba-modal-head h3 strong {
  color: #a53c36 !important;
}
#manutencaoOsFormModal .gemba-purchase-sheet > .gemba-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
  color: #273142 !important;
}
#manutencaoOsFormModal .gemba-purchase-sheet .cp-sheet-layout {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  background: #fff;
}
#manutencaoOsFormModal .gemba-purchase-sheet .cp-sheet-main {
  min-width: 0;
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  background: #fff !important;
  color: #273142 !important;
}
#manutencaoOsFormModal .gemba-purchase-sheet .cp-sheet-actions {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f4fbfc !important;
  border-left: 1px solid #d7e2e6;
  color: #334155 !important;
}
#manutencaoOsFormModal .gemba-purchase-sheet .cp-sheet-actions-title span {
  color: #26323d !important;
  font-size: 12px;
  font-weight: 700;
}
#manutencaoOsFormModal .gemba-purchase-sheet .cp-sheet-actions-title small {
  color: #667085 !important;
}
#manutencaoOsFormModal .gemba-purchase-sheet .gemba-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: #273142 !important;
}
#manutencaoOsFormModal .gemba-purchase-sheet .gemba-field > span {
  color: #667085 !important;
}
#manutencaoOsFormModal .gemba-purchase-sheet .gemba-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#manutencaoOsFormModal .gemba-purchase-sheet .gemba-field textarea,
#manutencaoOsFormModal .gemba-purchase-sheet .gemba-field select {
  background: #fff !important;
  color: #273142 !important;
  -webkit-text-fill-color: #273142 !important;
  caret-color: #273142 !important;
  opacity: 1 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px;
  padding: 8px 10px;
}
#manutencaoOsFormModal .gemba-purchase-sheet .gemba-field input::placeholder,
#manutencaoOsFormModal .gemba-purchase-sheet .gemba-field textarea::placeholder {
  color: #667085 !important;
  -webkit-text-fill-color: #667085 !important;
}
#manutencaoOsFormModal .gemba-purchase-sheet .gemba-field[hidden] {
  display: none !important;
}
#manutencaoOsFormModal .gemba-purchase-sheet .gemba-form-erro {
  color: #b91c1c !important;
}
#manutencaoOsFormModal .gemba-purchase-sheet .cp-sheet-action {
  width: 100%;
  min-height: 38px;
  padding: 7px 8px !important;
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: #a53c36 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 5px !important;
  text-align: left;
  font-size: 12px !important;
  cursor: pointer;
}
#manutencaoOsFormModal .gemba-purchase-sheet .cp-sheet-action > span {
  color: #64748b !important;
}
#manutencaoOsFormModal .gemba-purchase-sheet .cp-sheet-action > i {
  color: #7c8798 !important;
}
#manutencaoOsFormModal .gemba-purchase-sheet .cp-sheet-action small {
  color: #667085 !important;
}
@media (max-width: 860px) {
  #manutencaoOsFormModal .gemba-purchase-sheet .cp-sheet-layout {
    grid-template-columns: 1fr;
  }
}

#gembaDevolucaoRespModal.gemba-modal {
  overflow: auto;
  align-items: flex-start;
  padding-top: 28px;
  padding-bottom: 28px;
}
#gembaDevolucaoRespModal .gemba-modal-card {
  overflow: visible !important;
  max-height: none !important;
  margin: auto;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet {
  width: min(860px, 96vw) !important;
  max-width: 96vw !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  background: #f8fafc !important;
  color: #273142 !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 8px !important;
  box-shadow: 0 24px 70px rgba(2, 6, 23, .34) !important;
  color-scheme: light;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet > .gemba-modal-head,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet > .gemba-modal-head {
  min-height: 56px;
  padding: 0 16px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background: #fff !important;
  color: #273142 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet > .gemba-modal-head h3,
#gembaDevolucaoRespModal .gemba-purchase-sheet > .gemba-modal-head h3 strong,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet > .gemba-modal-head h3,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet > .gemba-modal-head h3 strong {
  margin: 0 !important;
  color: #a53c36 !important;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet .modal-close {
  color: #64748b !important;
  background: transparent !important;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet > .gemba-modal-body,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet > .gemba-modal-body {
  background: #fff !important;
  color: #273142 !important;
  padding: 0 !important;
  overflow: visible !important;
  height: auto !important;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  height: auto !important;
  min-height: auto !important;
  background: #fff;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-main,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-main {
  height: auto !important;
  min-height: auto !important;
  overflow: visible !important;
  padding: 14px 18px 16px;
  background: #fff !important;
  color: #273142 !important;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet .gemba-midia-hint,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet .gemba-midia-hint {
  color: #667085 !important;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet .gemba-resp-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet .gemba-resp-etapa-nome {
  display: block;
  margin-bottom: 4px;
  color: #667085 !important;
  font-size: 12px;
  font-weight: 700;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet .gemba-field[hidden] {
  display: none !important;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  width: 100%;
  background: #fff !important;
  color: #273142 !important;
  -webkit-text-fill-color: #273142 !important;
  caret-color: #273142 !important;
  opacity: 1 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px;
  padding: 8px 10px;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet input::placeholder,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet input::placeholder {
  color: #667085 !important;
  -webkit-text-fill-color: #667085 !important;
  opacity: 1 !important;
}
#gembaDevolucaoRespModal .gemba-user-combo { position: relative; }
#gembaDevolucaoRespModal .gemba-user-combo-list {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
}
#gembaDevolucaoRespModal .gemba-user-combo-list.is-acima {
  top: auto;
  bottom: calc(100% + 4px);
}
#gembaDevolucaoRespModal .gemba-user-combo-list {
  margin: 0;
  padding: 4px;
  list-style: none;
  max-height: 180px;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}
#gembaDevolucaoRespModal .gemba-user-combo-item,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-user-combo-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  color: #273142 !important;
  -webkit-text-fill-color: #273142 !important;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
#gembaDevolucaoRespModal .gemba-user-combo-item:hover { background: #e0f2fe; }
#gembaDevolucaoRespModal .gemba-user-combo-empty {
  padding: 8px 10px;
  font-size: 12px;
  color: #667085;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-actions,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-actions {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #f4fbfc !important;
  border-left: 1px solid #d7e2e6;
  color: #334155 !important;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-actions-title span,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-actions-title span {
  display: block;
  color: #26323d !important;
  font-size: 12px;
  font-weight: 700;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-actions-title small,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-actions-title small {
  color: #667085 !important;
  font-size: 10px;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-action,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-action {
  width: 100%;
  min-height: 38px;
  padding: 7px 8px !important;
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  color: #a53c36 !important;
  background: transparent !important;
  border: 0 !important;
  text-align: left;
  font-size: 12px !important;
  cursor: pointer;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-action > span,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-action > span {
  color: #64748b !important;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-action > i,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-action > i {
  color: #7c8798 !important;
}
#gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-action small,
:root:not(.light-mode) #gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-action small {
  color: #667085 !important;
}
#gembaDevolucaoRespModal .gemba-form-erro { color: #b91c1c; }
@media (max-width: 860px) {
  #gembaDevolucaoRespModal .gemba-purchase-sheet .cp-sheet-layout {
    grid-template-columns: 1fr;
  }
}
