#setting {
  // min-height: 85vh;
  // height: unset !important;
  // position: relative;
  .content {
    overflow-y: unset;
  }

  .seton-off {
    display: flex;
    border-bottom: 1px solid #ddd;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    &__switch {
      display: flex;
      align-items: center;
      color: #888;
    }
  }
  .menu {
    .active {
      font-weight: bold;
      background-color: #dfeaf3;
    }
    &__mainitem {
      padding: 20px;
      border-bottom: 1px solid #ddd;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      &:after {
        float: right;
        content: "";
        width: 7px;
        height: 7px;
        border: 1px solid #000;
        border-width: 0 1px 1px 0;
        transform: rotate(45deg);
      }
      
    }
    &__mainitem.open:after {
      transform: rotate(-135deg);
    }
    &__item__group {
      display: none;
      padding-left: 20px;
      border-bottom: 1px solid #ddd;
    }
    &__item {
      padding: 20px;
      border-bottom: 1px solid #ddd;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    
    &__item.last {
      border-bottom: 0px !important;
    }
  }

  .section {
    display: none;
  }

  .form_section {
    padding: 30px 45px;

    input:focus {
      outline: unset;
    }

    .content__title {
			margin-bottom: 20px;
			font-size: $font-size-large;
    }

    /*--FORM--*/
    .form {
      width: 100%;
      margin: 30px 0;

      &__line {
        display: flex;
        align-items: center;
        margin-bottom: 15px;
        position: relative;
        width: fit-content;
				input {
					width: 260px;
				}

        &--text {
					width: 140px;
					min-width: 140px;
					font-weight: 500;
					font-size: $font-size-normal;
        }
        &--remark {
          font-size: $font-size-small;
					margin-top: 10px;
					font-weight: lighter;
        }
        &--value {
        }
        input {
          border: 1px solid #ddd;
          padding: 10px 20px;
					border-radius: 3px;
					font-size: $font-size-normal;
				}
				textarea {
					padding: 12px 15px;
					font-size: $font-size-normal;
				}
        &--logo {
          position: relative;
          width: 150px;
          height: 150px;
          background: #ddd;
          overflow: hidden;
        }
        &--qrcode {
          position: relative;
          width: 200px;
          height: 200px;
          background: #ddd;
          overflow: hidden;
        }
        &--favicon {
          position: relative;
          width: 100px;
          height: 100px;
          overflow: hidden;
          background: #ddd;
        }
        &--og {
          position: relative;
          width: 300px;
          height: 157.5px;
          max-width: 100%;
          overflow: hidden;
          background: #ddd;
        }
        &--file {
          position: absolute;
          right: 5px;
          top: 5px;
          cursor: pointer;
          background: rgba(127, 127, 127, 0.5);
          padding: 3px;
          cursor: pointer;
          border-radius: 100%;
          display: flex;

          input[type="file"] {
            width: 100%;
            height: 100%;
            position: absolute;
            left: 0;
            top: 0;
            padding: 0;
            border: 0;
            cursor: pointer;
            opacity: 0;
          }

          img {
            width: 20px;
            height: 20px;
            cursor: pointer;
          }
        }
        &--img {
          max-width: 100%;
          max-height: 100%;
        }
      }
      &__group {
        // margin-left: 5%;
        margin-bottom: 20px;

				&--title {
					font-weight: 500;
					font-size: $font-size-normal;
				}

        textarea {
          width: 100%;
          font-family: "courier";
          padding: 12px 15px;
          margin-top: 10px;
          border: 1px solid #ddd;
          font-size: $font-size-normal;
        }

        input {
          width: 100%;
          font-family: "courier";
          padding: 12px 15px;
          margin-top: 10px;
          border: 1px solid #ddd;
          font-size: $font-size-normal;
        }
      }

      .showpassword {
        position: absolute;
        right: 10px;
        cursor: pointer;
      }
    }
    .bar {
      content: "";
      width: 100%;
      border-bottom: 1px solid #ddd;
      margin-bottom: 30px;
    }
    .control {
      display: flex;
      align-items: center;
			font-size: $font-size-small;

      &__submit {
        cursor: pointer;
        color: #fff;
        font-weight: bold;

        border: 0;
        background: #03a9f4;
        padding: 12px 2em;
        border-radius: 5px;
        margin-right: 20px;
      }
      &__cancel {
        cursor: pointer;
        background: #ddd;
        padding: 12px 2em;
        border-radius: 5px;
        margin-right: 20px;
      }
      &__reset {
        cursor: pointer;
        text-decoration: underline;
				padding: 12px 2em;
				font-size: $font-size-small;
      }
    }

    @media only screen and (max-width: 992px) {

      .form {
        &__line {
					display: block;
					width: 100%;
          &--text {
            width: 100%;
					}
					
					textarea {
						width: 100%;
					}
        }
        .showpassword {
          bottom: 25%;
				}
				input {
					width: 100% !important;
				}
      }
      .control {
        justify-content: space-between;
        &__submit {
          margin-right: 0px;
          font-size: 14px;
        }
        &__cancel {
          margin-right: 0px;
          font-size: 14px;
        }
        &__reset {
          padding: 0;
        }
      }
    }
  }

  .discount {
    text-decoration: line-through;
    color: #9e9e9e;
  }

  #survey .content {
    margin-top: 8vh;
  }

  .survey_url{
    padding: 20px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    input{
      width: 350px;
      // margin-left: 10px;
    }
    button{
      border: 0;
      border-radius: 5px;
      padding: 10px 20px;
      margin-left: 10px;
      background: #004f9c;
      display: flex;
      align-items: center;
      color: #fff;
      cursor: pointer;
      svg{
        width: 15px;
        height: 15px;
        fill: #fff;
        margin-right: 10px;
      }
    }
    .close_survey{
      display: flex;
      align-items: center;
      padding: 10px;
      cursor: pointer;
      svg{
        width: 15px;
        height: 15px;
        fill: #004f9c;
      }
    }
  }

  @media only screen and (max-width: 992px) {
		&, .form_section {
			min-height: calc(100vh - 194px);
		}
		
    // margin-bottom: 40px;

    .leftMenu__title {
      padding-left: 20px;
    }

    .menu {
      .active {
        font-weight: normal;
        background-color: transparent;
      }
    }
    #setting_register {
      display: none;
    }
    .content {
      padding: 25px;

      &__back {
        width: 20px;
        margin-right: 20px;
      }
		}
		
		.control {

			&__submit, &__cancel {
				width: 48%;
				text-align: center;
			}

		}
    #survey .content {
      padding: 0;
      margin-top: 0;
    }
    .survey_url{
      input{
        width: 260px;
        border-radius: 3px 0 0 3px;
      }
      button{
        padding: 12px;
        border-radius: 0 5px 5px 0;
        margin: 0;
        svg{
          margin-right: 0;
        }
      }
      
    }

  }

  /* ----------- iPad Portrait ----------- */
  @media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
    .form_section {
      .form {
        &__line {
          flex-wrap: wrap;
          &--text {
            width: 140px;
          }
        }
      }
    }
  }

  @media not all and (min-resolution: 0.001dpcm) { // ทำให้ iphone แสดงผลเพี้ยน เลย comment เอาไว้
    @supports (-webkit-appearance: none) {
      // .form_section {
      //   .form {
      //     &__line {
      //       display: inline-flex;
      //     }
      //     .showpassword {
      //       top: 35%;
      //     }
      //   }
      // }
    }
  }

  @-moz-document url-prefix() {
    .form_section {
      .form {
        &__line {
          display: inline-flex;
        }
      }
    }
  }
}
