/* Secure area (login-only) styles.
 *
 * Unlike every other stylesheet in this folder this one is not from the crawl:
 * the secure area sits behind the login, so none of its CSS was captured. The
 * rules below reproduce Dashboard.png, Contact List.png and Order Status.png,
 * measured off those screenshots, and are layered on top of the original
 * main.css / sidemenu.css so type, colours and the page chrome stay verbatim.
 */

/* ---------------------------------------------------------------- dashboard */

.dashtiles {
    margin-top: 20px;
    font-size: 0; /* collapses the whitespace between the inline-block tiles */
}

.dashtile {
    display: inline-block;
    margin-right: 16px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);
}

.dashtile:last-child {
    margin-right: 0;
}

.dashtile img {
    display: block;
    width: 151px;
    height: 100px;
}

.dashbanner {
    display: block;
    margin-top: 22px;
    width: 822px;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);
}

.dashbanner img {
    display: block;
    width: 822px;
    height: 48px;
}

.dashcolumns {
    margin-top: 37px;
}

.dashcolumn {
    float: left;
}

/* Widths are the originals': the columns are packed tight against each other
   rather than evenly divided, and together they match the banner's 822px. */
.dashcolumn:nth-child(1) {
    width: 192px;
}

.dashcolumn:nth-child(2) {
    width: 129px;
}

.dashcolumn:nth-child(3) {
    width: 169px;
}

.dashcolumn:nth-child(4) {
    width: 332px;
}

.dashcolumns:after {
    content: '';
    display: block;
    clear: both;
}

.dashgroup + .dashgroup {
    margin-top: 15px;
}

.dashheading {
    font-size: 12px;
    font-weight: bold;
    font-family: Arial;
    color: #414042;
    line-height: 18px;
    margin: 0 0 5px 0;
    padding: 0;
    top: 0;
}

.dashlink,
.dashheading {
    /* The original columns are sized to their widest label; a long one runs past
       the column rather than wrapping. */
    white-space: nowrap;
}

.dashlink {
    display: block;
    font-size: 12px;
    line-height: 18px;
}

/* ----------------------------------------------------------------- contacts */

.contactpanel {
    margin-top: 18px;
    padding: 12px 14px 14px 14px;
    background-color: #f7f7f7;
    border: solid 1px #d5d5d5;
    border-radius: 6px;
    box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.14);
}

h2.contactpaneltitle {
    padding-bottom: 10px;
}

.contactnote {
    padding: 12px 14px 4px 14px;
    background-color: #fbfbfb;
    border: solid 1px #dcdcdc;
    border-radius: 6px;
}

.contactnotetext {
    margin: 0 0 14px 0;
    font-size: 18px;
    line-height: 24px;
    color: #b78600;
}

.contactgrid:after {
    content: '';
    display: block;
    clear: both;
}

.contactcard {
    float: left;
    /* Three to a row, in the panel and in the narrower note box alike. */
    width: 33.333%;
    box-sizing: border-box;
    margin-bottom: 18px;
    padding-right: 14px;
}

/* Every third card opens a new row, so the grid stays three wide like the original. */
.contactcard:nth-child(3n + 1) {
    clear: left;
}

.contactcard h4 {
    margin: 0 0 6px 0;
    font-family: Arial;
    font-size: 12px;
    font-weight: bold;
    color: #2f64a4;
}

.contactcard p {
    margin: 0;
    font-size: 12px;
    line-height: 15px;
    color: #636466;
}

.contactcard p.contactphone {
    font-weight: bold;
}

/* ------------------------------------------------------------- order status */

/* /repsonly/cc/main.aspx renders on its own, with no site header or footer. */
#ordersframe {
    font-family: Arial;
    font-size: 12px;
    color: #000000;
}

.ordertabs {
    height: 29px;
    padding-left: 1px;
    font-size: 0; /* collapses the whitespace between the inline-block tabs */
}

.ordertab {
    display: inline-block;
    width: 116px;
    height: 29px;
    margin-right: 1px;
    padding: 0;
    border: 0;
    background-color: #4d4d4f;
    color: #f2c800;
    font-family: Arial;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.ordertab.selected {
    background-color: #0d4c8b;
}

.orderfilter {
    width: 22px;
    height: 17px;
    margin-left: 114px;
    vertical-align: top;
    font-size: 12px;
}

.orderloading {
    padding-top: 3px;
    font-size: 12px;
}

.ordertable {
    margin-top: 6px;
    border-collapse: collapse;
    font-size: 12px;
}

.ordertable th,
.ordertable td {
    padding: 3px 10px 3px 5px;
    border-bottom: solid 1px #d5d5d5;
    text-align: left;
}

.ordertable th {
    background-color: #4d4d4f;
    color: #f2c800;
    border-bottom: 0;
}

/* ------------------------------------------------------- warranty claim form */

.warrantynotice {
    margin-top: 20px;
    padding: 8px 10px;
    background-color: #0d3d73;
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    line-height: 17px;
    width: 811px;
}

.warrantysection {
    margin-top: 14px;
    padding: 10px 12px 12px 12px;
    border: solid 1px #c8c8c8;
    width: 806px;
}

.warrantysection h3 {
    margin: 0 0 10px 0;
    padding: 0;
    top: 0;
    font-family: Arial;
    font-size: 13px;
    font-weight: bold;
    color: #2f64a4;
}

.warrantysection table {
    width: auto;
    border-collapse: collapse;
}

.warrantysection td {
    padding: 4px 5px 4px 0;
    font-size: 12px;
    color: #636466;
    vertical-align: middle;
}

/* Field labels sit on one line; the full-width question rows (which carry a
   colspan) wrap, as they do in the original. */
.warrantysection td:not([colspan]) {
    white-space: nowrap;
}

.warrantysection td.warrantyfield {
    padding-right: 14px;
}

.warrantysection input[type='text'],
.warrantysection input[type='date'],
.warrantysection input[type='number'] {
    width: 176px;
    height: 18px;
    border: solid 1px #767676;
    font-family: Arial;
    font-size: 12px;
}

.warrantysection select {
    height: 22px;
    border: solid 1px #767676;
    font-family: Arial;
    font-size: 12px;
}

.warrantysection textarea {
    width: 172px;
    height: 78px;
    border: solid 1px #767676;
    font-family: Arial;
    font-size: 12px;
}

/* The original marks required fields with a red asterisk beside the control. */
.required {
    color: #ff0000;
    font-size: 12px;
    vertical-align: top;
}

.warrantybuttons {
    margin-top: 14px;
}

.warrantyerror {
    display: block;
    color: #ff0000;
    font-size: 12px;
}
