.zoupio-bootstrap a {
    color: #007ABD;
}

.dashboard-content {
    overflow-y: auto;

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

    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;

    -ms-flex-pack: start;
    -webkit-justify-content: flex-start;
            justify-content: flex-start;
}

.dashboard-content h1 {
    color: #666;

    font-size: 1.2em;
    font-weight: normal;

    line-height: 1.3em;

    margin-top: 0;
    margin-bottom: 1em;
    padding: 0 .8em;
}

.dashboard-content .documents {
     -webkit-flex: 1 0 auto;
         -ms-flex: 1 0 auto;
             flex: 1 0 auto;
}

.dashboard-search {
    color: #666;
    background-color: #f5f5f5;

    padding: .8em;
}

.dashboard-search form {
    margin-bottom: 0;
}

.dashboard-search-form .erasable-input input[type="text"],
.dashboard-search-form .help-input input[type="text"],
.dashboard-search-form .actions-form-area button:last-child {
    border-radius: 4px;
}

.dashboard-search-form .actions-form-area button:last-child {
    margin-left: .75em;
}

.dashboard-search-form .input-form-area:not(:last-child) {
    margin-bottom: .75em;
}

.dashboard-results {
    max-width: 35em;

    margin-left: auto;
    margin-right: auto;
}

.helper-tooltip .popover {
    max-width: 500px;
    min-width: 305px;
    border-width: 0;
}

html.touch .helper-tooltip .popover {
    max-width: 100%;
    right: 0 !important;
    left: auto !important;
}

.helper-tooltip .popover-content {
    padding: 0;
}

.helper-tooltip .qweri-search-help {
    width: 450px;
    font-size: 0.9em;
    margin-bottom: 0;
    border-radius: 3px;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, .35);
}

.helper-tooltip .qweri-search-help strong {
    text-transform: uppercase;
}

.helper-tooltip .qweri-search-help th {
    background-color: #6b6b6b;
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75);
}

.helper-tooltip .qweri-search-help td {
    vertical-align: middle;
}

.helper-tooltip .qweri-search-help th:nth-child(2),
.helper-tooltip .qweri-search-help td:nth-child(2) {
    text-align: center;
}

.helper-tooltip .qweri-search-help th:nth-child(3),
.helper-tooltip .qweri-search-help td:nth-child(3) {
    text-align: right;
}

.dashboard-widgets:empty {
    display: none;
}

.dashboard-widgets {
    padding: .8em;
    max-width: 20em;
    margin: 0 auto;
}

.dashboard-widgets h1 {
    padding: 0;
}

.dashboard-widgets h2 {
    display:     -ms-flexbox;
    display: -webkit-flex;
    display:         flex;

        -ms-flex-wrap: nowrap;
    -webkit-flex-wrap: nowrap;
            flex-wrap: nowrap;

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

    font-size: inherit;
    line-height: 1.7em;
    font-weight: normal;
    margin-top: 0;
}

.dashboard-widgets h2 .widget-label {
        -ms-flex: 1 1 auto;
    -webkit-flex: 1 1 auto;
            flex: 1 1 auto;
}

.dashboard-widgets h2 small {
         -ms-flex: 0 0 auto;
     -webkit-flex: 0 0 auto;
             flex: 0 0 auto;

    color: #d32f2f;
    font-size: 1.65em;

    margin-left: .5em;

    cursor: pointer;
}

.dashboard-widgets .widget {
    line-height: inherit;
    font-size: .9em;
}

.dashboard-widgets .widget:not(:last-child) {
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 1em;
    padding-bottom: 1em;
}

.dashboard-widgets .boolean-filter {
    display: none; /* TEMPORARILY DEACTIVATE THE BOOLEAN FILTER OF QWERI-2461 */
    background-color: rgba(0, 0, 0, 0.1);
    color: #222;
    margin-bottom: .4em;
    padding: 0 0.4em;
}

.dashboard-widgets .boolean-filter [type="checkbox"] {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

.dashboard-widgets .boolean-filter  label {
    display: inline-block;
    line-height: 1.5;
    margin: 0;
}
/*
.dashboard-widgets .boolean-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 .4em;
}

.dashboard-widgets .boolean-filter [type="checkbox"] {
    display: none;
}

.dashboard-widgets .boolean-filter .switch {
    background-color: #fafafa;
    border: 1px solid #d2d2d2;
    border-radius: 1.5em;
    display: inline-flex;
    margin: 0 1em;
    padding: 0;
    width: 3em;
    box-sizing: content-box;
}

.dashboard-widgets .boolean-filter [type="checkbox"]:checked + .switch {
    background-color: #7aa458;
    border-color: #7aa458;
}

.dashboard-widgets .boolean-filter .handle {
    box-sizing: border-box;
    display: inline-block;
    border-radius: 50%;
    width: 1.5em;
    height: 1.5em;
    background-color: #f2f2f2;
    border: 1px solid #a2a2a2;
    box-shadow: 1px 1px 2px 0px rgba(0, 0, 0, .1);
    position: relative;
    transform: translate3d(0, 0, 0);
    transition: transform 0.2s linear;
}

.dashboard-widgets .boolean-filter [type="checkbox"]:checked + .switch .handle {
    transform: translate3d(100%, 0, 0);
}
*/
.dashboard-widgets input[type="text"] {
    box-sizing: border-box;
    padding: .1em .25em;
    margin-bottom: 0;
    font-size: inherit;
    vertical-align: baseline;
}

.dashboard-widgets select {
    font-size: 1em;
    width: 100%;
}

.dashboard-widgets select[multiple] option {
    margin: 1px 0;
    padding: .4em;
}

.dashboard-widgets label {
    font-size: 1em;
}

.dashboard-widgets .date-range form {
    display:     -ms-flexbox;
    display: -webkit-flex;
    display:         flex;

    -webkit-flex-wrap: wrap;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;

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

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

.dashboard-widgets .date-range .input {
    flex: 0 0 70%;
    text-align: right;
}

.dashboard-widgets .date-exact .input {
    width: 70%;
    margin: 0 auto;
    text-align: right;
}

.dashboard-widgets .date-range [type="text"],
.dashboard-widgets .date-exact [type="text"] {
    width: 7.25em;
    text-align: center;
}

.dashboard-widgets .date-range [type="text"][disabled],
.dashboard-widgets .date-exact [type="text"][disabled] {
    cursor: text;
    border: none;
    background: none;
    box-shadow: none;
}

.dashboard-widgets .calendar-trigger {
    display: inline-block;
}

.dashboard-widgets .icon-calendar {
    display: inline-block;
    padding: .25em .4em;
    line-height: inherit;

    cursor: pointer;
}

.dashboard-widgets .tag-checkboxes ul {
    list-style: none;
    margin: 0 0 0 .5em;
}

.dashboard-widgets .tag-checkboxes label {
    line-height: 1.5em;
}

.dashboard-widgets .tag-checkboxes [type="checkbox"] {
    vertical-align: middle;
    margin: 0;
}

.dashboard-widgets .string [type="text"] {
    width: 100%;
}

/* select2 fix */

.select2-container.select2-allowclear .select2-choice abbr {
    top: 6em;
}

.select2-search input {
    box-sizing: border-box;
}

ul.select2-results {
    font-size: .8em;
    padding: 0 0 0 4px;
    margin: 4px 4px 4px 0;
}

.select2-results .select2-result-label {
    padding: .1em .4em;
}

.select2-container-multi .select2-search-choice-close {
    top: 3px;
}

.select2-container .select2-choice .select2-arrow b {
    background-position-y: -1px;
}
/* /select fix */

.hit-count {
    font-size: .8em;
    line-height: normal;
}

.dashboard-results-list .alert ul,
.dashboard-results-list ol {
    margin-bottom: 0;
}

.dashboard-results-list .search-result {
    border: 1px solid transparent;
    cursor: pointer;
    padding: .5em .8em;
    position: relative;
}

.dashboard-results-list .search-result:not(:last-child) {
    border-bottom-color: #bbb;
    margin-bottom: 1em;

    transition: border-bottom-color .2s;
}

.dashboard-results-list .search-result::before {
    content: '';
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -1px;
    width: 2px;

    background-color: #050C25;

    opacity: 0;

    transition: opacity .2s;
}

.dashboard-results-list .search-result:hover::before {
    opacity: 1;
}

.dashboard-results-list .search-result:hover {
    box-shadow: none;
    border-bottom-color: #050C25;
}

.dashboard-results-list .search-result a {
    color: #007ABD;
    cursor: inherit;
    display: block;
}

.dashboard-results-list .search-result-icon i {
    vertical-align: 1px;
}

.dashboard-results-list .search-result-snippet {
    border-top: none;
    color: #333;
}

.dashboard-document-count {
    display: inline-block;
    background-color: #ddd;
    border-radius: 4px;

    margin: 0 .4em;
    padding: 0 .3em;

    color: #2F6884;
    font-weight: bold;
    font-size: 1em;
    line-height: 1em;
    vertical-align: middle;
}

.dashboard-document-title {
    font-size: 1.2em;
}

.dashboard-document-title.untitled {
    font-style: italic;
}

.dashboard-note-username {
    font-style: italic;
    color: grey;
}

.dashboard-content .side-dash {
    /* as flex container */
    display:     -ms-flexbox;
    display: -webkit-flex;
    display:         flex;

    -webkit-flex-direction: column;
        -ms-flex-direction: column;
            flex-direction: column;

    /* as flex item */
         -ms-flex: 0 0 auto;
     -webkit-flex: 0 0 auto;
             flex: 0 0 auto;

    -ms-flex-item-align: center;
     -webkit-align-self: center;
             align-self: center;

    border-top: 1px solid #e5e5e5;

    margin: 2em auto 0;
    max-width: 35em;
}

.dashboard-content .side-dash > :not(:last-child) {
    margin-bottom: 2em;
}

.dashboard-content .side-dash .recent-documents ul {
    list-style: none;
    margin: 0 1em;
    padding: 0;
}

.dashboard-content .side-dash .recent-documents ul li {
    line-height: 1.5em;
}

.dashboard-content .side-dash .recent-documents ul li a.untitled {
    font-style: italic;
}

.dashboard-content .side-dash .recent-documents ul li:not(:last-child) {
    margin-bottom: .5em;
}

.dashboard-recent-notes-list {
    padding: 0;
}

.dashboard-recent-notes-list .dashboard-recent-note-link {
    color: #000;
    display: block;
    padding: 9px;
}

.dashboard-recent-notes-list .dashboard-recent-note-link:hover {
    color: #000;
}

.dashboard-recent-notes-list .dashboard-recent-note-link span b.untitled {
    font-style: italic;
}

/* Modifying the annotations behavior */
.dashboard-recent-notes-list .annotation-item {
    cursor: default;
    box-shadow: none !important;
}

/* Twitter typeahead.js */
.twitter-typeahead {
    width: 100%;
}

.tt-hint {
    color: #bbb;
}

.tt-menu {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 5px 10px #ccc;
    color: #444;
    margin-top: 2px;
    padding: 5px 0;
    width: 100%;
    min-width: 160px;
    max-height: 230px;
    overflow-y: auto;
}

.tt-no-result {
    line-height: 1em;
    padding: .2em 1em;
}

.tt-suggestion {
    line-height: 1em;
    padding: .2em 1em;
    white-space: nowrap;
    overflow-x: hidden;
    text-overflow: ellipsis;
}

.tt-suggestion e {
    font-weight: bolder;
    text-decoration: underline;
}

.tt-suggestion .productNumber {
    font-size: .8em;
    line-height: 1.1em;
}

.tt-highlight {
    text-decoration: underline;
}

.tt-cursor {
    background-color: #e3e3e3;
    color: #444;
}

.tt-selectable:hover {
    background-color: #007ABD;
    color: #fff;
    cursor: pointer;
}

@media screen and (min-width: 40em) {

    .dashboard-content {
        padding: 1em;
    }

    .dashboard-content h1 {
        padding: 0;
    }

    .dashboard-search {
        background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.15) -450%, #f5f5f5 50%);
        background-image:    -moz-linear-gradient(top, rgba(0, 0, 0, 0.15) -450%, #f5f5f5 50%);
        background-image:     -ms-linear-gradient(top, rgba(0, 0, 0, 0.15) -450%, #f5f5f5 50%);
        background-image:      -o-linear-gradient(top, rgba(0, 0, 0, 0.15) -450%, #f5f5f5 50%);
        background-image:         linear-gradient(to bottom, rgba(0, 0, 0, 0.15) -450%, #f5f5f5 50%);

        box-shadow: 0 1px 3px rgba(0, 0, 0, .5);

        padding: 2em;
    }

    .dashboard-results {
        display:     -ms-flexbox;
        display: -webkit-flex;
        display:         flex;

        -webkit-flex-direction: row;
            -ms-flex-direction: row;
                flex-direction: row;

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

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

        max-width: none;
        margin-top: 1em;
    }

    .dashboard-widgets {
             -ms-flex: 0 0 30%;
         -webkit-flex: 0 0 30%;
                 flex: 0 0 30%;

        margin-right: .8em;
        max-width: 12.5em;

        padding: 0;
    }

    .dashboard-widgets .date-range .input {
        flex: 0 0 auto;
    }

    .dashboard-widgets .date-range form {
        -ms-flex-pack: end;
        -webkit-justify-content: flex-end;
                justify-content: flex-end;
    }

    .dashboard-widgets .date-exact .input {
        width: auto;
    }

    .dashboard-results-list {
             -ms-flex: 1 1 auto;
         -webkit-flex: 1 1 auto;
                 flex: 1 1 auto;
    }

    .dashboard-content .side-dash {
        -webkit-flex-direction: row;
            -ms-flex-direction: row;
                flex-direction: row;

        -ms-flex-item-align: auto;
         -webkit-align-self: auto;
                 align-self: auto;

        max-width: none;

        margin-left: initial;
        margin-right: initial;
    }

    .dashboard-content .side-dash .recent-documents,
    .dashboard-content .side-dash .recent-annotations {
        flex: 1 1 50vw;
    }

    .dashboard-content .side-dash .recent-annotations {
        margin-left: 1em;
    }
}

@media screen and (max-width: 65em) {

    .zoupio-bootstrap .well {
        border-radius: 0;
        border: none;

        -webkit-box-shadow: none;
            -ms-box-shadow: none;
                box-shadow: none;
    }

}

@media screen and (min-width: 65em) {

    body {
        height: 100vh;
    }

    .dashboard-content {
        -webkit-flex-direction: row;
            -ms-flex-direction: row;
                flex-direction: row;

        padding: 1em;
    }

    .dashboard-search {
        border-radius: .2em;
    }

    .dashboard-content h1 {
        font-size: 1.5em;
    }

    .dashboard-content .documents  {
        -webkit-flex: 1 1 71.4285714%;
            -ms-flex: 1 1 71.4285714%;
                flex: 1 1 71.4285714%;
    }

    .dashboard-content .side-dash {
        -webkit-flex-direction: column;
            -ms-flex-direction: column;
                flex-direction: column;

             -ms-flex: 0 0 28.5714286%;
         -webkit-flex: 0 0 28.5714286%;
                 flex: 0 0 28.5714286%;

        -ms-flex-item-align: start;
         -webkit-align-self: flex-start;
                 align-self: flex-start;

        margin-top: 0;
        margin-left: 1em;

        min-width: 15em;

        border-top: none;
    }

    .dashboard-content .side-dash .recent-documents {
        flex: 1 1 auto;
    }

    .dashboard-content .side-dash .recent-documents:empty {
        display: none;
    }

    .dashboard-content .side-dash .recent-annotations {
        flex: 1 1 auto;
        margin-left: 0;
    }

    .dashboard-content .side-dash .recent-annotations:empty {
        display: none;
    }

}
