/**
 * CONTENTS
 *
 * BASIC
 * Field...............global field structure.
 *
 * TOOLS
 * Mixins...............Useful mixins.
 *
 * GENERIC
 * Normalize.css........A level playing field.
 * Box-sizing...........Better default `box-sizing`.
 *
 * BASE
 * Headings.............H1–H6 styles.
 *
 * OBJECTS
 * Wrappers.............Wrapping and constraining elements.
 *
 * COMPONENTS
 * Page-head............The main page header.
 * Page-foot............The main page footer.
 * Buttons..............Button elements.
 *
 * TRUMPS
 * Text.................Text helpers.
 */
 

 
/*------------------------------------*\
    #BASIC
\*------------------------------------*/

.field {
    margin: 5px 0;
    padding: 15px 0 5px 10px;
    /*border-bottom: 1px solid #E8E3E3;*/
    position: relative;
}

.field:after {
    content: "";
    clear: both;
    display: block;
}

.field__label label {
    font-weight: bold;
    font-size: .85em;
}

.field__data {
    /*padding: .5em 0;*/
    position: relative;
}

.field__data .row {
    margin-top: 1em;
}

.field__data ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.field--check .field__data ul,
.field--radio .field__data ul {
    padding-left: 1.5em;
    margin-bottom: .5em;
}

.field--check .field__data ul li,
.field--radio .field__data ul li {
    position: relative;
}

.field__data ul li > input[type='radio'],
.field__data ul li > input[type='checkbox'] {
    position: absolute;
    left: -1.25em;
    top: .3em;
}

.field__data input[type='text'],
.field__data select,
.field__data textarea,
.field__data input[type='password'],
.field__data input[type='number'],
.field__data input[type='email'],
.field__data input[type='tel'],
.field__data input[type='url'],
.field__data input[type='search'] {
    width: 100%;
    margin-bottom: 10px;
    padding: .75em;
    box-sizing: border-box;
    font-size: .9em;
    border-radius: 2px;
    border: 2px solid #CCC;
    background-color: #EEE;
    margin-top: 0;
}

.field__data input[type='number'] {
    width: auto;
}

.field__data input[type=text][name=Qty],
.field__data button.qty {
    width:48%;
    display: inline-block;
    text-align: center;
    padding: .75em;
}

.field__data > .search-container {
    position: relative;
}

.field__info [class*='msg--']  {
    font-size: .8em;
}

.field--search .search-container > button {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: auto !important;
    background-color: #000;
    border: 0;
    color: #FFF;
    padding: 0 .5em;
    font-size: .9em;
    margin-bottom: 10px;
    border-radius: 0 5px 5px 0;
    border: 2px solid #CCC;
    border-left: 0;
}

.field__data input[type='search'] {
    
}

.field__data input[type='radio'],
.field__data input[type='checkbox'],
.field__data input[type='submit'] {
    
}


.date-dropdowns select {
    display: inline-block;
    width: auto;
    margin-right: .5em;
}

/* jquery choosen */

.dataTables_wrapper select {
    display: inline-block;
    width: auto;
    margin: 0;
}

.chosen-container {
    border-radius: 3px;
    border: 2px solid #CCCCCC;
}

.chosen-container-single .chosen-single {
    background: #EEE;
    border: 0;
}

.initialhidden, .initialhidden2, .initialhidden3 {
    display: none;
}

/* switch checkbox */

input.switch:empty {
    margin-left: -999px;
}
input.switch:empty ~ label {
    position: relative;
    float: left;
    line-height: 2;
    /*text-indent: 4em;*/
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
input.switch:empty ~ label:before, input.switch:empty ~ label:after {
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    content:'';
    width: 4.95em;
    background-color: #d9534f;
    -webkit-transition: all 100ms ease-in;
    transition: all 100ms ease-in;
}
input.switch:empty ~ label:after {
    width: 2.5em;
    top: 1px;
    bottom: 1px;
    margin-left: 1px;
    background-color: #fff;
}
input.switch:checked ~ label:before {
    background-color: #5cb85c;
}
input.switch:checked ~ label:after {
    margin-left: 2.4em;
}

input.switch:empty ~ label:after {
    content: "No";
    color: #d9534f;
}

input.switch:checked ~ label:after {
    content: "Yes";
    color: #5cb85c;
}

input.switch:empty ~ label:after,
input.switch:checked ~ label:after {
    text-align: center; 
    text-transform: uppercase;
}

.js-pkg label {
    display: block;
}


/* --- */

legend {
    color: #000;
    background-color: #DDD;
    display: block;
    width: 100%;
    padding: .5em;
    border-left: 3px solid #AAA;
}

@media only screen and (min-width:550px) and (max-width: 849px) {
    
    .field__label {
        width: 28%;
    }
    .field__data {
        width: 70%;
        margin-right: 0;
    }    

}

/*
 * Add to order button
 */
 
.button.item-added {
    background-color: green;
}

.button.item-added:active {
    background-color: red;
}

.ato {
    font-size: 1.25em;
    padding: .5em;
}
 
.button.ato span:before {
    font-family: sfs;
    content: "\e810";
    padding-right: .5em;
}




/*
 * field required 
 */
 
.field--required .field__label label:after {
    font-family: sfs;
    content: "\e86a";
    font-size: .5em;
    line-height: 2em;
    padding-left: .5em;
    color: red;
    vertical-align: middle;
}

/* datepicker */

.ui-datepicker {
    margin-top: .5em;
    background-color: #ddd;
    font-size: .95em;
    width: 300px;
    padding: .5em;
}

/* date field */

.cal {
    position: absolute;
    right: 1em;
    top: 10px;
    color: #BBB;
}

span.cal:after {
    font-family: sfs;
    content: "\e82a";
}
/*------------------------------------*\
    #ALERTS
\*------------------------------------*/

.alert {
    font-size: .8em;
    padding: .5em;
    margin: .25em 0;
    border-radius: 3px;
    display: none;
}

.alert:before {
    font-family: sfs;
    display: inline-block;
    width: 1.5em;
    text-align: center;
}

.alert--success { background-color: #5cb85c; }
.alert--info { background-color: #5bc0de; }
.alert--warning { background-color: #f0ad4e; }
.alert--danger { background-color: #d9534f; }

.alert--success:before { content: '\e809'; }
.alert--info:before { content: '\e855'; }
.alert--warning:before { content: '\e856'; }
.alert--danger:before { content: '\e80c'; }

/*------------------------------------*\
    #HELPERS
\*------------------------------------*/

/* floats */

.fl-left {
    float: left;
}

.fl-right {
    float: right;
}


/* hide disabled select options  */
select option:disabled {
    display: none;
}

/*------------------------------------*\
    #SECTION-TITLE
\*------------------------------------*/


/*------------------------------------*\
    #BUTTONS
\*------------------------------------*/

.field--buttons {
    border: 0;
}

.tool--help {
    font-style: normal;
    font-size: 1.25em;
    color: #5BC0DE;
    cursor: pointer;
}

.tool--help:before {
    font-family: sfs;
    content:"\e858";
}

.tool--info {
    font-style: normal;
    font-size: 1.25em;
    color: #5cb85c;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0);
}

.tool--info:before {
    font-family: sfs;
    content:"\e857";
}

/*------------------------------------*\
    #NAVIGATION
\*------------------------------------*/

.progress-nav ol {
    counter-reset: step-counter;
    font-size: .8em;
}

.progress-nav li {
    counter-increment: step-counter;
}

.progress-nav li span:before {
    content: counter(step-counter);
    color: #FFF;
    background-color: #B1B1B1;
    width: 2em;
    height: 2em;
    line-height: 2em;
    margin-right: .5em;
    border-radius: 100%;
    display: block;
    text-align: center;
    margin: auto;
    margin-bottom: .5em;
}

.progress-nav li.complete span:before {
    content:"\e809";
    font-family: sfs;
    background-color: #5CB85C;
}

.progress-nav li.active span:before {
    background-color: #5bc0de;
}

.progress-nav li span {
    border-right:1px solid #FFF;
    padding: .5em 0;
}

.progress-nav li:first-child span {
    border-left:1px solid #FFF;
}

@media only screen and (max-width:549px) {
    .progress-nav li span {
        font-size:0;
        border: 0 !important;
    }
    .progress-nav li span:before {
        font-size: 12px;
        margin-bottom: 0;
    }
    .progress-nav ol {
        margin: .5em 0;
    }
}

/*------------------------------------*\
    #OVERLAYS
\*------------------------------------*/

.tool-box {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 999;
    width: 23.5%;
}
@media only screen and (max-width:849px) {
    .tool-box { 
        bottom: 0;
        width: 100%;
        right: inherit;
        top: inherit;
        position: fixed;
        left: 0;
        margin-bottom: 0;
        border-radius: 0;
        z-index: 10000000000;
    }
}

.tool-box__close {
    position: absolute;
    top: .5em;
    right: .5em;
    font-weight: bold;
    color: #585555;
    display: block;
    width: auto;
    cursor: pointer;
}


.address-list > div {
    border-bottom: 3px solid #E8E8E8;
    background-color: #FFF;
    padding: .5em;
    font-size: .8em;
}

.address-list {
    height: 200px;
    overflow-y: scroll;
    overflow-x: hidden;
}

/*------------------------------------*\
    #DATE PICKER
\*------------------------------------*/
.ui-datepicker .ui-datepicker-prev:before,
.ui-datepicker .ui-datepicker-next:after {
    font-size: 20px;
    background-color: #FFF;
    width: 20px;
    display: block;
    text-align: center;
    border-radius: 100%;
    height: 20px;
    line-height: 20px;
    margin-top: .25em;
    cursor: pointer;
}

.ui-datepicker-prev:before {
    content: "<";
}

.ui-datepicker-next:after {
    content: ">";    
}

.ui-datepicker.well {
    min-width: 250px;
    font-size: .9em;
    width: 270px;
}



/*------------------------------------*\
    #CHOSEN
\*------------------------------------*/
.chosen-container-active .chosen-single {
    border: 1px solid #aaa;
    box-shadow: none;
}

.chosen-container-single .chosen-single {
    padding: .5em;
    height: auto;
    border-radius: 3px;
    border: 0;
}

/*------------------------------------*\
    #HELPER
\*------------------------------------*/

.small {
    font-size: .85em;
    font-weight: normal !important;
    margin: 0;
    border: 0;
    color: #635555;
}