:root {
  --btn-blue: #6BAEE2;
}

.overflow-block {
    overflow: hidden;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    display: none;
}

.overlay-display {
    display: block;
    z-index: 1000;
}

.info-container {
  color: #8C9091;
}

.info-container a {
  color: var(--eurac-red) !important;
  text-decoration: underline;
}

.info-container:last-of-type {
  margin-bottom: 150px;
}

.uppercase {
  text-transform:uppercase;
}

.margin-1em {
  margin: 1em;
}

#publish-form {
  margin-top: 4rem;
}

/* IMAGES */
.image-w-caption-wrap img {
  height: 200px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

.img-gallery-header,
.tabs-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.image-w-caption-wrap {
  border: 1px solid #D8DADA;
  border-radius: 6px;
  width: 282px;
  /* width: calc(24% - 7px); */
  display: flex;
  flex-direction: column;
  row-gap: 14px;
  align-items: flex-end;
  padding: 1em;
}

#updateForm .image-w-caption-wrap input[type='text'],
.image-w-caption-wrap label {
  width: 100% !important;
  border-radius: 4px;
  margin-top: 0;
}

.img-gallery-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

/* end IMAGES */

/* FORM COMPONENTS */
.info-container {
  margin: 4rem 0;
  padding: 3rem;
  border: 2px solid var(--border-grey);
}

.template-edit-building .tabs .tabcontent {
  padding: 2rem;
}

.template-edit-building .tabs .tablink {
  transition: none;
  margin-bottom: 1rem;
  color: #5C5F60;
}

.template-edit-building .tabs .tablink.active {
  background-color: #6BAEE2;
  color: var(--white);
  border: none;
  border-radius: 1.5rem;
}

.tab-content-heading {
  height: 16px;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  line-height: 16px;
  text-transform: uppercase;
  padding-top: 1em;
  color: #6BAEE2;
  width: 100%;
}

.tabs {
  padding-top: 2rem;
}

form > div {
  width: 100%;
}

.content-wrap {
  margin-top: 1rem;
  width: 100%;
}

.field-wrap {
  display: inline-block;
  padding-top: 1rem;
}

.field-wrap {
  width: 49%;
}

.field-wrap:has(.climate-survey){
  width: 100%;
}

.field-wrap:has(.img-gallery-wrap),
.field-wrap:has(.tabs-table),
.field-wrap:has(textarea),
.field-wrap:has(h3) {
  width: 100%;
}

.form-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;

  position: sticky;
  top: 0;
  padding: 0 5vw;
  margin: 0 -5vw;
  background-color: white;
  padding-bottom: 1em;
  box-shadow: 0px 25px 20px -20px rgba(0,0,0,0.11)
}

#updateForm {
  display: flex;
  flex-wrap: wrap;
  row-gap: 1rem;
  column-gap: 2rem;
}

#updateForm input[type='text'], 
#updateForm input[type='number'], 
#updateForm input[type='email'], 
#updateForm textarea {
    border: none;
    border-bottom: 1px solid #AAA;
    border-radius: 0;
    font-size: 18px;
    outline: 0;
    cursor: pointer;
    min-width: 65%;
    /* -webkit-appearance: none; */
    transition: border-color .2s ease-in-out;
    color: var(--dark);
    background-color: rgba(238,238,238, 0.5);
    margin-top: 6px;

    /* new */
    border: 1px solid #D8DADA;
    border-radius: 2rem;
    height: 36px;
    padding: 0 1rem;
    margin-top: 12px;
    width: 90%;

    /* background-color: #EBECEC; */
    /* background: rgba(216, 218, 218, 0.5);  */

    /* background-color: #A3A3A3; */
}

#updateForm input::placeholder,
#updateForm textarea::placeholder {
  color: #D8DADA;
}

#updateForm  .tabs-table input[type='text'] {
  width: auto;
  min-width: auto;
  border-radius: 4px;
  height: 44px;
  background-color: transparent;
}

#updateForm  .tabs-table input[type='text']:disabled {
  color: #666B6C;
  background-color: transparent;
  border: none;
}

#updateForm input:focus, 
#updateForm textarea:focus {
    border-color: var(--eurac-red);
    border-width: 2px;
    background-color: rgb(238,238,238);
}

#updateForm input[type='checkbox'] {
    border-color: #AAA;
    /* width: 20px; */
    /* height: 20px; */
}

#updateForm textarea {
    font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    max-width: min(100%, 90vw);
    width: 85vw;
    height: 250px;
    /* margin-top: 6px; */
    margin-top: 12px;
    padding-top: 1rem;
    border-radius: 8px;
}

input[type="checkbox"]:checked {
    background-color: red;
}

label,
.content-wrap h3 {
  color: var(--text-grey);
}

.label-field {
  margin: 0;
  margin-bottom: -2rem;
}

.field-wrap {
    margin-bottom: 25px;
    margin: 25px 0;
}

select {
  /* max-width: 300px; */
  text-indent: 1em;
  border-radius: 2rem;
  min-height: 36px;
  min-width: 150px;
  background-color: white;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("/static/img/next_arrow.571d53192977.svg");
  background-repeat: no-repeat;
  background-position: right;
  border: 1px solid #AAA;
  padding: 6px;
  background-position-x: 95%;
  -webkit-padding-end: 30px;
  color: var(--dark);
  margin-top: 12px;
  width: 90%;
  font-size: 18px;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.tabs-table {
  display: flex;
  flex-direction: column;
  /* gap: 16px; */
}

.tabs-table {
  overflow-y: scroll;
}

.table-heading {
  border: none;
  background-color: transparent;
}

.climate-survey {
  padding-bottom: 3rem;
}

.multiselect-option {
  margin: 6px 0;
}

/* end FORM COMPONENTS */


/* BUTTONS */

.red-btn,
.blue-btn,
.grey-btn {
    text-transform: uppercase;
    background-color: transparent;
    color: #8C9091;
    background-color: white;
    border-radius: 1rem;
    border: 1.5px solid #8C9091;
    padding: 0.5em 1.5rem;
    text-align: center;
    white-space: nowrap;
}

.red-btn:hover {
    background-color: var(--eurac-red);
    color: white;
    border-color: var(--eurac-red);
}

.blue-btn {
  margin: 1em 0;
}

.blue-btn:hover {
    background-color: var(--btn-blue);
    color: white;
    border-color: var(--btn-blue);
}

.red-btn.disabled {
  cursor: auto !important;
}

.red-btn.disabled:hover {
    color: #8C9091;
    background-color: white;
    border-color: #8C9091;
}

.grey-btn {
  color: white;
  background-color: #A3A3A3CC;
  border-color: #A3A3A3CC;
}

.grey-btn:hover {
  color: #A3A3A3CC;
  background-color: white;
}

.notify-button {
  position: relative;
}

.notify-button::after {
  content: "";
  position: absolute;
  top: -3px;   /* Move dot above the button */
  right: -3px; /* Move dot outside the right edge */
  width: 11px;
  height: 11px;
  background-color: var(--eurac-red);
  border-radius: 50%;
}

.notify-button:hover::after {
    display: none;
}

#add_bld_btn {
  display: flex;
  align-items: center;
  gap: 6px;
}

#add_bld_btn span {
  height: 15px;
  size: 15px;
}

#add_bld_btn svg {
  height: 15px;
  width: auto;
}

#add_bld_btn:hover svg,
#add_bld_btn:hover path {
  fill: white;
  stroke: white;
}

.login-btn {
  padding: 6px 30px;
  border: 1px solid var(--eurac-red);
  border-radius: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  color: white !important;
  background-color: var(--eurac-red);
}

.icon-btn {
  border: none;
  background-color: transparent;
}

.rect-red-btn {
  padding: 10px 14px;
  width: 121px;
  height: 44px;

  color: white;
  background: #E33730;
  border: 1px solid #E33730;
  border-radius: 6px;
  cursor: pointer;
}

.rect-red-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-wrap {
  padding: 1rem 0;
}

/* delete icon button */
.fluent-mdl2--delete {
  border: none;
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 2048 2048'%3E%3Cpath fill='%23a3a3a3' d='M1792 384h-128v1472q0 40-15 75t-41 61t-61 41t-75 15H448q-40 0-75-15t-61-41t-41-61t-15-75V384H128V256h512V128q0-27 10-50t27-40t41-28t50-10h384q27 0 50 10t40 27t28 41t10 50v128h512zM768 256h384V128H768zm768 128H384v1472q0 26 19 45t45 19h1024q26 0 45-19t19-45zM768 1664H640V640h128zm256 0H896V640h128zm256 0h-128V640h128z'/%3E%3C/svg%3E");
}


/* END BUTTONS */



/* DIALOG */

.dialog {
  position: absolute;
  top: 30%;
  z-index: 1001;
  width: min(90vw, 550px);
  padding: 2rem;
  border: none;
}

dialog h3 {
  color: #8C9091;
}

.dialog label {
  height: 19px;
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-size: 16px;
  line-height: 19px;
  color: #8C9091;
}

.dialog input[type='text'] {
  height: 44px;
  /* Paragraph: 4/Regular */
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  /* identical to box height, or 150% */
  letter-spacing: -0.3px;
  color: #8C9091;
  flex-grow: 1;
  padding-left: 12px;

  border: 1px solid #A3A3A3;
  border-radius: 6px;
}

.dialog input[type='text']::placeholder {
  color: #8C9091;
  opacity: 0.5;
}

.dialog form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.flex {
  display: flex;
}

.gap-1em {
  gap: 1em;
}

.justify-end {
  justify-content: flex-end;
}

/* END DIALOG */

/* mobile */
@media (max-width: 767px) {
  .content-wrap {
    margin-top: 0;
  }

  .field-wrap,
  #updateForm input[type='text'], 
  #updateForm input[type='number'], 
  #updateForm input[type='email'], 
  select {
    width: 100%;
  }
  
  .mob-wrap {
    flex-wrap: wrap;
  }
       
  .template-edit-building .tabs .tablink.active {
    background-color: transparent;
    color: #6BAEE2;
  }

  .template-edit-building .tabs .tablink {
    margin-bottom: 0;
  }
}

/* tablet */
@media (min-width: 768px) and (max-width: 1023px) {
  .field-wrap,
  #updateForm input[type='text'], 
  #updateForm input[type='number'], 
  #updateForm input[type='email'], 
  select {
    width: 80%;
  }
}

/* mobile and tablet */
@media (max-width: 1023px) {
  .form-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .bar_header {
      flex-wrap: wrap;
  }
  .bar_header_btns {
      width: 100%;
  }
}