.green {
    color: #339836;
}

.yellow {
    color: #F8C93A;
}

.orange {
    color: orange;
}

.red {
    color: #D22533;
}

.red_border {
    border: 1px solid #D22533;
}

.bg_grey {
    background-color: #F0F0F0;
}

.left {
    text-align: left;
}

.right {
    text-align: right;
}

.center {
    text-align: center;
}

.justify {
    text-align: justify;
}

.italic {
    font-style: italic;
}

.bold {
    font-weight: bold;
}

.vertical_center {
    vertical-align: middle;
}

.empty_data {
    font-style: italic;
    color: #aaa;
}

.no_wrap {
    white-space: nowrap;
}

.hidden {
    display: none;
}

.flexbox_wrapper {
    display: flex;
    justify-content: space-between;
}

.flexbox_wrapper > div {
    margin-right: 5px;
}
.flexbox_wrapper > div:last-child {
    margin: 0;
}

/* Need to override the different site.css */
a.icon {
    text-decoration: none !important;
}

/*** ACTION BUTTONS ***/

.button_box.action_button {
    padding: 3px;
    border: 2px solid #74bd1a;
    background-color: #fff;
    color: #74bd1a;
}

.button_box.no_action_button {
    padding: 3px;
    border: 2px solid #bbb;
    background-color: #fff;
    color: #bbb;
}

ul.buttons {
    list-style: none;
    display: block;
    margin: 0;
    padding: 0;
}

ul.buttons > li {
    margin-right: 3px;
    display: inline-block;
}

ul.buttons > li:last-child {
    margin-right: 0;
}

/*** END ACTION BUTTONS ***/

/* Breadcrumbs source:
 * http://line25.com/tutorials/how-to-create-flat-style-breadcrumb-links-with-css
 */
#crumbs {
    text-align: center;
}

#crumbs ul {
    list-style: none;
    display: inline-table;
}

#crumbs ul li {
    display: inline;
}

#crumbs ul li span {
    display: block;
    float: left;
    height: 15px;
    background: #aaa;
    text-align: center;
    padding: 5px 10px 25px 25px;
    position: relative;
    margin: 0 5px 0 0;

    font-size: 14px;
    text-decoration: none;
    color: #fff;
}

#crumbs ul li span:before {
    content: "";
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #fff;
    position: absolute;
    left: 0;
    top: 0;
}

#crumbs ul li span:after {
    content: "";
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 15px solid #aaa;
    position: absolute;
    right: -14px;
    top: 0;
    z-index: 1;
}

.crumb-green {
    background-color: green !important;
}

.crumb-green:after {
    border-left: 15px solid green !important;
}

/*
 * Prevents third party css (kingsway.css, etc)
 * from blowing away jquery UI dialog button colors (making them white on white)
 */
.ui-dialog .ui-dialog-buttonpane button{
    color: #454545 !important;
}

/***** FORM *****/

.csc_form table {
    width: 100%;
}

.csc_form td {
    border: none;
}

.csc_form th {
    /*font-size: 80%;*/
    /*text-transform: uppercase;*/
    font-weight: 700;
    padding-left: 5px;
    vertical-align: middle;
}

.csc_form .row {
    padding: 10px;
    background-color: #eee;
    border-bottom: 2px solid #fff;
}

.csc_form .btn {
    text-decoration: none;
    color: initial;
    padding: 8px 10px;
    border-radius: 3px;
    font-size: 110%;
}

.csc_form .btn-red {
    background-color: #E01B22;
    color: #fff;
}

.csc_form .btn-green {
    background-color: #74bd1a;
    color: #fff;
}

.csc_form .btn-grey {
    background-color: #eee;
    color: #fff;
}

.csc_form input[type="radio"] {
    display: none;
}

.csc_form input[type="radio"] + label {
    font-weight: normal;
    margin-bottom: 0;
    margin-right: 5px;
    display: inline;
}

.csc_form input[type="radio"] + label:before {
    content: "";
    display: inline-block;
    border: 2px solid #bbb;
    border-radius: 100%;
    height: 15px;
    width: 15px;
    cursor: pointer;
    margin-right: 5px;
}

.csc_form input[type="radio"]:checked + label:before {
    border: 5px solid #FFFFFF;
}

.csc_form .search_form {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
}

.csc_form .csc_date_picker {
    font-family: 'fontello', 'source_sans_proregular', sans-serif;
}

/***** END FORM *****/

/***** MULTISELECT *****/

.csc_multiselect {
    padding-left: 0;
    list-style-type: none;
    width: 100%;
    border: 1px solid #cccccc;
    background-color: #ffffff;
}

.csc_multiselect > div {
    background: #f7f7f7;
    border: 1px solid #ebebeb;
    border-radius: 5px;
    float: left;
    padding: 0 24px 0 0;
    color: #848484;
    margin: 5px 0 0 5px;
    font-size: 14px;
    letter-spacing: 1px;
    line-height: 20px;
    position: relative;
    cursor: pointer;
    display: block;
}

.csc_multiselect > div > span {
    line-height: 24px;
    display: inline-block;
    width: 100%;
    padding: 0 10px;
}

.csc_multiselect > div > input[type="checkbox"] {
    position: absolute;
    margin-left: -10000em;
}

.csc_multiselect > input[type="text"] {
    display: inline-block;
    border: rgba(0, 0, 0, 0);
    outline: none;
    width:100%;
}

.csc_multiselect div:hover {
    color: #ffffff;
    background-color: #E01B22;
    border-color: #E01B22;
    cursor: pointer;
}

.csc_multiselect div button {
    margin-left: 10px;
    border-radius: 0;
    color: #848484 !important;
    background: #f7f7f7;
    padding: 4px 4px;
    position: absolute;
    top: 0;
    right: 0;
}

.csc_multiselect div button::before {
    font-size: 1.2em;
}

.csc_multiselect div:hover button {
    color: #ffffff !important;
    background: #E01B22;
}

/***** END MULTISELECT *****/

/***** INPUT TEXT PLACEHOLDER *****/
::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    font-style: italic;
    opacity: 0.5; /* Firefox */
}

:-ms-input-placeholder { /* Internet Explorer 10-11 */
    font-style: italic;
    opacity: 0.5;
}

::-ms-input-placeholder { /* Microsoft Edge */
    font-style: italic;
    opacity: 0.5;
}

/***** END INPUT TEXT PLACEHOLDER *****/

.ui-autocomplete-loading {
    background: red url("../img/ajax_loader_circle.gif") right center no-repeat;
}

.ui-autocomplete {
    max-width: 1024px;
    margin-bottom: 60px;
    box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.25);
}

.ui-menu .ui-menu-item {
    line-height: 1.8;
}

.ui-menu-item-wrapper {
    display: block;
}

.ui-menu .ui-menu-item:hover .ui-menu-item-wrapper {
    color: #ffffff;
    background: #cccccc;
    border-color: #cccccc;
}

.tool_tip_show {
    position: relative;
    cursor: pointer;
    float: right;
    font-size: 16px;
}

.tool_tip {
    display: none;
    position: absolute;
    top: -10px;
    left: 40px;
    width: 200px;
    min-height: 50px;
    padding: 10px;
    z-index: 99;
    background-color: #fdfdfd;
    font-size: 12px;
}

.tool_tip_show:hover .tool_tip {
    display: block;
    border: 1px solid #444444;
    z-index: 99999;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}


/***** TABS *****/
.csc_tabset label:before,
.csc_tabset ul.buttons > li a:before {
    font-weight: normal;
    margin-right: 5px;
}

.csc_tabset > label:hover {
    color: #000000;;
}

.csc_tabset > input[type="radio"] {
    position: absolute;
    left: -200vw;
}

.csc_tabset > label {
    position: relative;
    display: inline-block;
    margin: 0 0 -1px;
    padding: 10px;
    font-size: 12px;
    text-align: center;
    color: #4A4A4A;
    border: 1px solid transparent;
    cursor: pointer;
}

.csc_tabset > input:checked + label {
    color: #000000;
    border: 1px solid #ddd;
    border-top: 2px solid #4A4A4A;
    border-bottom: 1px solid #fff;
}

.csc_tabset .tab_panels {
    clear: both;
}

.csc_tabset .tab_panel {
    padding: 20px 0 0;
    border-top: 1px solid #ddd;
}

/***** END TABS *****/

th.sortable {
    cursor: pointer;
}

th.sortable:after {
    font-family: 'fontello';
    content: '\f0dc';
    margin-left: 10px;
}

th.sortable.sort_desc:after {
    font-family: 'fontello';
    content: '\f0dd';
    margin-left: 10px;
}

th.sortable.sort_asc:after {
    font-family: 'fontello';
    content: '\f0de';
    margin-left: 10px;
}

/****** DataTable sorting icons ******/
table.dataTable thead th {
    position: relative;
    background-image: none !important;
}

table.dataTable thead th.sorting:after,
table.dataTable thead th.sorting_asc:after,
table.dataTable thead th.sorting_desc:after {
    position: absolute !important;
    top: 12px !important;
    right: 8px !important;
    display: block !important;
    font-family: 'fontello' !important;
}

table.dataTable thead th.sorting:after {
    content: "\f0dc" !important;
    color: #ddd !important;
    font-size: 0.8em !important;
    padding-top: 0.12em !important;
}

table.dataTable thead th.sorting_asc:after {
    content: "\f0de" !important;
}

table.dataTable thead th.sorting_desc:after {
    content: "\f0dd" !important;
}

/****** End DataTable sorting icons ******/