::placeholder,
::-webkit-input-placeholder {
  color: #9c9c9c !important;
  opacity: 1 !important;
}

table {
  border: 1px solid #ccc;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
}

table caption {
  font-size: 1.5em;
  margin: .5em 0 .75em;
}

table tr {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  padding: .35em;
}

table th,
table td {
  padding: .625em;
  text-align: center;
}


table td input[type="number"] {
	text-align: center;
}

table td input::-webkit-input-placeholder,
table td input::placeholder,
table td input:placeholder {
  color: #9c9c9c;
}

table td input.is-invalid {
  border: 1px solid red;
}

table th {
  font-size: .85em;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Firefox fix */
table td input[type=number].line_price_pu::-webkit-outer-spin-button,
table td input[type=number].line_price_pu::-webkit-inner-spin-button,
table td input[type=number].line_price::-webkit-outer-spin-button,
table td input[type=number].line_price::-webkit-inner-spin-button,
table td input[type=number].line_weight::-webkit-outer-spin-button,
table td input[type=number].line_weight::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

table td input[type=number].line_price_pu,
table td input[type=number].line_price,
table td input[type=number].line_weight {
    -moz-appearance:textfield;
}
/* Firefox fix */

@media screen and (max-width: 992px) {
  table {
    border: 0;
  }

  table caption {
    font-size: 1.3em;
  }
  
  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  
  table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: .625em;
  }
  
  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: .8em;
    text-align: right;
  }
  
  table td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  
  table td .input {
	margin-top: 15px;
	margin-bottom: 0;
  }
  
  table td input[type="number"] {
    text-align: left;
  }
  
  table td:last-child {
    border-bottom: 0;
  }
}
