.errors {
    color: red;
    padding: 4px;
}

.clinical-suggestions-available > .filter {
    width: 300px;
    display: inline-block;
    vertical-align: top;
}

.ui-optima.clinical-suggestions-available {
    /* display: flex; */
    background-color: white;
    margin: -1em;
}

.clinical-suggestions-available > .decks {
    width: calc(100% - 300px);
    display: inline-block;
    height: calc(100% - 50px);
    position: absolute;
    overflow-y: scroll;
}

.clinical-suggestions-available .errors {
    color: red;
    padding: 0;
    margin: 0;
}

.filter > div {
    border: solid 1px #aaa;
    margin: 8px;
    /* padding: 10px; */
    border-radius: 8px;
    box-shadow: 2px 2px 4px 0px #aaa;
}

.filter .filter-content {
    background-color: #eee;
    color: #555;
    margin-left: 8px;
    margin-right: 8px;
    padding: 4px;
}

.filter h3 {
    color: #444;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.filter-content > div {
    max-height: 55px;
    overflow: hidden;
}

.filter .selected .filter-content {
    background-color: #fff;
    color: black;
}

.filter .selected .filter-content h3 {
    background-color: #fff;
    color: black;
}

.filter .mild .filter-content {
    border-left: solid 1px #aa0;
}

.filter .mild {
    background-color: #ff8;
}

.filter .moderate {
    background-color: #fa0;
}

.filter .moderate .filter-content {
    border-left: solid 1px #a70;
    border-right: solid 1px #a70;
}

.filter .no-impairment {
    background-color: #888;
}

.filter .no-impairment .filter-content {
    border-left: solid 1px #555;
    border-right: solid 1px #555;
}

.filter .severe {
    background-color: #f88;
}

.filter .severe .filter-content {
    border-left: solid 1px #a77;
    border-right: solid 1px #a77;
}

.decks .top-level-card > h3 {
    font-size: 16px;
    margin-bottom: 4px;
    background-color: #59697d;
    color: white;
    padding: 2px;
    display: flex;
    justify-content: space-between;
}

.decks .deficit-impairment-card > h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.decks .group-card > h3 {
    font-size: 16px;
    background-color: #eee;
    border-bottom: solid 1px #aaa;
    padding: 2px;
    font-weight: normal;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}

.decks ul {
    list-style-type: none;
    padding: 0;
    font-size: 16px;
    margin: 0;
}

li.introduction-text ul {
    padding-left: 16px;
}

.decks li {
    padding-top: 2px;
    padding-bottom: 2px;
}

.decks li.progressing-to {
    padding-left: 20px;
    list-style: none;
}

.decks li.introduction-text {
    padding-left: 5px;
    list-style: none;
}

.progressing-to > div {
    font-weight: 600;
}

a.add-new {
    margin-left: 8px;
}

a.remove-intervention {
    padding: 6px;
}

a.remove-intervention i {
    color: red;
}

@media only screen and (max-height: 799px) {
    .progressing-to > div {
        font-size: 12px;
    }
}

@media only screen and (min-height: 800px) {
    .progressing-to > div {
        font-size: 14px;
    }
}

.group-card {
    border: solid 1px #636c78;
    padding: 0;
    background-color: white;
    margin-bottom: 6px;
}

.horizontal-card-container > div.group-card {
    margin-right: 8px;
    min-width: 360px;
    box-shadow: 2px 2px 6px 0px #9ba1a9;
}

@media only screen and (max-height: 799px) {
    div.body {
        overflow: auto;
        padding: 4px;
    }
}

@media only screen and (min-height: 800px) {
    div.body {
        overflow: auto;
        padding: 4px;
    }
}

.clinical-suggestions-available .filter div.selected {
    border: solid 1px #222;
    box-shadow: 3px 3px 6px 0px #666;
}

.top-level-card {
    background-color: white;
    border: solid 1px #888;
    min-width: 360px;
    margin-bottom: 8px;
    margin-right: 8px;
    box-shadow: 3px 3px 5px 0px #ccc;
    animation-name: fadeIn;
    animation-duration: 0.3s;
}

.top-level-card > div {
    padding-left: 4px;
    padding-right: 4px;
}

@media only screen and (max-height: 799px) {
    .top-level-card > div.body {
        transition: max-height 0.3s, padding-top 0.3s, padding-bottom 0.3s;
        padding-top: 4px;
        padding-bottom: 4px;
    }
}

@media only screen and (min-height: 800px) {
    .top-level-card > div.body {
        transition: max-height 0.3s, padding-top 0.3s, padding-bottom 0.3s;
        padding-top: 4px;
        padding-bottom: 4px;
    }
}

.collapsed.top-level-card > div.body {
    max-height: 0px;
    padding-top: 0;
    padding-bottom: 0;
}

.top-level-card > h3 > div.header-controls > a {
    color: white;
    font-weight: 400;
    margin-right: 8px;
    margin-left: 8px;
    text-decoration: underline;
}

p.no-planned-interventions {
    padding: 20px;
    background-color: white;
}

.top-level-card h3 > span > a > i {
    color: white;
}
.header-controls > a {
    margin-left: 8px;
    margin-right: 8px;
}

.deficit-impairment-card > h3 {
    display: flex;
    justify-content: space-between;
}

.horizontal-card-container {
    overflow: auto;
    display: flex;
    align-items: stretch;
}

@keyframes fadeIn {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

div.filter-toggle {
    border: none;
    border-radius: 0x;
    box-shadow: none;
}

.filter-toggle label {
    display: block;
}

.filter-toggle > div.options {
    display: flex;
    border: solid 1px #888;
}

div.filter-toggle > div.options > div {
    flex: 1;
    padding: 4px;
    border-right: solid 1px #888;
}

div.filter-toggle > div.options > div:last-child {
    border-right: none;
}

div.filter-toggle > div.options > .on {
    background: linear-gradient(#427ed1, #2d68b8);
    color: white;
}

.activity {
    display: flex;
    align-items: center;
    padding-top: 2px;
}

@media only screen and (max-height: 799px) {
    .activity span {
        font-size: 12px;
    }
}

@media only screen and (min-height: 800px) {
    .activity span {
        font-size: 14px;
    }
}

.activity.on-plan {
    opacity: 0.5;
}

.body li {
    border-bottom: solid 1px #eee;
    padding-bottom: 4px;
    margin-bottom: 4px;
}

.body li:last-child {
    border-bottom: none;
}

div.activity > span.text {
    display: inline-block;
    vertical-align: top;
}

.activity span.selectable.select > span {
    color: #2d68b8;
    padding: 8px;
}

span.fill-in-the-blank {
    font-size: 14px;
    padding-left: 8px;
    padding-right: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
}

/** individual selection options */
.activity span.select > span {
    margin-right: 2px;
    margin-left: 3px;
    margin-bottom: 2px;
    padding-right: 3px;
    white-space: nowrap;
    display: inline-block;
}

.activity.errors {
    color: red;
    background: linear-gradient(#fee, #fff0f0);
}

.treatment-approaches {
    background-color: white;
}

.treatment-approaches h3 {
    margin: 0;
    padding-left: 8px;
    padding-top: 2px;
    padding-bottom: 2px;
    background-color: #59697d;
    color: white;
    font-size: 16px;
    font-weight: 400;
}

.treatment-approach {
    display: flex;
    align-items: center;
    padding-top: 4px;
    padding-left: 8px;
    padding-right: 2px;
    padding-bottom: 4px;
}

.treatment-approach a.icon {
    padding: 6px;
    margin-left: -6px;
}

.treatment-approaches li {
    padding: 8px;
}

.treatment-approaches ul {
    margin: 0;
    padding-left: 34px;
}

.interventions-description {
    color: #555;
    padding-left: 8px;
}

.goal-template-preview {
    font-weight: 400;
    font-size: 12px;
    white-space: normal;
}

.popup-lightbox-fullsize a > .goal-template-preview span {
    color: #38c;
    font-size: 14px;
}

.popup-lightbox-fullsize div > .goal-template-preview span {
    color: black;
    font-size: 14px;
}

.suggested-goals tbody td {
    padding-bottom: 6px;
    padding-top: 6px;
    border-bottom: solid 1px #ddd;
}

.suggested-goals tbody tr:last-child td {
    border-bottom: none;
}

span.goal-template-link {
    margin-left: 4px;
    margin-right: 4px;
    text-decoration: underline;
}

.goal-template-choices span.goal-template-link:before {
    content: "⚪";
}

div#goal-template-selection-popup .ui-btn {
    padding-left: 6px;
    padding-right: 30px;
}

.goal-template-choices {
    padding: 2px;
    border: solid 1px #888;
    display: inline-block;
    margin: 2px;
}
