#normal-sortables,
#advanced-sortables {
  #post-type-options,
  #post-type-visibility,
  #post-type-query {
    table {
      width: 100%;
      border-collapse: collapse;
      margin: -10px 0;
      padding: 0 10px;

      tbody {
        tr {
          border-bottom: 1px solid #CCCCCC;

          &:last-child {
            border-bottom: none;
          }

          td {
            padding: 20px;

            &:nth-child(1) {
              width: 250px;
              vertical-align: top;

              label {
                font-weight: bold;
              }

              em {
                display: block;
                margin-top: 10px;
              }
            }

            &:not(:nth-child(1)) {
              .mx-- {
                margin: 0 -5px;
              }

              label {
                &.checkbox {
                  width: calc(20% - 10px);
                  float: left;
                  border: 1px solid #CCC;
                  box-sizing: border-box;
                  margin: 5px;
                  padding: 10px;
                  line-height: 1.8;

                  input {
                    display: none;
                  }
                }
              }

              input[type="text"],
              textarea,
              select {
                width: 100%;
                padding: 7px;
                border: 1px solid #CCC;
                border-radius: 0;
              }
            }
          }
        }
      }
    }
  }

  #post-type-labels {
    table {
      width: 100%;
      border-collapse: collapse;
      margin: -10px 0;
      padding: 0 10px;

      tbody {
        tr {
          td {
            padding: 20px;

            label {
              font-weight: bold;
            }

            input {
              width: 100%;
              padding: 7px;
              border: 1px solid #CCC;
              border-radius: 0;
            }
          }
        }
      }
    }
  }
}

#side-sortables {
  #post-type-options,
  #post-type-visibility,
  #post-type-query {
    table {
      width: 100%;
      border-collapse: collapse;
      margin: -10px 0;
      padding: 0 10px;

      tbody {
        tr {
          border-bottom: 1px solid #CCCCCC;
          display: inline-block;
          width: 100%;

          &:last-child {
            border-bottom: none;
          }

          td {
            padding: 20px 20px;
            width: 100%;
            display: inline-block;
            box-sizing: border-box;

            &:nth-child(1) {
              padding-bottom: 0;

              label {
                font-weight: bold;
              }

              em {
                display: block;
                margin-top: 10px;
              }
            }

            &:not(:nth-child(1)) {
              .mx-- {
                margin: 0 -5px;
              }

              label {
                &.checkbox {
                  width: 100%;
                  float: left;
                  border: 1px solid #CCC;
                  box-sizing: border-box;
                  margin: 5px 0;
                  padding: 10px;
                  line-height: 1.8;

                  input {
                    display: none;
                  }
                }
              }

              input[type="text"],
              textarea,
              select {
                width: 100%;
                padding: 7px;
                border: 1px solid #CCC;
                border-radius: 0;
              }
            }
          }
        }
      }
    }
  }

  #post-type-labels {
    table {
      width: 100%;
      border-collapse: collapse;
      margin: -10px 0 0;
      padding: 0 10px;

      tbody {
        tr {
          display: inline-block;
          width: 100%;

          td {
            display: inline-block;
            width: 100%;
            box-sizing: border-box;
            padding: 20px 20px 0;

            &:nth-child(2n) {
              padding-top: 10px;
            }

            label {
              font-weight: bold;
              margin-bottom: 0;
            }

            input {
              width: 100%;
              padding: 7px;
              border: 1px solid #CCC;
              border-radius: 0;
            }
          }
        }
      }
    }
  }
}

#post-type-details {
  .inside {
    overflow-x: auto;
  }
}