﻿.idocmediagrid {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;    
    background-color: #f2f6fe;
}

/* HEADER */
.idocmediagrid > div.header {
    background-color: #155680;
    box-sizing: border-box;
    padding: 10px;
    display: flex;
    flex-direction: row;
}

.idocmediagrid > div.header div.user {
    flex: 1;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
}

.idocmediagrid > div.header div.user p {
    color: white;
}

.idocmediagrid > div.header div.user p > span {
    color: white;
    font-weight: bold;
}

.idocmediagrid > div.header img {
    width: 70px;
}

.idocmediagrid > div.header div.user button {
    margin-left: 5px;
    background-color: rgba(0,0,0, .1);
    height: 30px;
    width: 30px;
    font-size: 0px;
    border: none;
    outline: none;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 16px;
    cursor: pointer;
    transition: background-image .3s, opacity .3s;
    border-radius: 5px;
}

.idocmediagrid > div.header div.user button.refresh {
    background-image: url('../images/idoc_ico-refresh.svg');
    /*background-size: 18px;*/
}


.idocmediagrid > div.header div.user button.notify {    
    background-image: url('../images/idoc_ico-mute-notify.svg');    
}

.idocmediagrid > div.header div.user button.notify.active {    
    background-image: url('../images/idoc_ico-notify.svg');
}

.idocmediagrid > div.header div.user button.logout {            
    background-image: url('../images/idoc_ico-logout.svg');
}

.idocmediagrid > div.header div.user button:hover {
    background-color: rgba(0,0,0, .3);
}
/* FIM HEADER */
.idocmediagrid > .patients {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    box-sizing: border-box;
    padding: 20px;
    overflow-y: auto;
}

.idocmediagrid > .patients > .patient {
    margin-bottom: 10px;    
}

.idocmediagrid > .patients > .patient > .header {
    display: flex;
    flex-direction: row;
    cursor: pointer;
    align-items: center;
}

.idocmediagrid > .patients > .patient > .header > h3 {
    margin-bottom: 20px;
    font-size: 16px;
    color: #454562;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    flex: 1;
}

.idocmediagrid > .patients > .patient > .header > h3 > span {
    font-size: 11px;
    display: block;
    color: #454562;
    font-weight: 300;
    opacity: .8;
}

.idocmediagrid > .patients > .patient > .header > button {
    border: none;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 0px;
    width: 26px;
    height: 26px;
    transition: transform .3s;
}

.idocmediagrid > .patients > .patient > .header > button[action=hidden],
.idocmediagrid > .patients > .patient > .header > button[action=show] {
    background-image: url('../images/idoc_ico-arrow_up.svg');
}

.idocmediagrid > .patients > .patient > .header > button[action=show] {
    transform: rotate(3.142rad);
}

.idocmediagrid > .patients > .patient > .header > button[action=hiddenAll],
.idocmediagrid > .patients > .patient > .header > button[action=showAll] {
    background-image: url('../images/idoc_ico-eye-see-show-view.svg');
    background-repeat: no-repeat;
    width: 15px;
    height: 20px;
    margin-top: 7px;
}

.idocmediagrid > .patients > .patient > .header > button[action=hiddenAll] {
    background-image: url('../images/idoc_ico-eye-inactive-see-hide.svg');
}

.idocmediagrid > .patients > .patient > .documents {
    transition: max-height .3s ease-in-out;
    max-height: 5000px;
    overflow-x: auto;
    padding-left: 26px;
}

.idocmediagrid > .patients > .patient > .documents > .document::before {
    content: "";
    display: block;
    width: 18px;    
    height: calc(100% + 10px);
    position: absolute;
    left: -21px;
    top: -45px;
    border-left: 2px solid rgba(99, 99, 140, .2);
    border-bottom: 2px solid rgba(99, 99, 140, .2);
}

.idocmediagrid > .patients > .patient > .documents > .document:first-child:after {
    content: "";
    display: block;
    width: 10px;
    height: 10px;
    background-color: #d5d9e7;
    border-radius: 50%;
    position: absolute;
    left: -25px;
    top: -1px;
}

.idocmediagrid > .patients > .patient > .documents > .document {
    background: #FFF;
    border: 1px solid #eceff5;
    box-sizing: border-box;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: start;
    border-radius: 5px;
    margin-bottom: 10px;
    position: relative;
    box-shadow: 0px 0px 3px #eceff5;    
}

.idocmediagrid > .patients > .patient > .documents > .document > .top {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
}

.idocmediagrid > .patients > .patient > .documents > .document > .top > .ico {
    width: 30px;
    position: relative;
    display: flex;
    flex-direction: row;
}

.idocmediagrid > .patients > .patient > .documents > .document > .top > .ico > img {
    opacity: .4;
}


.idocmediagrid > .patients > .patient > .documents > .document > .top > .ico span {
    background-color: #155680;
    position: absolute;
    right: -5px;
    top: -5px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    color: #FFF;
    opacity: .8;
}

.idocmediagrid > .patients > .patient > .documents > .document > .top > p {
    font-size: 10px;
    color: #999;
}


.idocmediagrid > .patients > .patient > .documents > .document > .top > hgroup {
    text-align: center;
}

.idocmediagrid > .patients > .patient > .documents > .document > .top > .action > button {
    width: 26px;
    height: 26px;
    outline: none;
    border: none;
    background-color: transparent;
    font-size: 0px;
    cursor: pointer;
    opacity: .8;
    background-size: 16px;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-image .3s;
}

.idocmediagrid > .patients > .patient > .documents > .document > .top > .action > button:hover {
    opacity: 1;
}

.idocmediagrid > .patients > .patient > .documents > .document > .top > .action > button[action=view] {
    background-image: url('../images/idoc_ico-external-link.svg');
}

.idocmediagrid > .patients > .patient > .documents > .document > .top > .action > button[action=import] {
    background-image: url('../images/idoc_ico_import.png');
    background-size: auto;
}

.idocmediagrid > .patients > .patient > .documents > .document > .top > .action > button[action=hidden] {
    background-image: url('../images/idoc_ico-eye-inactive-see-hide.svg');
}

.idocmediagrid > .patients > .patient > .documents > .document > .top > .action > button[action=show] {
    background-image: url('../images/idoc_ico-eye-see-show-view.svg');
}


.idocmediagrid > .patients > .patient > .documents > .document > .archives {
    transition: max-height .3s ease-in-out;
    max-height: 5000px;
    overflow: auto;
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    border-top: 1px solid #eee;
    width: 100%;
    padding-top: 10px;
    flex-wrap: wrap;
}

.idocmediagrid > .patients > .patient > .documents > .document > .archives > .archive {
    margin-right: 10px;
    cursor: pointer;
}

.idocmediagrid > .patients > .patient > .documents > .document > .archives > .archive:last-child {
    margin-right: 0px;
}

.idocmediagrid > .patients > .patient > .documents > .document > .archives > .archive > span.no-archive {
    margin-top: 10px;
    display: block;
    color: #808080;
    cursor: default;
}

.idocmediagrid > .patients > .patient > .documents > .document > .archives > .archive > a > img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 5px;
}

.idocmediagrid > .patients > .patient > .documents.minimized,
.idocmediagrid > .patients > .patient > .documents > .document > .archives.minimized {
    max-height: 0px !important;
    overflow: hidden;
}

.idocmediagrid > .patients > .patient > .documents > .document > .archives.minimized {
    margin-top: 0px;
    border-top: 0px;
    padding-top: 0px;
}

.idocmediagrid > .patients > .patient > .documents > .document > .archives.minimized img,
.idocmediagrid > .patients > .patient > .documents > .document > .archives.minimized > .archive > span {
    display: none !important;
}