/* =================================================================
   MAIN.CSS - Core Styles & Layout
   Delta Foremost Chemical Corp. Quote Form
   ================================================================= */

/* =================================================================
   GLOBAL RESETS
   ================================================================= */

* {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* =================================================================
   LAYOUT
   ================================================================= */

div#container {
    padding-bottom: 150px;
    max-width: 100%;
    overflow-x: hidden;
}

div#content {
    width: 85%;
    max-width: 100%;
    margin: auto;
    padding: 20px 0;
}

div#headerImg {
    width: 40%;
    margin: auto;
    margin-bottom: 20px;
}

div#headerImg>img {
    width: 100%;
}

/* =================================================================
   TABLES
   ================================================================= */

table {
    text-align: left;
    margin-bottom: 20px;
    width: 100%;
    table-layout: fixed;
    border-spacing: 0;
    border-collapse: collapse;
}

table th.sectionHead,
table th.subHead {
    padding: 3px;
    padding-left: 10px;
    background-color: #ddd;
    border: 1px solid #000;
}

table th.subHead {
    font-size: 0.95em;
}

table th>span.headSubText {
    font-weight: normal;
}

table tbody {
    border: 1px solid #000;
}

tr.insideRow {
    border-top: 1px solid #000;
}

td {
    padding-left: 5px;
    font-size: 0.8em;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
}

/* Ensure first row has top border to match tbody border */
table tbody tr:first-child td {
    border-top: 1px solid #000;
}

tr.formFields td {
    padding: 0;
}

td.YesNo {
    text-align: center;
    padding: 0;
    font-size: 11px;
}

.alignTitle {
    padding: 0 0 0 11px;
    font-size: 12px;
}

.centerText {
    text-align: center;
}

/* Header table */
table.headerTable,
table.headerTable tr,
table.headerTable td,
table.headerTable tbody {
    border: 0;
}

table.headerTable td {
    padding: 5px 0;
}

/* Bottom table - ensure it doesn't get table styles since it's a div */
#bottomTable {
    margin-bottom: 0;
    border: none;
}

#bottomTable tbody,
#bottomTable td {
    border: 0;
}

/* Fix Bootstrap row negative margins that get cut off by overflow-x: hidden */
#bottomTable.row {
    border: none;
    /* Remove negative margins that cause overflow issues */
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#bottomTable.row > div {
    border: none;
    /* Bootstrap columns keep their default padding for proper spacing */
}

/* Part1 table top border */
table#part1 {
    border-top: 1px solid #000;
}

/* =================================================================
   FORM INPUTS
   ================================================================= */

td>input {
    width: 100%;
    padding: 3px 6px;
    font-size: initial;
    border: none;
    background-color: #DDE4FF;
    height: 30px;
}

td>textarea {
    width: 100%;
    padding: 3px 6px;
    font-size: initial;
    border: none;
    background-color: #DDE4FF;
    margin: 0;
    vertical-align: top;
    resize: vertical;
}

td>input:focus,
td>textarea:focus {
    outline: none;
}

td>input:required,
td>textarea:required {
    background-color: rgba(255, 0, 0, 0.16);
}

tr.formFields td textarea {
    max-width: 100%;
    margin-bottom: 0;
}

input:invalid {
    background: red;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 30px white inset;
}

input[type=checkbox],
input[type=radio] {
    margin: 0;
}

input.check {
    width: 15px;
    height: 15px;
    margin: 1px 0 0 0;
    padding: 0;
    font-size: 15px;
}

input.check:checked {
    margin: 0;
}

.yesnoradios {
    width: 25px;
    margin: 0 auto;
}

/* =================================================================
   TYPOGRAPHY
   ================================================================= */

p,
ul {
    padding: 5px 0;
    font-size: 0.8em;
}

ul {
    margin-left: 10%;
}

ul>li {
    padding: 3px;
}

ul:last-of-type {
    list-style-type: none;
}

ul:last-of-type>li {
    padding: 0;
}

/* =================================================================
   LEGEND
   ================================================================= */

div#legend,
div#legend * {
    float: left;
    margin: 5px;
}

#legCol {
    width: 40px;
    height: 20px;
    background-color: rgba(255, 0, 0, 0.16);
}

/* =================================================================
   SIGNATURE BLOCKS
   ================================================================= */

#signatureBoxOne {
    border: 1px solid black;
}

#signatureBoxTwo {
    border-top: 1px solid black;
    border-right: 1px solid black;
    border-bottom: 1px solid black;
}

table#sigBlock {
    width: 60%;
    margin-top: 20px;
}

#sigBlock tbody {
    border: none;
}

#sigBlock td {
    border: none;
}

#sigBlock td>input {
    font-size: x-large;
}

.sigFields {
    border-bottom: 1px solid #000;
}
