body {
  /* border: 10px solid greenyellow !important;  */
  .gform-field-coco-map {
    min-height: 600px;
    margin-top: 50px;;
  }
  .gfield .grid-h {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 200px));
    grid-auto-rows: 1fr;
  }
  .gfield .highlight {
    border: 1px solid red;
    background: #ffcccc;
  }
  #popup-info,
  .popup-info,
  .segment-info-modal {
    position: fixed;
    background: #ffffffee;
    padding: 10px;
    top: 55px;
    border: 5px solid #000000aa;
    border-radius: 1rem;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.75);
    left: 1rem;
    max-height: calc( 100vh - 80px );
    overflow: auto;
    font-size: 1rem;
    z-index: 9999;
    opacity: 0; /* Inicialmente oculto */
    visibility: visible;
    transition: opacity 0.3s ease-in-out; /* Transición para la opacidad */
		cursor: pointer;

		&:hover {
			background-color: #ccccccee;
		}

    .popup-generic-content {
      padding: 0 1rem;
      font-size: 1rem;
    }

    .visible-no {
      display: none;
    }
  }
  .show {
    opacity: 1;
  }
  .hidden {
    visibility: hidden;
  }

	.gform_page_fields .segment-rotation:is(:empty) {
		display: none !important;
	}

  /* radio buttons for rotation of portrait segments*/
  @media (min-width: 1050px) {
    .gform_page_fields .segment-rotation {
      margin-top: -300px;
      z-index: 99;
      margin-left: 9px;
      background: #FFFFFFBB;
      padding: 11px;
      display: inline;
      width: 440px;
      min-width: 0;
      height: min-content;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);

      legend {
        display: none;
      }
    }
  }
  .gform_page_fields .segment-rotation.gfield_error {
    border: 2px solid var(--gf-ctrl-desc-color-error);
    transition: background-color 0.5s ease-in-out;
    animation: colorChange 2s 5 alternate;
    background-color: #ffffffee;
  }
}

@keyframes colorChange {
  0% {
    background-color: #e38874ee;
  }
  100% {
    background-color: white;
  }
}


/* handlers to resize over */
gmp-advanced-marker .handler-resize {
  border: 4px solid white;
  border-radius: 50%;
  background-color: #FFFFFFAA;
  transition: border-color 0.1s ease-in-out;
  anchor-name: --handler-resize;

  &:hover {
    border-color: #ffcccc;
    background-color: #FFFFFFFF;
  }

  &.dragging {
    animation: flickerBorder 0.1s linear 3;
    background-color: red;
  }
}

@keyframes flickerBorder {
  0%, 100% {
    border-color: red;
  }
  50% {
    border-color: white;
  }
}


body .coco-solar-notification {
  position: fixed;
  height: 50px;
  /* transform: translateY(100%); /*  covers the margin-top 50px of the map container */
  top: 0;
  left: 0;
  right: 0;
  background: #ffffffcc;
  color: #000;
  font-size: 1rem;;
  padding: 10px;
  text-align: center;
  z-index: 9999;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.75);
}

body .coco-btn-danger{
  background-color: var(--gf-color-danger) !important;
}
body .coco-btn-success{
  background-color: var(--gf-color-success) !important;
}

body #coco-orientation-panels-radiobtns {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #FFFFFFCC;
  padding: 10px;
  border: 1px solid #000000aa;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.75);
  font-size: 1rem;;

  label {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 1rem;
  }
}

body #activate-deactivate-solar-panels-btn {
  &.active {
    background-color: #d1d1d1;
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5);
    transform: translateY(2px);
    color: var(--gf-local-bg-color);
  }
}

body .gform-theme--framework fieldset.gfield--type-choice.panel-quantiles {

  .gfield_radio {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;

    & > div.gchoice {
      display: flex;
      flex-direction: column;
      place-items: center;
    }
  }
}


/*
  ======= Step 4 == report
*/

body .report-intro {
  padding: 2rem;
  background: lightgray;
  border-radius: 5px;
  margin: 1rem 0;
  box-shadow: 5px 5px 6px rgba(0, 0, 0, 0.2);

	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	font-size: var(--wp--preset--font-size--small);

	strong {
		font-weight: bold;
		font-size: var(--wp--preset--font-size--large);
	}
}

body .report-container {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);

  h2 {
		font-weight: bold;
  }

	h3 {
		border-bottom: 1px solid #ccc;
		margin: 3rem 0 1rem;
		display: flex;
		justify-content: space-between;
	}
	ul {
		padding: 1rem 0;
	}
	p, ul > li {
		font-size: var(--wp--preset--font-size--medium);
		padding: 0.2rem 0;
	}

  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
  }
	thead th {
		font-size: var(--wp--preset--font-size--small);
	}
  th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
		b {
			font-weight: bold;
		}
  }
  th {
    background-color: #f8f8f8;
  }
  .total-energy {
    font-weight: bold;
    color: #007bff;
  }
}
