/*        */
/* HEADER */
/*        */

.qweri-header {
    
    display: -webkit-flex;
    display:     -ms-flexbox;
    display:         flex;
    
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    
    -webkit-align-items: center;
         -ms-flex-align: center;
            align-items: center;
    
    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
    
    background-color: #f2f3f4;
    color: #666;
    padding: 1em;

}

.qweri-basic-layout .qweri-header {
    
    -webkit-justify-content: center;
              -ms-flex-pack: center;
            justify-content: center;
    
}

.qweri-header .logo {
    
    -webkit-flex: 1 0 auto;
        -ms-flex: 1 0 auto;
            flex: 1 0 auto;
    
    
}

.qweri-header .logo img {
    height: 35px;
    width: auto;
}

.qweri-header .title {

    -webkit-flex: 1 1 100vw;
        -ms-flex: 1 1 100vw;
            flex: 1 1 100vw;
    
     -webkit-order: 2;
    -ms-flex-order: 2;
             order: 2;
    
    font-size: 1em;
    line-height: 1.25em;
    margin: .5em 0 0;
    
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .8);

}

.qweri-header .title {
    
    color: #666;
    
}

.qweri-header .title .qweri-title {

    display: block;
    color: inherit;
    font-weight: 300;
    overflow: inherit;
    text-overflow: inherit;
    white-space: nowrap;
    
}

.qweri-header .title .qweri-title:hover {
    
    text-decoration: none;
    
}

.qweri-header .title .qweri-title.untitled {
    font-style: italic;
}

.qweri-header .title .qweri-section {
    
    display: block;
    color: #666;
    font-size: .85em;
    line-height: 1.1;
    overflow: inherit;
    text-overflow: inherit;
    white-space: nowrap;
    
}

html.touch .qweri-header .qweri-title,
html.touch .qweri-header .qweri-section {

    overflow-x: auto;
    text-overflow: clip;
    -webkit-overflow-scrolling: touch;
    
}

.qweri-header .title .qweri-section:empty::after {
    
    content: '\a0';
    
}

.qweri-profile-area.no-admin {

    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;

    display: -webkit-flex; 
    display:     -ms-flexbox;
    display:         flex;

    margin-left: 1em;

    background-color: #737373;
    color: #fff;
    border-radius: 2px;

     -webkit-order: 1;
    -ms-flex-order: 1;
             order: 1;

     -webkit-transition: opacity .2s linear;
        -moz-transition: opacity .2s linear;
         -ms-transition: opacity .2s linear;
          -o-transition: opacity .2s linear;
             transition: opacity .2s linear;
}

.qweri-profile-area.no-admin:empty {
    
    opacity: 0;

}

.qweri-profile-area.no-admin > * {

    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;

    padding: .4em 1em .4em 0;

    display: inline-block;

}

.qweri-profile-area.no-admin > :first-child {

    padding-left: 1em;
    
}

.qweri-profile-area.no-admin .first-level-link {

    color: inherit;
    
}

.qweri-header .language-switch {
    -webkit-display: flex;
        -ms-display: flex;
            display: flex;

         -ms-flex-align: center;
    -webkit-align-items: center;
            align-items: center;

              -ms-flex-pack: end;
    -webkit-justify-content: flex-end;
            justify-content: flex-end;

    left: 0;
    list-style-type: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 0;
    width: 100vw;
    z-index: 1; /* fix for IE 11 wrt absolute positioning and a parent element defining a stacking context */
}

.qweri-header .language-switch li {
    -webkit-display: inline-flex;
        -ms-display: inline-flex;
            display: inline-flex;

    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;

    padding: 0 .5em;
}

.qweri-header .language-switch li.current {
    display: none;
}

.qweri-header .language-switch li[lang="en"] {
    -ms-flex-order: 0;
     -webkit-order: 0;
             order: 0;
}

.qweri-header .language-switch li[lang="fr"] {
    -ms-flex-order: 1;
     -webkit-order: 1;
             order: 1;
}

.qweri-header .language-switch .full {
    display: none;
}

.qweri-header .language-switch a {
    color: #0072B3;
}

@media (min-width: 30em) {
    .qweri-header .language-switch .short {
        display: none;
    }

    .qweri-header .language-switch .full {
        display: inline;
    }
}

@media (min-width: 45em) {
    
    .qweri-header {
        -webkit-flex-wrap: nowrap;
            -ms-flex-wrap: nowrap;
                flex-wrap: nowrap;
    }

    .qweri-header .language-switch {
                  -ms-flex-pack: end;
        -webkit-justify-content: flex-end;
                justify-content: flex-end;

        padding-right: 1em;
    }
    
    .qweri-header .logo {
        
        -webkit-flex: 0 0 auto;
            -ms-flex: 0 0 auto;
                flex: 0 0 auto;
        
        
    }
    
    .qweri-header .title {
        
         -webkit-order: 0;
        -ms-flex-order: 0;
                 order: 0;
        
        -webkit-flex: 1 1 auto;
            -ms-flex: 1 1 auto;
                flex: 1 1 auto;
        
        font-size: 1.85em;
        
        margin: 0 0 0 1.5em;
        
    }
    
    .qweri-header .title .qweri-section {
        
        font-size: .65em;
    }
    
}

/* Approx. tablet-sized screens AND smaller */
@media screen and (max-width: 63.9999999999em) {
    
    html.touch .qweri-profile-area.no-admin .first-level-link {
        font-size: 1.5em;
    }
    
}

/*              */
/* MAIN CONTENT */
/*              */
.qweri-main {
    
    -webkit-flex: 1 0 auto;
        -ms-flex: 1 0 auto;
            flex: 1 0 auto;

}

.qweri-basic-layout .qweri-main {

     -webkit-align-self: center;
    -ms-flex-item-align: center;
             align-self: center;
    
    display: -webkit-flex;
    display:     -ms-flexbox;
    display:         flex;
    
    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;

              -ms-flex-pack: center;
    -webkit-justify-content: center;
            justify-content: center;

         -ms-flex-align: center;
    -webkit-align-items: center;
            align-items: center;
    
    padding: 1em .5em;
    width: 30em;
    max-width: 95vw;
    
    overflow-y: auto;

}

.qweri-basic-layout .qweri-main > * {
    max-width: 100%;
}

.qweri-noscript {
    flex: 1 1 auto;
    text-align: center;
    margin-top: 25vh;
}

@media (min-height: 25em) {
    
    /* Starting at a height of 25em, allow the <main> tag to scroll by itself,
       instead of the whole page scrolling on smaller height devices.
     */
    .qweri-main {
    
        -webkit-flex: 1 1 auto;
            -ms-flex: 1 1 auto;
                flex: 1 1 auto;
        
        height: 0%; /* fixing the main section growing indefinitely in firefox and IE. */
    }
    
}

/*        */
/* FOOTER */
/*        */
.qweri-footer {
    
    display: -webkit-flex;
    display:     -ms-flexbox;
    display:         flex;
         
    -webkit-align-items: center;
         -ms-flex-align: center;
            align-items: center;
    
    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
    
    background-color: #f2f3f4;
    padding: .5em 1em;
    
}

.qweri-footer .logo img {
    height: 24px;
    width: auto;
}

/*                               */
/* BIGGER LABEL THAN BOOTSTRAP'S */
/*                               */
.label.label-large {
    font-size: 14px;
    line-height: 20px;
}

/*                       */
/* NICE THINGS FOR FORMS */
/*                       */

.erasable-input,
.help-input {
    display: -webkit-flex;
    display:     -ms-flexbox;
    display:         flex;

    position: relative;
}

/* QWERI-2152 */
.erasable-input input[type="text"]::-ms-clear,
.help-input input[type="text"]::-ms-clear {
    display: none;
    height: 0;
    width: 0;
}

.erasable-input > input[type="text"],
.help-input > input[type="text"],
.erasable-input > span.twitter-typeahead,
.help-input > span.twitter-typeahead {
    -webkit-flex: 1 1 auto;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
}

.erasable-input input[type="text"],
.help-input input[type="text"] {
    margin-bottom: 0;
    padding-left: 14px;
    padding-right: 3em;

    min-width: 6em;
    width: auto;

    border-radius: 14px 0 0 14px;
}

.erasable-input.help-input input[type="text"] {
    padding-right: 4em;
}

.erasable-input > span.twitter-typeahead > input[type="text"],
.help-input > span.twitter-typeahead > input[type="text"] {
    box-sizing: border-box;
    width: 100%;

    /* fixes to mimic bootstrap */
    padding-top: 4px;
    padding-bottom: 4px;
    height: 30px;
}

.erasable-input .eraser,
.help-input .helper {
    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;

    display: -webkit-flex;   
    display:     -ms-flexbox;
    display:         flex;   

    -webkit-align-items: center;
         -ms-flex-align: center;
            align-items: center;

    -webkit-justify-content: space-around;
              -ms-flex-pack: distribute;
            justify-content: space-around;

    padding: 0 1em;
    width: 3em;
    height: 100%;

    position: absolute;
    right: 0;

    background-color: transparent;

    cursor: pointer;
}

.erasable-input .eraser {
    visibility: hidden;
    color: #b94a48;
}

.erasable-input.help-input .eraser,
.erasable-input.help-input .helper {
    width: 2em;
}

.erasable-input.help-input .eraser {
    right: 2em;
}

.erasable-input .eraser i,
.help-input .helper i {
    opacity: .4;
}

.erasable-input .eraser:hover i,
.help-input .helper:hover i {
    opacity: .9;
}

.input-form-area {
    display: -webkit-flex;
    display:     -ms-flexbox;
    display:         flex;
}

.input-form-area .entry-form-area {
    -webkit-flex: 1 0 auto;
        -ms-flex: 1 0 auto;
            flex: 1 0 auto;
}

.input-form-area .actions-form-area {
    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;

    display: -webkit-flex;
    display:     -ms-flexbox;
    display:         flex;
}

.actions-form-area > * {
    -webkit-flex: 1 0 auto;
        -ms-flex: 1 0 auto;
            flex: 1 0 auto;
}

.actions-form-area button:last-child {
    border-radius: 0 14px 14px 0;
}

.options-form-area {
    display: -webkit-flex;
    display:     -ms-flexbox;
    display:         flex;
    
        -ms-flex-direction: column;
    -webkit-flex-direction: column;
            flex-direction: column;
    
    -ms-flex-align: center;
    -webkit-align-items: center;
            align-items: center;
}

.options-form-area .options-choices {
    -webkit-flex: 0 1 auto;
        -ms-flex: 0 1 auto;
            flex: 0 1 auto;

    display: -webkit-flex;
    display:     -ms-flexbox;
    display:         flex;
}

.options-choices .options-label {
    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;

    margin-right: 1em;
}

.options-choices ul {
    display: -webkit-flex;
    display:     -ms-flexbox;
    display:         flex;
    
    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;

    -ms-flex-pack: center;
    -webkit-justify-content: center;
            justify-content: center;
    
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.options-choices li {
    display: inline-block;
    margin-right: 1em;
    white-space: nowrap;
}

.options-choices li [type="radio"] {
    vertical-align: sub;
    margin-right: .3em;
}

/*                */
/* SEARCH RESULTS */
/*                */

.search-result-container {
    display: -webkit-flex;
    display:     -ms-flexbox; 
    display:         flex;
}

.search-result {
    margin-bottom: 10px;
    -webkit-transition: border .2s linear 0s, box-shadow .2s linear 0s;
       -moz-transition: border .2s linear 0s, box-shadow .2s linear 0s;
         -o-transition: border .2s linear 0s, box-shadow .2s linear 0s;
            transition: border .2s linear 0s, box-shadow .2s linear 0s;
}

.search-result:hover {
    cursor: pointer;
    border-color: rgba(169, 212, 1, 0.8);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(169, 212, 1, 0.6);
}

.search-result.selected {
    border-color: rgba(169, 212, 1, 0.8);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(169, 212, 1, 0.6);
    background-color: #f4f6ea;
}

.search-result .search-result-titles ul {
    list-style-type: none;
}

.search-result > ul {
    margin-left: 0;
}

.search-result a {
    color: #333;
}

.search-result a:hover {
    text-decoration: none;
}

.search-result-icon {
    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
}

.search-result-titles {
    -webkit-flex: 1 1 auto;
        -ms-flex: 1 1 100%;
            flex: 1 1 100%;

    margin-left: 5px;
}

.search-result-snippet {
    border-top: 1px solid #888;
    text-align: justify;
}

.search-results-list .pagination {
    text-align: center;
}

/**
 *
 * Fixing box-sizing for bootstrap's non-border-box inputs
 *
 **/
.zoupio-bootstrap textarea,
.zoupio-bootstrap input[type="text"],
.zoupio-bootstrap input[type="password"],
.zoupio-bootstrap input[type="datetime"],
.zoupio-bootstrap input[type="datetime-local"],
.zoupio-bootstrap input[type="date"],
.zoupio-bootstrap input[type="month"],
.zoupio-bootstrap input[type="time"],
.zoupio-bootstrap input[type="week"],
.zoupio-bootstrap input[type="number"],
.zoupio-bootstrap input[type="email"],
.zoupio-bootstrap input[type="url"],
.zoupio-bootstrap input[type="search"],
.zoupio-bootstrap input[type="tel"],
.zoupio-bootstrap input[type="color"],
.zoupio-bootstrap .uneditable-input {
    
    height: 30px;
    line-height: 20px;
    
}
