.funkForm {
    background-color: white;
}

.funkForm.card {
    margin: 0;
}

.funkForm .card {
  max-width: 1200px;
    padding: 0;
}

.dx-popup-content .funkForm {
    box-shadow: none;
    max-height: 100% !important;
    height: unset !important;
}
/*
.dx-popup-content .funkForm .control-container {
    padding-left: 0 !important;
    margin-left: 0 !important;
}
*/
.dx-popup-content .funkForm .button-container {
    padding: 0 !important;
}

.dx-popup-content .funkForm .form-title {
    display: none !important;
}

.funkForm .form-title .form-title-container {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    margin-bottom: 20px;
}

.dx-popup-content .funkForm .form-title .form-title-container>div {
    padding-top: 0 !important;
}

.funkForm .ctrlArea {
    max-width: 100%;
}

.funkForm .ctrlArea:not(.form-title-container),
.funkForm #divButtons {
    max-width: 1200px;
}

.funkForm .ctrlArea.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(max(300px, calc(50% - 20px)), 1fr))
}

.funkForm .form-title .form-title-container {
    display: block;
}

.funkForm .form-title .form-title-container>div {
    color: #036;
    font-weight: 600;
    padding: 10px;
}

.funkForm .dx-toolbar .dx-toolbar-items-container {
    height: 10px;
    overflow: visible;
}

.funkForm .subtitle {
    color: black;
    font-weight: 700;
    font-size: 1vw;
    line-height: 1;
    border-bottom: none;
    height: fit-content;
    margin-top: 15px;
}

.funkForm .control-container {
    padding: 0 20px;
    margin-bottom: 30px;
}

.funkForm .ctrlArea {
    column-gap: 40px;
    row-gap: 20px;
}

.funkForm .control-container .ctrlGroup {
    column-gap: 40px;
    row-gap: 20px;
}

.funkForm .control-container .ctrlGroup .control .dx-radiobutton .dx-item-content,
.funkForm .control-container .ctrlGroup .control.radio-label p {
    font-size: 14px;
}

.funkForm .control-container .ctrlGroup .control .dx-radiobutton .dx-item-content {
    color: #9a9a9a;
}

.funkForm .control-container .ctrlGroup .dx-texteditor.dx-state-disabled input {
    color: rgba(100,100,100,.95) !important;
}

.funkForm .control-container .ctrlGroup .control .dx-radiobutton-checked .dx-item-content {
    color: var(--primary);
    font-weight: 700;
}

/*
.funkForm .control-container .ctrlGroup .dx-texteditor-container {
    height: unset;
}
*/
.funkForm .control-container .ctrlGroup .dx-field-value {
    width: 100% !important;
}

.funkForm .control-container .ctrlGroup .dx-filemanager .dx-filemanager-container .dx-drawer-panel-content.dx-drawer-panel-content-initial {
    width: 0 !important;
    max-width: 0 !important;
    min-width: 0 !important;
    display: none;
}

.funkForm .grid-row-chooser > div {
  position: relative;
  height: 60px;
}

.funkForm .grid-row-chooser .radio-label {
  top: -13px;
}

.funkForm .radio-label,
.funkForm .checkbox-label,
.funkForm .switch-label {
    position: absolute;
    color: rgba(148, 148, 148, .87);
    font-size: .8vw;
}

.funkForm .dx-field-value.dx-checkbox,
.funkForm .dx-field-value:not(.dx-widget)>.dx-checkbox,
.funkForm .dx-field-value.dx-switch,
.funkForm .dx-field-value:not(.dx-widget)>.dx-switch {
    margin: 20px 0 5px 0 !important;
}

.funkForm .dx-radiobutton.dx-radiobutton-checked.dx-state-focused .dx-radiobutton-icon-checked::after,
.funkForm .dx-checkbox.dx-state-focused .dx-checkbox-icon::after {
    background: transparent !important;
}

.funkForm .dx-slider-tooltip-visible-on-hover .dx-tooltip-wrapper .dx-overlay-content {
    background-color: transparent !important;
}

.funkForm .dx-editor-underlined.dx-texteditor-with-floating-label .dx-texteditor-label,
.dx-editor-underlined.dx-texteditor-with-label .dx-texteditor-label {
    margin-top: -4px;
    height: 20px; 
}

.funkForm .button-container {
    display: flex;
    gap: 20px;
    padding: 0 20px;
}

.funkForm .buttonHolder {
    padding: 20px;
    max-width: 1200px;
}

.funkForm .buttonHolderBefore {
    justify-self: flex-start;
    align-self: center;
}

.funkForm .buttonHolderCenter {
    justify-self: flex-center;
    align-self: center;
}

.funkForm .buttonHolderAfter {
    justify-self: flex-end;
    align-self: center;
}

.funkForm .ctrlGroup.input-with-button {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.funkForm .ctrlGroup.input-with-button .dx-field {
    flex-grow: 1;
}

.funkForm .ctrlGroup.input-with-button .dx-field>div>div {
    width: 100%;
}

.funkForm .dragging {
    border: 1px solid var(--primary) !important;
}

.funkForm .dx-datagrid-header-panel {
    height: 50px;
}

.funkForm .dx-htmleditor-toolbar-wrapper {
    height: 50px;
}


/* Editable Datagrids */
.funkForm .calculation-datagrid .dx-datagrid-headers {
    display: none !important;
}

.funkForm .calculation-datagrid .dx-datagrid-rowsview {
    border-left: none !important;
    border-right: none !important;
}

.funkForm .calculation-datagrid .dx-datagrid-rowsview .dx-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.42);
}

.funkForm .calculation-field input {
    padding-right: 108px !important;
    text-align: right;
}

.funkForm .calculation-field .dx-texteditor-label {
    width: fit-content;
    left: unset;
    right: 108px;
    text-align: right;
}

.funkForm .calculation-datagrid .dx-datagrid-rowsview .grey-field:not(.custom) {
    background-color: rgba(0, 0, 0, .02);
}

.funkForm .grid-in-form .dx-datagrid-header-panel {
  height: 0;
}

.funkForm .grid-in-form .dx-toolbar-after, 
.funkForm .grid-in-form .dx-toolbar-before, 
.funkForm .grid-in-form .dx-toolbar-center {
  top: 10px;
  left: -80px;
}

.funkForm .grid-in-form tr {
  border-bottom: none !important;
}

.funkForm .grid-in-form .dx-data-row.dx-state-hover td {
  background: none !important;
}

.funkForm .grid-in-form td:first-of-type {
  border-right: 10px solid transparent !important;
}

.funkForm .grid-in-form .dx-datagrid-borders > .dx-datagrid-rowsview {
  border-bottom: none !important;
}

.funkForm .calculation-datagrid .dx-editor-cell .dx-state-disabled {
    opacity: 1 !important;
}

.funkForm .calculation-datagrid .dx-editor-cell .dx-state-disabled input {
    color: black !important;
}

.funkForm .calculation-datagrid .dx-editor-cell.dx-focused .dx-state-disabled {
    opacity: 1;
}


/* Standard-Margins for migrated forms */
.funkForm .control-container .ctrlGroup {
    margin-bottom: 20px;
}

/* Fixed Buttons unten */
.funkForm .fixed-buttons {
    position: fixed;
    bottom: 0px;
    width: calc(100% - 90px);
    background-color: white;
    padding-bottom: 20px;
}

.funkForm .fixedBanner {
    position: sticky;
    top: 10px;
    margin-top: -30px;
    z-index: 1;
}

.dx-drawer-opened .funkForm .fixed-buttons {
    width: calc(100% - 240px);
}

/* Grouped Forms Header */
.funkForm .group-title {
  padding: 5px 20px;
  height: 40px;
  width: 100%;
  margin-bottom: 0;
  margin-top: 0;
  border-bottom: 2px solid var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.funkForm .group-card.active .group-title {
  margin-bottom: 25px !important;
}

.funkForm .group-card {
  position: relative;
  transition: all .5s;
  max-height: 54px; 
  padding: 0 !important;
  max-width: 1200px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.funkForm .group-card::-webkit-scrollbar {
  display: none;
}

.funkForm .group-card.active {
  max-height: 10000px;
  overflow-y: scroll;
}

.funkForm .header-icons {
  display: flex;
  gap: 5px;
}

.funkForm .header-icons .icon-container {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary);
    border-radius: 100%;
}

.funkForm .header-icons .icon-container.small {
  width: 25px;
  height: 25px;
}

.funkForm .header-icons .icon-container.small:hover {
  cursor: pointer;
}

.funkForm .header-icons .edit-icon:hover {
  cursor: pointer;
}

.funkForm .header-icons .valid-icon {
  border: 1px solid grey;
  animation-timing-function: linear;   
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1);}
  100% { transform: scale(1); }
  }

.funkForm .header-icons .valid-icon i {
  color: grey;
}

.funkForm .header-icons .valid-icon.valid {
  border-color: green;
  background-color: green;
}

.funkForm .header-icons .valid-icon.valid i,
.funkForm .header-icons .valid-icon.invalid i { 
  color: white;
}

.funkForm .header-icons .valid-icon.invalid {
  border-color: red;
  background-color: red;
}

.funkForm .group-card.active .header-icons .edit-icon {
  background-color: var(--primary);
}

.funkForm .group-card.active .header-icons .edit-icon i {
  color: white;
}

.funkForm .header-icons .icon-container i {
    font-size: 18px;
    color: var(--primary);
}

.funkForm .group-card.active .continue-button {
  margin-left: 980px;
  margin-bottom: 0;
}

.funkForm .group-card.active .continue-button {
  margin-bottom: 20px;
}

/* FLIP CARDS */
.flip-button {
  position: absolute;
  right: 10px;
  top: 10px;
}

.flip-title {
  border-bottom: 1px solid var(--primary);
  margin-bottom: 10px;
}

.flip-title div {
  padding: 10px;
}

.flip-card {
  perspective: 1000px;
  padding: 0;
  background-color: transparent !important;
  padding: 0px !important;
  box-shadow: none !important;
  border: none !important;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card .ctrlArea {
  position: absolute;
  background-color: white;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: 0px 0px 5px rgb(9 30 66 / 13%);
  border: 1px solid #EBECF0;
}

.flip-card .ctrlGroup {
  padding: 10px;
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card .back {
  transform: rotateY(180deg);
}

/* DG */
.dx-datagrid tr.row-inactive td {
  font-style: italic !important;
  background-color: #F0F8FF !important;
  
}

.dx-datagrid tr.row-inactive td.flag img {
  filter: saturate(0.2);
}

/* Funk Validator */
.funkForm .funk-validator .dx-textbox {
  height: 0;
  max-height: 0;
  visibility: hidden;
}

.infoOnSave {
  margin-right:20px;
}

.BuildEditedHolder {
  margin-left: 20px;
  margin-bottom: 10px;
  font-size: 9pt;
  color: gray;

}

.funkForm .form-text-right input {
  text-align: right;
}

.funkForm .form-text-right .dx-texteditor-label {
  width: fit-content;
  left: unset;
  right: 0px;
  text-align: right;
}

/* Overrides Popups to show multiline */
.dx-popover-wrapper .dx-popup-content {  
  white-space: normal !important;  
}  

.dx-datagrid tr.row-shadow td {
  /*font-style: italic !important;*/
  background-color: #e9e1f3 !important;
  
}

.dx-datagrid tr.row-shadow td.flag img {
  filter: saturate(0.2);
}

.tooltip-text {
  position: absolute;
  left: 140%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  background-color: #005092;
  color: white;
  font-weight: normal;
  padding: 5px 10px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  letter-spacing: 0.5px;
  width: max-content;
  max-width: 450px;
  min-width: 50px;
  word-wrap: break-word;
}

.tooltip-text.visible {
  opacity: 1;
  pointer-events: auto; /* Interaktion aktiviert */
  transform: translateY(-50%) translateX(0); /* Position bleibt */
}

.tooltip-text::before {
  position: absolute;
  content: ""; 
  width: 10px;
  height: 10px;
  background-color: #11558b;
  transform: translateY(-50%) rotate(45deg);
  transition: background-color 0.2s ease;
  top: 50%;
}

.tooltip-text-new {
  background-color: #005092;
  color: white;
  font-weight: normal;
  word-wrap: break-word;
  text-align: left;
  max-width: 450px;
}

.tooltip-text-new::before {
  position: absolute;
  content: ""; 
  width: 10px;
  height: 10px;
  background-color: #11558b;
  transform: translateY(-50%) rotate(45deg);
  transition: background-color 0.2s ease;
  top: 50%;
}

.tooltip-right {
  left: 140%;
}

.tooltip-right::before {
  left: -5px; /* Pfeil links */
}

.tooltip-left {
  right: 140%;
}

.tooltip-left::before {
  right: -5px; /* Pfeil rechts */
}

.faq-button {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: none;
  background-color: #005092;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  font-size: 1.2em;
  color: white;
  font-weight: normal;
  margin-left: 500px;
}

.faq-button:hover {
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.3);
}

.align-html-text {
  display: flex;
  align-items: center;
}

.prospects-card {
  /* max-width: 1700px !important; */
}