/* Condition column */
span.condition
{
    font-family: 'Share Tech Mono', monospace;
    padding: 2px 5px 1px 5px;
    border: solid 1px #999;
    border-radius: 3px;
    font-size: 16px;
}
span.condition.blue
{
    border-color: #337ab7;
    color: #337ab7;
    background-color: #337ab7;
}
span.condition.red
{
    border-color: #d94d39;
    color: #d94d39;
    background-color: #d94d39;
}
span.condition.green
{
    border-color: #aeae6a;
    color: #aeae6a;
    background-color: #aeae6a;
}
span.condition.green.full,
span.condition.blue.full,
span.condition.red.full
{
    color: #ffffff;
}
span.condition.green.half,
span.condition.blue.half,
span.condition.red.half
{
    background: transparent;
}
span.condition.green.void,
span.condition.blue.void,
span.condition.red.void
{
    color: transparent;
    background-color: transparent;
}
span.condition.green.done,
span.condition.blue.done,
span.condition.red.done
{
    color: #999999;
    background-color: #f0f0f0;
    border-color: #aaaaaa;
}
@-o-keyframes blinkConditionBlue
{
    0%   { background-color: transparent; color: #337ab7; }
    40%  { background-color: transparent; color: #337ab7; }
    50%  { background-color: #337ab7;     color: #ffffff; }
    60%  { background-color: transparent; color: #337ab7; }
    100% { background-color: transparent; color: #337ab7; }
}
@keyframes blinkConditionBlue
{
    0%   { background-color: transparent; color: #337ab7; }
    40%  { background-color: transparent; color: #337ab7; }
    50%  { background-color: #337ab7;     color: #ffffff; }
    60%  { background-color: transparent; color: #337ab7; }
    100% { background-color: transparent; color: #337ab7; }
}
span.condition.blue.blink
{
    -o-animation: blinkConditionBlue 6s ease-in-out infinite;
    animation: blinkConditionBlue 6s ease-in-out infinite;
}
@-o-keyframes blinkConditionRed
{
    0%   { background-color: transparent; color: #d94d39; }
    40%  { background-color: transparent; color: #d94d39; }
    50%  { background-color: #d94d39;     color: #ffffff; }
    60%  { background-color: transparent; color: #d94d39; }
    100% { background-color: transparent; color: #d94d39; }
}
@keyframes blinkConditionRed
{
    0%   { background-color: transparent; color: #d94d39; }
    40%  { background-color: transparent; color: #d94d39; }
    50%  { background-color: #d94d39;     color: #ffffff; }
    60%  { background-color: transparent; color: #d94d39; }
    100% { background-color: transparent; color: #d94d39; }
}
span.condition.red.blink
{
    -o-animation: blinkConditionRed 6s ease-in-out infinite;
    animation: blinkConditionRed 6s ease-in-out infinite;
}
@-o-keyframes blinkConditionGreen
{
    0%   { background-color: transparent; color: #aeae6a; }
    40%  { background-color: transparent; color: #aeae6a; }
    50%  { background-color: #aeae6a;     color: #ffffff; }
    60%  { background-color: transparent; color: #aeae6a; }
    100% { background-color: transparent; color: #aeae6a; }
}
@keyframes blinkConditionGreen
{
    0%   { background-color: transparent; color: #aeae6a; }
    40%  { background-color: transparent; color: #aeae6a; }
    50%  { background-color: #aeae6a;     color: #ffffff; }
    60%  { background-color: transparent; color: #aeae6a; }
    100% { background-color: transparent; color: #aeae6a; }
}
span.condition.green.blink
{
    -o-animation: blinkConditionGreen 6s ease-in-out infinite;
    animation: blinkConditionGreen 6s ease-in-out infinite;
}
@-o-keyframes blinkConditionSubtleBlue
{
    0%   { background-color: transparent; }
    40%  { background-color: transparent; }
    50%  { background-color: #ddeaf0;     }
    60%  { background-color: transparent; }
    100% { background-color: transparent; }
}
@keyframes blinkConditionSubtleBlue
{
    0%   { background-color: transparent; }
    40%  { background-color: transparent; }
    50%  { background-color: #ddeaf0;     }
    60%  { background-color: transparent; }
    100% { background-color: transparent; }
}
.condition.blink-subtle-blue
{
    -o-animation: blinkConditionSubtleBlue 5s ease-in-out infinite;
    animation: blinkConditionSubtleBlue 5s ease-in-out infinite;
}
@-o-keyframes blinkConditionSubtleRed
{
    0%   { background-color: transparent; }
    40%  { background-color: transparent; }
    50%  { background-color: #f7d7d1;     }
    60%  { background-color: transparent; }
    100% { background-color: transparent; }
}
@keyframes blinkConditionSubtleRed
{
    0%   { background-color: transparent; }
    40%  { background-color: transparent; }
    50%  { background-color: #f7d7d1;     }
    60%  { background-color: transparent; }
    100% { background-color: transparent; }
}
.condition.blink-subtle-red
{
    -o-animation: blinkConditionSubtleRed 5s ease-in-out infinite;
    animation: blinkConditionSubtleRed 5s ease-in-out infinite;
}
@-o-keyframes blinkConditionSubtleGreen
{
    0%   { background-color: transparent; }
    40%  { background-color: transparent; }
    50%  { background-color: #e3edc4;     }
    60%  { background-color: transparent; }
    100% { background-color: transparent; }
}
@keyframes blinkConditionSubtleGreen
{
    0%   { background-color: transparent; }
    40%  { background-color: transparent; }
    50%  { background-color: #e3edc4;     }
    60%  { background-color: transparent; }
    100% { background-color: transparent; }
}
.condition.blink-subtle-green
{
    -o-animation: blinkConditionSubtleGreen 5s ease-in-out infinite;
    animation: blinkConditionSubtleGreen 5s ease-in-out infinite;
}
.conditions-encloser
{
    cursor: pointer;
}
.conditions-encloser .condition-container { display: none; }
.conditions-encloser.view-triplet .condition-container.one { display: block; }
.conditions-encloser.view-triplet .condition-container.two { display: none; }
.conditions-encloser.view-latest  .condition-container.one { display: none; }
.conditions-encloser.view-latest  .condition-container.two { display: block; }

/* Enhanced date picker */

.datepicker-days .day-in-range {
    background-color: #e7eff6;
}
.datepicker-days .day-start-in-range,
.datepicker-days .day-end-in-range {
    background-color: #8bb6e4;
    color: #ffffff;
}
.datepicker-days .day-start-in-range.today:before,
.datepicker-days .day-end-in-range.today:before {
    border-bottom-color: #fff;
}

/* Enhanced dual list */

.dual-list-container .dual-title-container
{
    display: table;
    height: 30px;
}
.dual-list-container .dual-title-container .dual-title
{
    display: table-cell;
    vertical-align: bottom;
}

.dual-list-container .list-left li,
.dual-list-container .list-right li {
    cursor: pointer;
}

.dual-list-container .dual-list .list-group-item {
    border-radius: 0px;
    border-left: none;
    border-right: none;
}
.dual-list-container .dual-list .list-group-item:first-child {
    border-top: none;
}

.dual-list-container .container-with-fixed-height-300 {
    height: 300px;
    overflow-y: scroll;
    border: solid 1px #ddd;
    border-radius: 3px;
}

/* Enhanced checkboxes */

.checkbox label:after, 
.radio label:after {
    content: '';
    display: table;
    clear: both;
}

.checkbox .cr,
.radio .cr {
    position: relative;
    display: inline-block;
    border: 1px solid #a9a9a9;
    border-radius: .25em;
    width: 1.3em;
    height: 1.3em;
    float: left;
    margin-right: .5em;
}

.radio .cr {
    border-radius: 50%;
}

.checkbox .cr .cr-icon,
.radio .cr .cr-icon {
    position: absolute;
    font-size: .8em;
    line-height: 0;
    top: 20%;
    left: 20%;
}

.radio .cr .cr-icon {
    margin-left: 0.04em;
}

.checkbox label input[type="checkbox"],
.radio label input[type="radio"] {
    display: none;
}

.checkbox label input[type="checkbox"] + .cr > .cr-icon,
.radio label input[type="radio"] + .cr > .cr-icon {
    transform: scale(3) rotateZ(-20deg);
    opacity: 0;
    transition: all .3s ease-in;
}

.checkbox label input[type="checkbox"]:checked + .cr > .cr-icon,
.radio label input[type="radio"]:checked + .cr > .cr-icon {
    transform: scale(1) rotateZ(0deg);
    opacity: 1;
}

.checkbox label input[type="checkbox"]:disabled + .cr,
.radio label input[type="radio"]:disabled + .cr {
    opacity: .5;
}

/* General styles */
.u-very-concealed
{
    display: none !important;
}
.u-concealed
{
    display: none;
}
.u-invisible
{
    visibility: hidden;
}
.u-inline-block
{
    display: inline-block;
}
.u-full-width
{
    width: 100%;
}
.u-ellipsable
{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.u-clickable
{
    cursor: pointer;
}
.u-forbidden
{
    cursor: not-allowed !important;
}
.u-no-pr
{
    padding-right: 0;
}
.u-no-pl
{
    padding-left: 0;
}
.u-3-pr
{
    padding-right: 3px;
}
.u-3-pl
{
    padding-left: 3px;
}
.u-3-pt
{
    padding-top: 3px;
}
.u-3-pb
{
    padding-bottom: 3px;
}
.u-6-pr
{
    padding-right: 6px;
}
.u-6-pl
{
    padding-left: 6px;
}
.u-no-mr
{
    margin-right: 0;
}
.u-no-ml
{
    margin-left: 0;
}
.u-3-mr
{
    margin-right: 3px;
}
.u-3-ml
{
    margin-left: 3px;
}
.u-5-mb
{
    margin-bottom: 5px;
}
.u-10-mb
{
    margin-bottom: 10px;
}
.u-fa-fix-width
{
    min-width: 15px;
}
.u-rounded-left
{
    border-top-left-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
}
.u-rounded-right
{
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}
.u-vertical-center
{
    display: inline-block;
    vertical-align: middle;
    float: none;
}
.u-blue-fg-colored
{
    color: #337ab7 !important;
}

.short-date
{ 
    display: none;
}
.dropdown-menu > li > a.disabled,
a.disabled
{
    color: #7A7A7A;
    cursor: not-allowed;
}

/* New appointment */
.new-appointment
{
    text-align: center;
}
.new-appointment-prompt
{
    margin-top: 1em;
    margin-bottom: 1em;
}
.new-appointment-icon
{
    margin-top: 2em;
    margin-bottom: 2em;
}
.new-appointment-title
{
    margin-bottom: 1em;
}
.like-button
{
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.like-button:hover
{
    background-color: #e6e6e6;
    border-color: #adadad
}

/* Bootstrap navbar customization */
.navbar-brand
{
    padding: 0 15px;
}
.navbar-brand-logo
{
    height: 40px;
    margin: 5px;
}

/* Bootstrap alert customization */
.tidal-alert
{
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 100;
    margin-bottom: 0;
}
.tidal-alert.alert-warning,
.tidal-alert.alert-danger
{
    background-color: #f00;
    color: #fff;
}
.tidal-alert.alert-warning .close,
.tidal-alert.alert-danger .close
{
    opacity: 0.7;
}

/* Bootstrap table customization */
.added-to-toolbar
{
    margin-bottom: 10px;
    margin-top: 10px;
}
.added-to-toolbar.right-spaced
{
    margin-right: 5px;
}
.tidal-table th:first-of-type,
.tidal-table td:first-of-type
{
    display:none;
}
.tidal-table td
{
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
}
.tidal-table > tbody > tr > td
{
    vertical-align: middle;
}
.fixed-table-container .tidal-table tbody .selected td
{
    background-color: #b4e0ff !important;
    border-color: #fff;
}
.tidal-table .tooltip > .tooltip-inner
{
    background-color: #266092;
}
.tidal-table .tooltip.top > .tooltip-arrow
{
    border-top-color: #266092;
}
.tidal-toolbar .glyphicon
{
    margin-right: 10px;
}
.pagination-detail 
{
    color: #999;
}
.row-note
{
    font-style: italic;
    color: #999;
}
.attribute-distance-km
{
    width: 55%;
    max-width: 60px;
    text-align: left;
    border-left: solid 1px #ddd;
    margin-left: 8px;
    padding-left: 6px;
}
.attribute-distance-km .unit-of-measure
{
    font-size: 80%;
}
.attribute-locked
{
    width: 25%;
    max-width: 20px;
    margin-left: 2px; 
    text-align: left;
}
.col-button-invoice
{
    cursor: pointer;
    padding: 10px;
}
.col-button-invoice:hover
{
    color: #266092;
    font-weight: 600;
    text-decoration: underline;
}

/* Bootstrap select customization */
.bootstrap-select a
{ 
    outline: none;
}

/* Bootstrap modal customization */
.modal-header-coast-to-coast
{
    position: relative;
    padding-left: 0;
    padding-right: 0;
    border-bottom: none;
}
.modal-header-coast-to-coast .inner-padded
{
    padding-left: 15px;
    padding-right: 15px;
}
.modal-header-coast-to-coast .bottom-line
{
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
    position: absolute;
    bottom: 15px;
    left: 0;
}
.modal-header-coast-to-coast .nav-tabs.nav-justified > li > a
{
    border-bottom: none !important;
}
.modal-title,
.modal-header-coast-to-coast .modal-title
{
    text-align: center;
}
.modal-body.tall
{
    min-height: 425px;
}
.modal-body.mid-tall
{
    min-height: 400px;
}
.modal-body.bottom-spaced
{
    padding-bottom: 2.5em;
}
.modal-footer-explanation
{
    display: inline-block;
    margin-right: 10px;
    color: #999;
    font-style: italic;
}

/* Form customization */
.form-1st-input-ontop
{
    border-top-right-radius: 4px !important;
}
.form-2nd-input-below
{
    margin-top: -1px;
    border-top-right-radius: 0 !important;
}
.form-spacer
{
    width: 100%;
    margin-bottom: .5em;
}
.form-inline-left-big
{
    width: 80% !important;
}
.form-inline-right-small
{
    width: 19.25% !important;
}
.form-inline-left-mid
{
    width: 38.7% !important;
}
.form-inline-right-mid
{
    width: 60% !important;
}
.form-inline-left-mid.swapped
{
    width: 60% !important;
}
.form-inline-right-mid.swapped
{
    width: 38.7% !important;
}
.form-hint
{
    font-style: italic;
    font-weight: 400;
    color: #999;
}
.input-group-addon.u-clickable:hover
{ 
    background-color: #ddd;
}
.form-abso-elements-anchor
{
    position: relative;
}
.form-abso-element-under-textfield
{
    position: absolute;
    top: 60px;
}
.form-autocomplete-scrolldown
{
    width: 90%;
    max-height: 168px;
    overflow-y: scroll;
    overflow-x: hidden;
}
.form-autocomplete-scrolldown li
{
    cursor: pointer;
    padding-left: 10px;
    padding-right: 10px;
}
.form-autocomplete-scrolldown li:hover
{
    background-color: #c4f0ff;
}

@-o-keyframes blinkFadeRed
{
    0%   { background-color: #ffffff; }
    50%  { background-color: #fdd8d8; }
    100% { background-color: #ffffff; }
}
@keyframes blinkFadeRed
{
    0%   { background-color: #ffffff; }
    50%  { background-color: #fdd8d8; }
    100% { background-color: #ffffff; }
}
.invalid, .form-control.invalid, .invalid .form-control
{
    background-image:  none !important; 
    -o-animation: blinkFadeRed 1s ease-in-out 3;
    animation: blinkFadeRed 1s ease-in-out 3;
    border-color: red;
}
p.invalid-explanation
{
    margin-top: 4px;
    margin-bottom: 4px;
    padding-left: 8px;
    color: #f00808;
    font-size: 80%;
    visibility: hidden;
}

@-o-keyframes blinkFadeCyan
{
    0%   { background-color: #ffffff; }
    50%  { background-color: #c4f0ff; }
    100% { background-color: #ffffff; }
  }
@keyframes blinkFadeCyan
{
    0%   { background-color: #ffffff; }
    50%  { background-color: #c4f0ff; }
    100% { background-color: #ffffff; }
}
.highlight, .form-control.highlight
{
    background-image:  none !important; 
    -o-animation: blinkFadeCyan 1s ease-in-out 3;
    animation: blinkFadeCyan 1s ease-in-out 3;
    border-color: #a6b5ff;
}

.input-group-addon.static-highlight,
.input-group-addon.u-clickable.static-highlight
{
    background-color: #777;
}
.input-group-addon.static-highlight svg
{
    color: #eee;
}

#modal-alert-popup .modal-footer .btn,
.btn.btn-min-width
{
    min-width: 80px;
}

/* Tablet and smartphones */
@media (max-width: 767px)
{
    .modal-header-coast-to-coast .nav-tabs.nav-justified > li.active > a
    {
        border-bottom: 1px solid #e5e5e5 !important;
    }
    .new-facture-body .col-xs-4
    {
        padding-left: 2px;
        padding-right: 2px;
    }
    .fixed-table-toolbar .search
    {
        display: none;
    }
    .modal-header-coast-to-coast .nav-tabs.nav-justified > li
    {
        width: 49%;
        display: inline-block;
    }
    .modal-header-coast-to-coast .bottom-line
    {
        bottom: 20px;
    }
    .form-inline .form-control, .form-inline input
    {
        display: inline-block;
        vertical-align: middle;
    }
    .form-inline .input-group
    {
        display: inline-table;
        vertical-align: top;
    }
    .form-inline-left-big
    {
        width: 69% !important;
    }
    .form-inline-right-small
    {
        width: 28.8% !important;
    }
    .form-inline-left-mid
    {
        width: 35% !important;
    }
    .form-inline-right-mid
    {
        width: 63% !important;
    }
    .form-inline-left-mid.swapped
    {
        width: 63% !important;
    }
    .form-inline-right-mid.swapped
    {
        width: 35% !important;
    }
    .attribute-distance-km .unit-of-measure
    {
        display: none;
    }
    .short-date { display: inline; }
    .long-date  { display: none; }
}

/* Small sizes */
@media (max-width: 999px) {

    .tidal-toolbar .btn-group .glyphicon-detail { display: none; }
    .tidal-toolbar .btn-group .glyphicon { margin-right: 0; }
}
@media (max-width: 649px) {

    .small-hided { display: none !important; }
}

/* Fontawesome customization */
.fs-dark
{
    color:black;
}
.fs-light
{
    color:lightgray;
}
.fs-dark.blue
{
    color:#266092;
}
.fs-light.blue
{
    color:#bfcdda;
}

