/* Global CSS */
.form-page-wrapper {
    padding: 20px;
    width: 100%;
    background: #f2f2f2;
    overflow: auto;
}

.form-page-wrapper h3 {
    color: #555;
    font-size: 14px;
    margin-top: 30px;
}

.form-page-wrapper h3:first-child {
    margin-top: 0;
}

.form-page-wrapper a {
    text-decoration: none;
}

.button {
    padding: 0 13px;
    border: 1px solid #b8b8b8;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    background-color: #efefef;
    -moz-box-shadow: 0 1px 0 #fff, inset 0 1px 4px rgba(0, 0, 0, .05);
    -webkit-box-shadow: 0 1px 0 #fff, inset 0 1px 4px rgba(0, 0, 0, .05);
    box-shadow: 0 1px 0 #fff, inset 0 1px 4px rgba(0, 0, 0, .05);
    background-image: -o-linear-gradient(bottom, #e3e3e3 0%, #f1f1f1 100%);
    background-image: -webkit-linear-gradient(bottom, #e3e3e3 0%, #f1f1f1 100%);
    background-image: linear-gradient(to bottom, #e3e3e3 0%, #f1f1f1 100%);
    color: #5b5b5b;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
    text-align: center;
    cursor: pointer;
    float: left;
}

.button:hover {
    background-color: #dfdfdf;
    background-image: -o-linear-gradient(bottom, #d1d1d1 0%, #e7e7e7 100%);
    background-image: -webkit-linear-gradient(bottom, #d1d1d1 0%, #e7e7e7 100%);
    background-image: linear-gradient(to bottom, #d1d1d1 0%, #e7e7e7 100%);
}

.button:active, .button.down, .button.active {
    border: 1px solid #888;
    background-color: #cfcfcf;
    background-image: -o-linear-gradient(bottom, #cfcfcf 0%, #afafaf 100%);
    background-image: -webkit-linear-gradient(bottom, #cfcfcf 0%, #afafaf 100%);
    background-image: linear-gradient(to bottom, #cfcfcf 0%, #afafaf 100%);
}

.button.float-right {
    float: right;
}

.button.float-none {
    float: none;
}

.button.thin {
    height: 27px;
    line-height: 27px;
    font-weight: 400;
    text-transform: uppercase;
}


.button.uppercase {
    text-transform: uppercase !important;
}

.button.normal {
    font-weight: 400 !important;
}

.button.bold {
    font-weight: 700 !important;
}

.button.medium {
    height: 33px;
    line-height: 33px;
}

.button.thick {
    height: 41px;
    line-height: 41px;
}

.button.left {
    -moz-border-radius: 3px 0 0 3px;
    -webkit-border-radius: 3px 0 0 3px;
    border-radius: 3px 0 0 3px;
}

.button.mid {
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
    border-radius: 0;
    margin-left: -1px;
}

.button.right {
    -moz-border-radius: 0 3px 3px 0;
    -webkit-border-radius: 0 3px 3px 0;
    border-radius: 0 3px 3px 0;
    margin-left: -1px;
}

.button img {
    margin-top: 7px;
}

.button.green:hover {
    border: 1px solid #729f1d;
    background-image: -o-linear-gradient(bottom, #7dc81d 0%, #90dc2c 100%);
    background-image: -webkit-linear-gradient(bottom, #7dc81d 0%, #90dc2c 100%);
    background-image: linear-gradient(to bottom, #7dc81d 0%, #90dc2c 100%);
}

.button.green:active {
    background-image: -o-linear-gradient(bottom, #79c117 0%, #6cb311 100%);
    background-image: -webkit-linear-gradient(bottom, #79c117 0%, #6cb311 100%);
    background-image: linear-gradient(to bottom, #79c117 0%, #6cb311 100%);
    border: 1px solid #699319;
}

.button.light:hover {
    border: 1px solid #cfcfcf;
    background-color: #55595f;
    -moz-box-shadow: 0 1px 0 #fff, inset 0 0 3px rgba(0, 0, 0, .05);
    -webkit-box-shadow: 0 1px 0 #fff, inset 0 0 3px rgba(0, 0, 0, .05);
    box-shadow: 0 1px 0 #fff, inset 0 0 3px rgba(0, 0, 0, .05);
    background-image: -o-linear-gradient(bottom, #e4e4e4 0%, #f3f3f3 100%);
    background-image: -webkit-linear-gradient(bottom, #e4e4e4 0%, #f3f3f3 100%);
    background-image: linear-gradient(to bottom, #e4e4e4 0%, #f3f3f3 100%);
}

.button.light:active {
    border: 1px solid #c2c2c2;
    background-color: #55595f;
    -moz-box-shadow: 0 1px 0 #fff, inset 0 0 3px rgba(0, 0, 0, .05);
    -webkit-box-shadow: 0 1px 0 #fff, inset 0 0 3px rgba(0, 0, 0, .05);
    box-shadow: 0 1px 0 #fff, inset 0 0 3px rgba(0, 0, 0, .05);
    background-image: -o-linear-gradient(bottom, #f3f3f3 0%, #e4e4e4 100%);
    background-image: -webkit-linear-gradient(bottom, #f3f3f3 0%, #e4e4e4 100%);
    background-image: linear-gradient(to bottom, #f3f3f3 0%, #e4e4e4 100%);
}

.button.dark {
    border: 1px solid rgba(0, 0, 0, .7);
    -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, .1);
    -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .1);
    background-color: transparent;
    background-image: -o-linear-gradient(bottom, rgba(0, 0, 0, .05) 0%, rgba(255, 255, 255, .08) 100%);
    background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, .05) 0%, rgba(255, 255, 255, .08) 100%);
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, .05) 0%, rgba(255, 255, 255, .08) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, .26);
}

.button.dark:hover {
    background-image: -o-linear-gradient(bottom, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .2) 100%);
    background-image: -webkit-linear-gradient(bottom, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .2) 100%);
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .2) 100%);
}

.button.dark:active {
    border: 1px solid rgba(0, 0, 0, .7);
    -moz-box-shadow: 0 1px 0 rgba(255, 255, 255, .1), inset 0 1px 5px rgba(0, 0, 0, .47);
    -webkit-box-shadow: 0 1px 0 rgba(255, 255, 255, .1), inset 0 1px 5px rgba(0, 0, 0, .47);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .1), inset 0 1px 5px rgba(0, 0, 0, .47);
    background-image: -o-linear-gradient(bottom, rgba(0, 0, 0, .09) 0%, rgba(0, 0, 0, .2) 100%);
    background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, .09) 0%, rgba(0, 0, 0, .2) 100%);
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, .09) 0%, rgba(0, 0, 0, .2) 100%);
}

.button.dark a {
    color: #fff;
}

.button.options, .button.print {
    float: right;
    margin-top: 9px;
    margin-right: 15px;
}

.form-section {
    border: 1px solid #d6d6d6;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border-radius: 8px;
    background-color: #fff;
    -moz-box-shadow: 0 2px 5px rgba(6, 6, 6, .06);
    -webkit-box-shadow: 0 2px 5px rgba(6, 6, 6, .06);
    box-shadow: 0 2px 5px rgba(6, 6, 6, .06);
    margin: 12px 0 25px;
    padding: 34px 34px 28px;
    overflow: hidden;
    width: 673px;
}

.form-section .two-col-form {
    float: left;
    width: 240px;
}

.form-section .lead-image {
    margin-top: -34px;
    margin-left: -34px;
}

.button.route-results {
    margin-left: 28px;
    margin-bottom: 30px;
}

.form-section .sub p {
    font-size: 14px;
    color: #999;
}

.form-section .left.sub {
    margin-right: 20px;
}

.form-section label {
    width: 132px;
    display: block;
    float: left;
    font-size: 14px;
    color: #999;
}

.form-section.second label {
    color: #a2a2a2;
    width: 122px;
    font-size: 14px;
    margin-bottom: 27px;
}

.form-section.radios label {
    width: 180px;
    padding-bottom: 25px;
}


.form-section label.button {
    color: #555;
}

.form-spacer {
    clear: both;
    height: 54px;
}

input {
    box-sizing: initial;
}

input[type="text"], input[type="password"], input[type="email"] {
    line-height: 25px;
    padding: 0 10px;
    border: 1px solid #d4d4d4;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    background-color: #fff;
    -moz-box-shadow: 0 1px 0 #fff, inset 0 1px 4px rgba(0, 0, 0, .11);
    -webkit-box-shadow: 0 1px 0 #fff, inset 0 1px 4px rgba(0, 0, 0, .11);
    box-shadow: 0 1px 0 #fff, inset 0 1px 4px rgba(0, 0, 0, .11);
    color: #555;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 15px;
    margin-top: -8px;
}

input[type="text"].small {
    width: 26px;
}

.form-section .button.green {
    margin-left: 132px;
    margin-top: -3px;
}

/* Decision was made to make pretty much ALL checkboxes on the site look like little sliders.
   But FIXME I think we should really add a class anyway, because these rules can be surprising. */
input[type="checkbox"] {
    display: none;
}

input[type="checkbox"] + label span:not(.toggle-switch-ball) {
    display: inline-block;
    width: 32px;
    height: 18px;
    margin: -5px -2px 0 27px;
    vertical-align: middle;
    background: url(../images/check-boxes.png) bottom no-repeat;
    cursor: pointer;
}

input[type="checkbox"]:checked + label span:not(.toggle-switch-ball) {
    background: url(../images/check-boxes.png) top no-repeat;
}

.select-wrapper {
    padding-right: 0;
}
.select-wrapper select {
    -webkit-appearance:none;
   font-size:13px;
   width:185px;
   overflow:hidden;
   background:url(../images/dropdown-arrows.png) no-repeat right;
   border:none;
   line-height:22px;
   color:#5b5b5b;
}
select:focus {
    outline: none;
}

.table-round {
    width: 741px;
    border: 1px solid #d6d6d6;
    border-radius: 8px;
    background-clip: padding-box;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(6, 6, 6, .06);
    overflow: hidden;
}

.table-round.small {
    width: 490px;
}

.table-round.small tbody th {
    padding-left: 7px;
    font-size: 14px;
}

.table-header {
    padding: 14px 27px;
    background: #f4f4f4;
    border-bottom: #dfdfdf 1px solid;
}

.table-header h1 {
    margin: 0;
}

.referred-table .table-row {
    padding: 12px 0;
    border-bottom: 1px solid #dfdfdf;
}

.table-row {
    padding: 12px;
    border-bottom: 1px solid #dfdfdf;
}

.referred-table {
    width: 100%;
}

.referred-table .table-header th {
    color: #a9a9a9;
    font-size: 14px;
    text-align: left;
    font-weight: 400;
    padding: 8px 0 8px 24px;
}

th.refer-name {
    width: 223px;
}

th.refer-email {
    width: 296px;
}

th.refer-date {
    width: 111px;
}

th.refer-status {
    width: 111px;
}

th.location {
    width: 64px;
}

th.search {
    width: 285px;
}

th.ccord {
    width: 240px;
}

th.waypoint {
    width: 110px;
}

th.span-6 {
    width: 16px;
}

.referred-table .table-row td {
    padding: 12px 0 12px 24px;
    color: #555;
    font-size: 15px;
}

.referred-table .table-row td.inactive {
    color: #a9a9a9;
}

.in-text {
    margin: 0 10px;
}

.in-text.short-number {
    width: 50px;
    text-align: right;
}

.table-input input:active {
}

/* Notification Boxes */
.notification-box {
    border: 1px solid #d2d2d2;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    background-color: #f9f9f9;
    overflow: auto;
    width: 741px;
    background-position: 29px center;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 30px;
    clear: both;
}

.notification-box.padded {
    margin: 20px;
}

.notification-box.info {
    background-image: url(../images/notification-info-icon.png);
    background-color: #dbf2f6;
}

.notification-box.alert {
    background-image: url(../images/notification-alert-icon.png);
    background-color: #f4edcf;
}

.notification-box .notification-content {
    float: right;
    width: 607px;
    padding: 23px;
    background: #fafafa;
    border-left: 1px solid #d2d2d2;
}

.notification-box h2 {
    color: #333;
    font-size: 18px;
    font-weight: 700;
}

.notification-box p {
    color: #333;
    font-size: 14px;
    padding-top: 9px;
    line-height: 24px;
}

.notification-box ul {
    padding: 9px 0;
}

.notification-box li {
    list-style: disc;
    margin-left: 20px;
}

.notification-box li p {
    padding: 0;
}

/* Form Page CSS */
.form-section h4 {
    font-size: 14px;
    font-weight: 700;
    color: #999;
    margin-bottom: 25px;
}

/* Section Specific CSS */
.form-section.hints label {
    width: 245px;
}

.form-section.hints .button {
    margin-top: 7px;
}

.form-section.units .button.toggle {
    margin-top: -4px;
}

.form-section.sat-com label {
    width: auto;
    padding-right: 25px;
}

.form-section.units .button.green {
    margin: 31px 416px 0 0;
}

.form-section input.username {
    width: 254px;
}

/* Fix to notification boxes inside form sections */
.form-section .notification-box.padded.alert {
    width: auto;
    margin: 0;
}

.form-section .notification-box .notification-content {
    width: 80%;
}

.upgrade-link-wrap input {
    width: 437px;
    text-align: center;
    color: #909090;
    margin-top: 18px;
}

.upgrade-link-wrap .button {
    width: 92px;
    padding: 0 8px;
}

.upgrade-link-wrap a {
    background-position: right;
    background-repeat: no-repeat;
    width: 80px;
    display: inline-block;
    text-align: left;
    text-decoration: none;
    color: #555;
}

.fb-update {
    background: url(../images/fb-update-icon.png);
}

.twit-update {
    background: url(../images/twit-update-icon.png) 45px -14px no-repeat;
}

.email-update {
    background: url(../images/email-update-icon.png) 32px -14px no-repeat;
}

.copy-update {
    background: url(../images/copy-update-icon.png) 37px -14px no-repeat;
}

.wo-select {
    padding: 0 9px !important;
}

/* Page Specific CSS */
#left-sidebar .button {
    float: none;
}

.form-page-wrapper.routing .left.input {
    margin-right: 30px;
    margin-bottom: 35px;
}

.form-page-wrapper.routing .timezone select {
    width: 200px;
}

.form-page-wrapper.routing input {
    margin: 0;
}

.form-page-wrapper.routing .start-time input[type="text"] {
    width: 194px;
    margin-right: 10px;
}

.form-page-wrapper.routing .start-time p {
    font-size: 11px;
    font-weight: 700;
    color: #bbb;
    margin: 5px 18px;
}

.form-page-wrapper.routing .tracking select {
    width: 181px;
}

.form-page-wrapper.routing .table-round .button.red {
    padding: 0 11px;
    margin: 0 6px;
}

.form-page-wrapper.routing .referred-table .table-row td {
    height: 44px;
}

.form-page-wrapper.routing .button-wrapper {
    width: 742px;
    margin: 30px 0;
}

.button-wrapper .button-wrap-inner {
    width: 326px;
    margin: 0 auto;
}

.form-page-wrapper.routing .button-wrapper .button {
    width: 200px;
    margin: 0 auto;
    display: block;
}

/* specifying this height is wrong */
.form-page-wrapper.routing .referred-table .table-row td {
    height: initial;
}

/* Weather routing oddness */
.form-page-wrapper {
    width: auto;
    overflow: visible;
}

.notification-box .button.green {
    padding: 0 50px;
}

.table-input input {
    /*border: none;
        -moz-border-radius: 0;
        -webkit-border-radius: 0;
        border-radius: 0;
        background-color: #fff;
        -moz-box-shadow: 0px 0px 0px #fff;
        -webkit-box-shadow: 0px 0px 0px #fff;
        box-shadow: 0px 0px 0px #fff;
        cursor: pointer;
        width: 90%;
        margin-left: -10px!important; */
}

.table-input.left input {
    -moz-border-radius: 3px 0 0 3px;
    -webkit-border-radius: 3px 0 0 3px;
    border-radius: 3px 0 0 3px;
    float: left;
    width: 65%;
    background-color: #fff;
    -moz-box-shadow: 0 0 0 #fff;
    -webkit-box-shadow: 0 0 0 #fff;
    box-shadow: 0 0 0 #fff;
}

.table-input.left input:focus {
    outline: 0;
    border: 1px solid #bbb;
}

/* Django form rendering */

ul.errorlist {
    display: inline;
}

ul.errorlist li {
    display: inline;
    color: red;
    padding: 3px;
}

.form-section button.green.succeeded[type=submit] {
    position: relative;
    margin-right: 150px;
}

.form-section button.green.succeeded[type=submit]:after {
    content: "Change\00A0 successful";
    padding: 3px;
    color: green;
    position: absolute;
    left: 100%;
}

form span.success {
    padding: 3px;
    color: green;
}

input::placeholder {
    opacity: 1;
    color: #B6B6B6;
}
