/* Learn about this solution to creating custom select styles:
   @link https://moderncss.dev/custom-css-styles-for-form-inputs-and-textareas/ */

.dialogStyle *,
.dialogStyle *::before,
.dialogStyle *::after {
  box-sizing: border-box;
  font-size: 1rem;
}

.dialogStyle .input {
  margin: 0rem;
  font-size: 1rem;
  font-family: inherit;
  padding: 0.25rem 0.5rem;
  background-color: var(--input-background-color);
  border: 0.1rem solid var(--input-border);
  border-radius: 0.3rem;
  transition: 180ms box-shadow ease-in-out;
}

.dialogStyle .input:focus {
  border-color: hsl(
    var(--input-focus-h),
    var(--input-focus-s),
    var(--input-focus-l)
  );
  box-shadow: 0 0 0 0.2rem
    hsla(
      var(--input-focus-h),
      var(--input-focus-s),
      calc(var(--input-focus-l) + 40%),
      0.8
    );
  outline: 0.2rem solid transparent;
}

.dialogStyle .input:not(textarea) {
  line-height: 1;
  height: 2.25rem;
}

.dialogStyle .input:not(textarea)::placeholder  {
  font-size: 1rem;
  padding: 0rem;
}

.dialogStyle input[type="file"] {
  font-size: 0.9rem;
  padding-top: 0.35rem;
}

.dialogStyle textarea.input {
  resize: none;
}

.dialogStyle .input[readonly] {
  border-style: solid;
  cursor: default;
  color: var(--input-readonly-color);
}

.dialogStyle .input[disabled] {
  background-color: var(--input-disabled-background-color);
  cursor: not-allowed;
}

.dialogStyle label {
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1;
  margin-top: 0rem;
}

.dialogStyle .input + label {
  margin-top: 0rem;
}

.dialogStyle div + button + i, .dialogStyle div + button + img {
  font-size: 1.5rem;
  height: 1.2rem;
  margin: 0.3rem;
}

.dialogStyle button {
    color: var(--button-font-color);
    font:2.4rem Futura, ‘Century Gothic’, AppleGothic, sans-serif;
    font-size:1rem;
    padding:1rem;
}

.dialogStyle button[disabled], .dialogStyle button:disabled {
  background-color: var(--input-disabled-background-color);
  cursor: not-allowed;
}

.dialogStyle button i {
  font-size: 2.0rem;
  margin: 0rem;
  padding-right: 0.6rem;
  vertical-align: middle;
}

.dialogStyle button i::before {
  font-size: 2rem;
}

.dialogStyle i::before {
  font-size: 2.5rem;
}

.dialogStyle button iconify-icon {
  font-size: 2.0rem;
  margin: 0rem;
  padding-right: 0.6rem;
  vertical-align: middle;
}

.dialogStyle button div {
  text-wrap : nowrap;	
  padding: 0rem;
}

.dialogStyle div {
  display: grid;
  /* place-content: center; */
  grid-gap: 0.5rem;
  /* font-family: "Baloo 2", sans-serif; */
  padding: 0.1rem;
}

.dialogStyle div i::before {
  font-size: 2rem;
  cursor: pointer;
}

.dialogStyle fieldset {
	width: 100%;
    border-radius: 0.3rem;
    padding: 0rem;
    margin-top: 0.3rem;
    position: relative;
}

.dialogStyle fieldset table {
    padding: 0.3rem;
    width: 100%;
}

.dialogStyle fieldset legend {
    padding: 0.3rem 0.6rem ;
    border-radius: 0.3rem;
    border: 0.1rem solid rgb(192, 192, 192);
    margin-left: 1.2rem;
    max-width: 80%;
    overflow: hidden;
    text-wrap: nowrap;
}

.dialogStyle fieldset .legend2 {
    padding: 0.3rem 0.6rem ;
    border-radius: 0.3rem;
    border: 0.1rem solid var(--input-border);
	position: absolute;
    right: 4.6rem;
    top: -2.4rem;
    background-color: var(--input-background-color);
    max-width: 30%;
    overflow: hidden;
    text-wrap: nowrap;
}

.dialogStyle fieldset .celular {
    padding: 0.3rem 0.6rem ;
    border-radius: 0.3rem;
    border: 0.1rem solid var(--input-border);
	position: absolute;
    right: 1.2rem;
    top: -2.4rem;
    background-color: var(--input-background-color);
    max-width: 30%;
    overflow: hidden;
    text-wrap: nowrap;
}

.dialogStyle fieldset .celular iconify-icon {
	font-size: 1.6rem;
}

.dialogStyle fieldset:disabled .required {
    background-image: none;
}

.dialogStyle select {
  /* A reset of styles, including removing the default dropdown arrow */
  appearance: none;
  background-color: transparent;
  border: none;
  padding: 0 1rem 0 0;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
  height: 1.5rem;

  /* Stack above custom arrow */
  z-index: 1;

  /* Remove focus outline, will add on alternate element */
  outline: none;
  
  /* Remove dropdown arrow in IE10 & IE11 
     @link https://www.filamentgroup.com/lab/select-css.html */
  &::-ms-expand {
    display: none;
  }

}

.dialogStyle .select {
  display: grid;
  grid-template-areas: "select";
  align-items: center;
  position: relative;
  min-width: 15rem;
  max-width: 30rem;

  border: 0.1rem solid var(--select-border);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;

  font-size: 1rem;
  cursor: pointer;
  line-height: 1.1rem;

  /* Optional styles
     remove for transparency
    background-color: #fff;
    background-image: linear-gradient(to top, #f9f9f9, #fff 33%); */

  select,
  &::after {
    grid-area: select;
  }

  /* Custom arrow */
  &:not(.dialogStyle .select--multiple)::after {
    content: "";
    justify-self: end;
    width: 0.8rem;
    height: 0.5rem;
    background-color: var(--select-arrow);
    clip-path: polygon(100% 0%, 0 0%, 50% 100%);
    margin-right: 0.4rem;
  }
}

.dialogStyle .myselect2 span {
	margin: 0rem;
	padding: 0rem;
}

.dialogStyle .myselect2 {
  display: grid;
  grid-template-areas: "select";
  align-items: center;
  position: relative;
  border: 0.1rem solid var(--select-border);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;

  font-size: 1rem;
  cursor: pointer;
  line-height: 1.1rem;

  /* Optional styles
     remove for transparency
    background-color: #fff;
    background-image: linear-gradient(to top, #f9f9f9, #fff 33%); */

  select,
  &::after {
    grid-area: select;
  }

}


  /* Interim solution until :focus-within has better support */
.dialogStyle select:focus + .focus {
  position: absolute;
  top: -0.1rem;
  left: -0.1rem;
  right: -0.1rem;
  bottom: -0.1rem;
  border: 0.1rem solid var(--select-focus);
  border-radius: inherit;
}

.dialogStyle select[multiple] {
  padding-right: 0;

  /*
   * Safari will not reveal an option
   * unless the select height has room to 
   * show all of it
   * Firefox and Chrome allow showing 
   * a partial option
   */
  height: 6rem;

  option {
    white-space: normal;

    /* Only affects Chrome */
    outline-color: var(--select-focus);
  }

  /* 
   * Experimental - styling of selected options
   * in the multiselect
   * Not supported crossbrowser
   */
  /*   &:not(:disabled) option {
         border-radius: 0.8rem;
         transition: 120ms all ease-in;

         &:checked {
           background: linear-gradient(hsl(242, 61%, 76%), hsl(242, 61%, 71%));
           padding-left: 0.5rem;
           color: black !important;
         }
       }
  */
}

.dialogStyle .select--disabled {
  cursor: not-allowed;
  background-color: var(--input-disabled-background-color);
  background-image: linear-gradient(to top, var(--input-readonly-color), var(--input-disabled-background-color) 33%);
}

.dialogStyle .select + label {
  margin-top: 2rem;
}

input.largeCheckbox {
  width: 1.2rem;
  height: 1.2rem;
}

input.largeCheckbox +p {
	display: inline-table;
}

.dialogStyle .informacao {
	text-align: justify;
	font-size: 0.8rem;
	padding: 0.5rem;
}

