/*
form input.ng-invalid {
    background-color: lightcoral;
}
*/

input::-webkit-input-placeholder {
    color: gray;
}

#form_container {
  margin-top:45px;
}

.packing-head {
  float: left;
  margin-right:20px;
}
#mark {
  float: left;
}

.column {
    display:inline-block;
    vertical-align:top;
}

.row { display:block; }

.num-input {
    text-align:right;
}

#id_mark_spec_textarea {
    height:12em;
    width:20em;
}

.spec-item-title {
    width:10em;
    display:inline-block;
    text-align:right;
}

/*
 * pdt-table css
 */
    #id_pdt_table {
        clear: both;
        width: 800px;
        overflow: hidden;
    }
    #id_pdt_table table {
        width: 800px;
    }
    #id_pdt_table thead tr {
        display: block;
    }
    #id_pdt_table thead th {
        width: 100px;
        padding: 1px 0px; /*head 之間不要 padding 比較好計算*/
    }
    #id_pdt_table tbody {
        display: block;
    }

    #id_pdt_table th:nth-child(1) { width:60px; }
    #id_pdt_table th:nth-child(2) { width:100px; }
    #id_pdt_table th:nth-child(3) { width:150px; }
    #id_pdt_table th:nth-child(4) { width:60px; }
    #id_pdt_table th:nth-child(5) { width:60px; }
    #id_pdt_table th:nth-child(6) { width:100px; }
    #id_pdt_table th:nth-child(7) { width:100px; }
    #id_pdt_table th:nth-child(8) { width:100px; }

    #id_pdt_table td:nth-child(1) { width:60px; }
    #id_pdt_table td:nth-child(2) { width:100px; }
    #id_pdt_table td:nth-child(3) { width:150px; }
    #id_pdt_table td:nth-child(4) { width:60px; }
    #id_pdt_table td:nth-child(5) { width:60px; }
    #id_pdt_table td:nth-child(6) { width:100px; }
    #id_pdt_table td:nth-child(7) { width:100px; }
    #id_pdt_table td:nth-child(8) { width:100px; }
    #id_pdt_table td input { width:100% }

/*
 * item-table css
 */
    #id_item_table_wrapper {
        clear: both;
        border: 1px solid;
        height: 500px; /*決定 head + content 的大小*/
        width: 900px;
        overflow-x: hidden;
        overflow-y: auto;
    }

/*
 * container_item_editor css
 */
    /*th td 的寬度要一樣，input 週邊預設會有 6px 的增加*/
    #id_container_item_editor th:nth-child(1) { width:60px; }
    #id_container_item_editor th:nth-child(2) { width:150px; }
    #id_container_item_editor th:nth-child(3) { width:60px; }
    #id_container_item_editor th:nth-child(4) { width:60px; }
    #id_container_item_editor th:nth-child(5) { width:60px; }
    #id_container_item_editor th:nth-child(6) { width:60px; }

    #id_container_item_editor td:nth-child(1) { width:60px; }
    #id_container_item_editor td:nth-child(2) { width:150px; }
    #id_container_item_editor td:nth-child(3) { width:60px; text-align:right; }
    #id_container_item_editor td:nth-child(4) { width:60px; text-align:right; }
    #id_container_item_editor td:nth-child(4) { width:60px; text-align:right; }
    #id_container_item_editor td:nth-child(5) { width:60px; text-align:right; }
    #id_container_item_editor td:nth-child(6) { width:60px; text-align:right; }
    #id_container_item_editor td input { width:100% }
/*
 * case_item_editor css
 */
    #id_case_item_editor {
        width: 900px;
        border-collapse:collapse;
    }
    #id_case_item_editor tbody {
        height: 445px;
    }
    #id_case_item_editor .case-item {
        width: 49px;
        margin: 1px;
    }
    #id_case_item_editor .case-no {
        width: 49px;
        text-align:center;
        margin: 1px;
    }
    #id_case_item_editor .case-item input {
        width: 45px;
        margin: 1px;
    }
    #id_case_item_editor th:nth-child(1) { width:60px; }
    #id_case_item_editor th:nth-child(2) { width:514px; }
    #id_case_item_editor th:nth-child(3) { width:60px; text-align:right; }
    #id_case_item_editor th:nth-child(4) { width:60px; text-align:right; }
    #id_case_item_editor th:nth-child(5) { width:60px; text-align:right; }

    #id_case_item_editor td:nth-child(1) input { width:54px; }
    #id_case_item_editor td:nth-child(2) { width:514px; }
    #id_case_item_editor td:nth-child(3) { width:60px; text-align:right; }
    #id_case_item_editor td:nth-child(4) { width:60px; text-align:right; }
    #id_case_item_editor td:nth-child(5) { width:60px; text-align:right; }

    #id_case_item_editor .case-item {
      padding:10px 0;
    }
    #id_case_item_editor .item-case-field {
      height: 20px;
      padding: 1px;
      font-size: 14px;
      font-family: Arial;
      text-align: right;
      line-height: 20px;
    }
    #id_case_item_editor .case-item .style-input-text { text-align:left; }
    #id_case_item_editor .case-item .style-input-num { text-align:right; }

/*
 * sum-table css
 */
    #id_sum_table {
        width:590px;
    }

    #id_sum_table th:nth-child(1) { width:250px; text-align:left; }
    #id_sum_table th:nth-child(2) { width:60px; text-align:right; }
    #id_sum_table th:nth-child(3) { width:60px; text-align:right; }
    #id_sum_table th:nth-child(4) { width:60px; text-align:right; }
    #id_sum_table th:nth-child(5) { width:60px; text-align:right; }
    #id_sum_table th:nth-child(6) { width:60px; text-align:right; }

    #id_sum_table td:nth-child(1) { width:250px; text-align:left; }
    #id_sum_table td:nth-child(2) { width:60px; text-align:right; }
    #id_sum_table td:nth-child(3) { width:60px; text-align:right; }
    #id_sum_table td:nth-child(4) { width:60px; text-align:right; }
    #id_sum_table td:nth-child(5) { width:60px; text-align:right; }
    #id_sum_table td:nth-child(6) { width:60px; text-align:right; }

#header {
  width: 100%;
  height: 40px;
  position: fixed;
  top:0;
  left:0;
  border-bottom: 2px solid #BCCACE;
  margin: 0;
  padding: 0 0 0 3px;
  background-color: #FFF;
}
#header button {
  margin: 8px 5px;
}

#content {
  margin-top: 45px;
}

#id_form_buttons button { margin: 3px; }



#logout_div {
  display: inline-block;
  position: fixed;
  right: 0;
  top: 0;
  margin: 8px;
  z-index: 999;
}

* {
	-webkit-box-sizing: border-box;
  -moz-box-sizing: border-box
  box-sizing: border-box;
}
