label.error {
    color: #f00;
}

td.error,
p.error {
    color: #f00;
    font-weight: bold;
}

/* Generic centred form checkboxes */
#formindent.centred-form .control-group.smarty_checkboxes label {
    color: #003580;
}

#formindent.centred-form .control-group.smarty_checkboxes input[type="checkbox"] {
    margin: 0 10px 5px 0;
}

#ajax_overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    opacity: 0;
}

#loader {
    position: fixed;
    left: 50%;
    top: 50%;
    margin: -32px 0 0 -32px;
    z-index: 10;
    display: none;
}

#ng-loader {
    position: fixed;
    left: 50%;
    top: 50%;
    margin: -32px 0 0 -32px;
    z-index: 10;
}

.bootstrapped form.ng-submitted input.ng-invalid,
.bootstrapped form.ng-submitted select.ng-invalid {
    border-color: #e9322d;
    -webkit-box-shadow: 0px 0px 6px #f8b9b7;
    -moz-box-shadow: 0px 0px 6px #f8b9b7;
    box-shadow: 0px 0px 6px #f8b9b7;
}

.bootstrapped.add_vehicles .form-horizontal .control-group.error {
    color: #b94a48;
    margin: 20px 0;
    padding: 25px;
    border: 1px solid #b94a48;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
    background: #fceded;
}

.bootstrapped.add_vehicles .form-horizontal .control-group.error h3 {
    font-size: 14px;
    font-weight: normal;
    margin: 0;
    padding-left: 25px;
    line-height: normal;
    background: transparent url(/images/icons/exclamation_mark_icon.png) no-repeat 0 0 / 18px 16px;
}

.bootstrapped.add_vehicles .form-horizontal .control-group.error span {
    padding-left: 25px;
    float: left;
}

.bootstrapped.add_vehicles .form-horizontal .control-group.messages {
    position: absolute;
    top: 55px;
    color: #b94a48;
}

.bootstrapped.add_vehicle .form-horizontal .control-label {
    padding-top: 0;
    cursor: default;
}

.bootstrapped.add_vehicles .form-horizontal .help_icon {
    cursor: pointer;
    background: url(/images/icons/help.png) no-repeat 102px 0;
}

.bootstrapped.add_vehicles .form-horizontal .vrm .help_icon {
    background: url(/images/icons/help.png) no-repeat 35px 0;
}

.bootstrapped.add_vehicles .form-horizontal .coveroptions .help_icon {
    background: url(/images/icons/help.png) no-repeat 70px 0;
}

.add_vehicles .tooltip_box {
    position: relative;
}

.add_vehicles .tip_text {
    width: 250px;
    position: absolute;
    left: 165px;
    bottom: 0;
    display: none;
    text-align: left;
}

.add_vehicles .tip_text {
    left: -80px;
    bottom: 20px;
    display: block;
}

.add_vehicles .coveroptions .tip_text {
    left: -46px;
}

.add_vehicles .ncbtypes .tip_text {
    left: -13px;
}

.add_vehicles .tip_top {
    width: 250px;
    height: 20px;
    background: url(/images/icons/tooltip_top.png) no-repeat 0 0;
}

.add_vehicles .tip_mid {
    width: 208px;
    background: #3e454d;
    padding: 0 20px;
    color: #fff;
    border-left: 1px solid #323335;
    border-right: 1px solid #323335;
}

.add_vehicles .tip_bot {
    width: 250px;
    height: 47px;
    background: url(/images/icons/tooltip_bottom.png) no-repeat 0 0;
}

.place_bid .controls,
.add_vehicle .controls {
    line-height: 20px;
}

.place_bid .money_int,
.edit_lot .money_int {
    width: 179px;
}

.place_bid textarea,
.add_vehicle textarea {
    resize: vertical;
}

/* Modify Lot page */
.bootstrapped.modify_lot .form-horizontal .control-label {
    cursor: default;
}

.bootstrapped.modify_lot .form-horizontal .control-group.smarty_radios label {
    float: left;
    margin-right: 20px;
}

.bootstrapped.modify_lot .form-horizontal .control-group.smarty_radios input[type="radio"] {
    margin: 0 6px 0 0;
}

.bootstrapped.modify_lot .form-horizontal .control-group.smarty_checkboxes label {
    width: 300px;
    float: left;
    margin-left: -287px;
    text-align: right;
}

.bootstrapped.modify_lot .form-horizontal .control-group.smarty_checkboxes input[type="checkbox"] {
    margin-left: 20px;
}

.bootstrapped.modify_lot .form-horizontal .control-group.smarty_checkboxes .info {
    margin-left: 20px;
    color: #003580;
}

.bootstrapped.modify_lot .money_int {
    width: 179px;
}

.bootstrapped.modify_lot #newexpirytime {
    width: 60px;
}

.bootstrapped.modify_lot section {
    margin: 20px 0 0;
}

.bootstrapped.modify_lot section.header_message {
    margin-top: 25px;
    padding: 20px;
    border-radius: 5px;
}

.bootstrapped.modify_lot section.header_message.status {
    color: #008000;
    border: 1px solid #008000;
    background: #e2f3e4;
}

.bootstrapped.modify_lot section.header_message.error {
    color: #b94a48;
    border: 1px solid #b94a48;
    background: #ffcbca;
}

.bootstrapped.modify_lot section.header_message p {
    margin: 0;
}

.bootstrapped.modify_lot section.panel {
    padding: 15px 20px;
    border: 2px solid #007dc5;
    border-radius: 10px;
}

.bootstrapped.modify_lot h2 {
    font-size: 18px;
    font-weight: normal;
    color: #003580;
    line-height: 20px;
}

.bootstrapped.modify_lot textarea {
    resize: vertical;
}

.bootstrapped.modify_lot #coverInPeriodsList {
    padding-top: 5px;
}

.bootstrapped.modify_lot #coverInPeriodsList table.coldisplay tr.darkgrey {
    background: none;
}

.bootstrapped.modify_lot #coverInPeriodsList table.coldisplay th {
    padding: 8px;
}

.bootstrapped.modify_lot #coverInPeriodsList table.coldisplay td {
    padding: 8px;
    border-top: 1px solid #ddd;
}

/* Add Vehicles. Start putting individual rules down here, grouping them causes confliction issues in Git */
.bootstrapped.add_vehicles #assumptions {
    margin: 20px 0;
    padding: 10px 20px;
    border: 2px solid #ff80ab;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
}

.bootstrapped.add_vehicles #assumptions h4 {
    color: #003580;
    font-size: 14px;
}

.bootstrapped.add_vehicles #assumptions ul {
    list-style-type: none;
    margin: 0 0 10px;
}

.bootstrapped.add_vehicles #assumptions ul li {
    color: #003580;
    line-height: 2em;
    padding-left: 25px;
    background: transparent url(/images/icons/tick_icon.png) no-repeat 0 4px / 18px 18px;
}

.bootstrapped.add_vehicles #assumptions p {
    color: #003580;
}

.bootstrapped.add_driver #assumptions {
    margin: 20px 0;
    padding: 10px 20px;
    border: 2px solid #ff80ab;
    -webkit-border-radius: 7px;
    -moz-border-radius: 7px;
    border-radius: 7px;
}

.bootstrapped.add_driver #assumptions h4 {
    color: #003580;
    font-size: 14px;
}

.bootstrapped.add_driver #assumptions ul {
    list-style-type: none;
    margin: 0 0 10px;
}

.bootstrapped.add_driver #assumptions ul li {
    color: #003580;
    line-height: 2em;
    padding-left: 25px;
    background: transparent url(/images/icons/tick_icon.png) no-repeat 0 4px / 18px 18px;
}

.bootstrapped.add_vehicles .form-horizontal .vrm button {
    margin-right: 20px;
}

.add_vehicles .vehicles_row {
    margin: 0 auto 5px;
    padding: 15px 0;
    border: 1px solid #e7e7e7;
}

.add_vehicles .vehicles_row.row_odd {
    background-color: #fff;
}

.add_vehicles .vehicles_row.row_even {
    background-color: #f9f9f9;
}

.add_vehicles .vehicles_table_cell {
    display: table-cell;
    position: relative;
    vertical-align: bottom;
}

.add_vehicles .vehicles_table_cell.index_counter {
    min-width: 35px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 0 4px 8px 0;
    background: transparent url(/images/icons/index_counter_bg.gif) no-repeat 6px 26px / 24px 24px;
}

.bootstrapped.add_vehicles .form-horizontal label {
    font-size: 0.9em;
    font-weight: bold;
    margin-right: 12px;
    padding-top: 0;
    cursor: default;
    min-width: 150px; /* Ouch - this stops label text from wrapping */
}

.bootstrapped.add_vehicles .form-horizontal .mw230 {
    min-width: 230px;
}

.bootstrapped.add_vehicles .form-horizontal input {
    font-size: 1em;
    color: #0198ff;
    margin-right: 20px;
}

.bootstrapped.add_vehicles .form-horizontal select {
    margin-right: 35px;
}

.bootstrapped.add_vehicles .form-horizontal .w70 {
    width: 70px;
}

.bootstrapped.add_vehicles .form-horizontal .w175 {
    width: 175px;
}

.bootstrapped.add_vehicles .form-horizontal .m5 {
    margin-right: 5px;
}

.bootstrapped.add_vehicles .form-horizontal .form-actions {
    position: relative;
    margin: 15px 0 0;
    padding: 20px 0 0;
    border-top: none;
    background-color: #fff;
}

.bootstrapped.add_vehicles .remove button {
    width: 32px;
    height: 28px;
    border: none;
    padding: 0;
    cursor: pointer;
    background: transparent url(/images/icons/minus_icon.png) no-repeat 0 0 / 24px 24px;
}

.bootstrapped.add_vehicles #vehicles_basic {
    width: 1115px;
    margin: 30px auto 50px;
}

.bootstrapped.add_vehicles #vehicles_basic h4 {
    color: #003580;
    font-size: 14px;
}

/* Add a driver */
.bootstrapped.add_driver section {
    margin: 25px 0 0;
    padding: 20px;
    background: #f3f3f3;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
}

.bootstrapped.add_driver section.header_message {
    margin-top: 25px;
    padding: 20px;
    border-radius: 5px;
}

.bootstrapped.add_driver section.header_message.status {
    color: #008000;
    border: 1px solid #008000;
    background: #e2f3e4;
}

.bootstrapped.add_driver section.header_message.error {
    color: #b94a48;
    border: 1px solid #b94a48;
    background: #ffcbca;
}

.bootstrapped.add_driver section.header_message p {
    margin: 0;
}

.bootstrapped.add_driver section.panel {
    margin: 0 0 20px;
    padding: 15px 20px;
    border: 2px solid #007dc5;
    border-radius: 10px;
    background: none;
}

.bootstrapped.add_driver h2 {
    font-size: 18px;
    font-weight: normal;
    color: #003580;
    line-height: 20px;
}

.bootstrapped.add_driver h3 {
    font-size: 14px;
    color: #003580;
    line-height: 20px;
    margin: 0;
}

.bootstrapped.add_driver table th {
    text-align: left;
    padding: 8px 0;
}

.bootstrapped.add_driver table td {
    vertical-align: text-top;
    padding: 5px 40px 5px 0;
    color: #003580;
}

.bootstrapped.add_driver table.driver tr > td:first-child {
    color: #333;
}

.bootstrapped.add_driver table.upload_file .help-inline {
    color: #b94a48;
}

.bootstrapped.add_driver table.upload_file input[name="userfile"] {
    width: 220px;
}

.bootstrapped.add_driver .form-horizontal .control-label {
    padding-top: 0;
    cursor: default;
}

.bootstrapped.add_driver .form-horizontal .control-group.smarty_checkboxes label {
    width: 300px;
    float: left;
    margin-left: -287px;
    text-align: right;
}

.bootstrapped.add_driver .form-horizontal .control-group.smarty_checkboxes input[type="checkbox"] {
    margin-left: 20px;
}

.bootstrapped.add_driver .controls {
    line-height: 20px;
}

.bootstrapped.add_driver textarea {
    resize: vertical;
}

/* Submit a risk confirmation page */
.bootstrapped.submit_risk section {
    margin: 25px 0 0;
    padding: 20px;
    background: #f3f3f3;
    border: 1px solid #d9d9d9;
    border-radius: 5px;
}

.bootstrapped.submit_risk section form {
    margin-bottom: 0;
    border: none;
}

.bootstrapped.submit_risk section form label {
    display: inline;
    margin-right: 20px;
    color: #8a8a8a;
}

.bootstrapped.submit_risk section#header_message {
    margin-top: 25px;
    padding: 20px;
    color: #b94a48;
    border: 1px solid #b94a48;
    border-radius: 5px;
    background: #ffcbca;
}

.bootstrapped.submit_risk section#header_message p {
    margin: 0;
}

.bootstrapped.submit_risk h3 {
    font-size: 14px;
    color: #003580;
    line-height: 20px;
    margin: 0;
}

.bootstrapped.submit_risk table tr td {
    vertical-align: text-top;
    padding: 5px 40px 5px 0;
}

.bootstrapped.submit_risk table tr > td:last-child {
    color: #003580;
}

.bootstrapped.submit_risk table tr > td.blue_font {
    color: #003580;
}

.bootstrapped.submit_risk table.client {
    margin: 15px 75px 0 0;
}

.bootstrapped.submit_risk table.risk {
    margin: 15px 75px 0 0;
}

/* Register brokers */
.bootstrapped.register_broker section.panel {
    margin: 0 0 20px;
    padding: 15px 20px;
    border: 2px solid #007dc5;
    border-radius: 10px;
}

.bootstrapped.register_broker section.panel .controls {
    color: #003580;
}

.bootstrapped.register_broker section.panel .controls .altnames {
    font-weight: normal;
    color: green;
    text-decoration: none;
    outline: none;
}

.bootstrapped.register_broker section.panel .controls .altnames.selected {
    font-weight: bold;
    padding: 1px 30px 1px 0;
    background: transparent url(/images/icons/tick_icon.png) no-repeat right 0 / 16px 16px;
}

.bootstrapped.register_broker h2 {
    font-size: 18px;
    font-weight: normal;
    color: #003580;
    line-height: 20px;
}

.bootstrapped.register_broker .form-horizontal .control-label {
    cursor: default;
    padding-top: 0;
}

.bootstrapped.register_broker textarea {
    resize: vertical;
}

/* Edit broker account */
.bootstrapped.edit_broker .form-horizontal .control-group.smarty_checkboxes label {
    width: 300px;
    float: left;
    margin-left: -287px;
    text-align: right;
    color: #333;
}

.bootstrapped.edit_broker .form-horizontal .control-group.smarty_checkboxes input[type="checkbox"] {
    margin-left: 20px;
}

.bootstrapped.edit_broker .form-horizontal .control-group.smarty_checkboxes .info {
    margin-left: 20px;
    color: #003580;
}

/* CSS only tooltips (outside of a form) */
.bootstrapped .generic_info_panel span {
    float: left;
}

.bootstrapped .generic_info_panel .help_icon {
    display: inline;
    position: relative;
    padding: 8px 0px 8px 30px;
    background: url(/images/icons/help.png) no-repeat right 5px;
}

.bootstrapped .generic_info_panel .help_icon:hover div:first-child {
    visibility: visible;
    opacity: 1;
    transition: 0s;
}

.bootstrapped .generic_info_panel .panel_text {
    position: absolute;
    left: -105px;
    bottom: 25px;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.bootstrapped .generic_info_panel .panel_top {
    width: 250px;
    height: 20px;
    background: url(/images/icons/tooltip_top.png) no-repeat 0 0;
}

.bootstrapped .generic_info_panel .panel_mid {
    width: 208px;
    background: #3e454d;
    padding: 0 20px;
    color: #fff;
    border-left: 1px solid #323335;
    border-right: 1px solid #323335;
}

.bootstrapped .generic_info_panel .panel_bot {
    width: 250px;
    height: 47px;
    background: url(/images/icons/tooltip_bottom.png) no-repeat 0 0;
}

/* Horizontal form CSS only tooltips */
.bootstrapped .form-horizontal .info_panel {
    float: left;
}

.bootstrapped .form-horizontal .info_panel label {
    width: 270px;
}

.bootstrapped .form-horizontal .info_panel .help_icon {
    display: inline;
    position: relative;
    padding: 3px 0px 8px 30px;
    background: url(/images/icons/help.png) no-repeat right 5px;
}

.bootstrapped .form-horizontal .info_panel .help_icon:hover div:first-child {
    visibility: visible;
    opacity: 1;
    transition: 0s;
}

.bootstrapped .form-horizontal .info_panel .panel_text {
    position: absolute;
    left: -105px;
    bottom: 25px;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.bootstrapped .form-horizontal .info_panel .panel_top {
    width: 250px;
    height: 20px;
    background: url(/images/icons/tooltip_top.png) no-repeat 0 0;
}

.bootstrapped .form-horizontal .info_panel .panel_mid {
    width: 208px;
    background: #3e454d;
    padding: 0 20px;
    color: #fff;
    border-left: 1px solid #323335;
    border-right: 1px solid #323335;
}

.bootstrapped .form-horizontal .info_panel .panel_bot {
    width: 250px;
    height: 47px;
    background: url(/images/icons/tooltip_bottom.png) no-repeat 0 0;
}

/* Vertical form CSS only tooltips */
.bootstrapped .form-vertical {
    width: 220px;
    margin: 0 auto;
}

.bootstrapped .form-vertical .info_panel {
    margin-bottom: 5px;
}

.bootstrapped .form-vertical .info_panel label {
    display: inline;
}

.bootstrapped .form-vertical .info_panel .help_icon {
    display: inline;
    position: relative;
    padding: 3px 0px 3px 30px;
    background: url(/images/icons/help.png) no-repeat right 0;
}

.bootstrapped .form-vertical .info_panel .help_icon:hover div:first-child {
    visibility: visible;
    opacity: 1;
    transition: 0s;
}

.bootstrapped .form-vertical .info_panel .panel_text {
    position: absolute;
    left: -105px;
    bottom: 25px;
    visibility: hidden;
    opacity: 0;
    transition: 0.3s;
}

.bootstrapped .form-vertical .info_panel .panel_top {
    width: 250px;
    height: 20px;
    background: url(/images/icons/tooltip_top.png) no-repeat 0 0;
}

.bootstrapped .form-vertical .info_panel .panel_mid {
    width: 208px;
    background: #3e454d;
    padding: 0 20px;
    color: #fff;
    border-left: 1px solid #323335;
    border-right: 1px solid #323335;
}

.bootstrapped .form-vertical .info_panel .panel_bot {
    width: 250px;
    height: 47px;
    background: url(/images/icons/tooltip_bottom.png) no-repeat 0 0;
}
