.clickable { cursor: pointer; }

/* 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;
}

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

/* 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;
}

/* 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;
}

.small-shown {
    display:  none;
}

/* Tablet and smartphones */
@media (max-width: 767px)
{
    .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;
    }
}

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

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