/******************** .chat ********************/

.chat {
    /* overflow: hidden !important; */
    font-size: 1.6rem;
}

.chat * {
    box-sizing: border-box;
}

.chat .head .actions,
.chat .foot .actions {
    position: absolute;
    top: 0;
    right: 5px;
    display: flex;
    height: 100%;
    gap: 10px;
    align-items: center;
}

.chat .head .actions .button {
    padding: 0 12px;
    background-color: white !important;
    height: 35px;
}

.chat [class*=fa-] {
    display: inline-block;
    width: 5rem;
    height: 5rem;
    line-height: 5rem;
    font-size: 14px !important;
    text-align: center;
    cursor: pointer;
}

.chat .hidden {
    display: none;
}

/******************** .chat > table ********************/

.chat > table {
    width: 100%;
    border-collapse: collapse;
    border: 0;
}

.chat > table tr:nth-child(even) {
    background-color: #F3F3F3;
}

.chat > table tr.archive td {
    background-color: rgba(113, 189, 0, 0.1);
}

.chat > table tr.archive td:nth-child(1) {
    color: rgba(113, 189, 0, 1);
}

.chat > table th {
    border-bottom: 1px solid rgba(0, 47, 96, 1);
}

.chat > table th,
.chat > table td {
    line-height: 3rem;
    padding: 1rem;
    white-space: nowrap;
}

.chat > table td {
    cursor: pointer;
}

.chat > table td [class*=fa-] {
    width: 3rem;
    height: 3rem;
    line-height: 3rem;
}

.chat > table th:nth-child(1),
.chat > table td:nth-child(1) {
    padding-right: 0;
}

.chat > table th:nth-child(2),
.chat > table td:nth-child(2) {
    font-size: 12px;
    padding-left: 0;
}

.chat > table th:nth-child(3),
.chat > table td:nth-child(3) {
    width: 100%;
}

.chat > button {
    margin: 1.5rem;
}

/******************** .chat.th ********************/

#S_content .chat.th {
    padding-top: 0;
}

.chat.th table {
    padding-top: 16px;
    text-align: center;
}

.chat.th table,
.chat.th table tr,
.chat.th table tr td {
    display: block;
}

.chat.th table tr:first-child,
.chat.th table tr th,
.chat.th table tr td:nth-child(n+4) {
    display: none;
}

.chat.th table tr {
    float: left;
    width: 136px;
    height: 136px;
    margin: 0 0 16px 16px;
    background-color: #FFF;
    overflow: hidden;
}

.chat.th table tr td:first-child {
    width: 136px;
    height: 99px;
    line-height: 99px;
    padding: 0;
    overflow: hidden;
    font-size: 4em !important;
}

.chat.th table tr td:nth-child(2) {
    padding: 4px 8px 0;
    font-size: 1.3rem;
}

.chat.th table tr td:nth-child(3) {
    padding: 0 8px 8px;
    font-size: 1rem;
}

.chat.th table:after {
    content: '';
    display: block;
    clear: both;
}

/******************** .chat .head ********************/

.chat .head {
    width: 100%;
    height: 5rem;
    line-height: 5rem;
    position: absolute;
    z-index: 1;
}

.chat.notitle .head {
    height: 0;
}

.chat.notitle .head .actions {
    display: none;
}

.chat .toast-container {
    z-index: 2;
}

.chat.notitle .CGTitre {
    display: none;
}

.chat:not(.notitle) .head,
.chat .head [class*=fa-] > div {
    font-size: 1.6rem;
    /*box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.25);*/
    filter: progid:DXImageTransform.Microsoft.Shadow(color=rgba(0, 0, 0, 0.25), Direction=180, Strength=8);
    border-bottom: 1px solid #ddd;
}

.chat .head > .fa-check {
    color: rgba(113, 189, 0, 1);
}

.chat .head .CGTitre {
    width: calc(100% - 25rem);
    position: absolute;
    left: 0;
    padding-left: 32px;
    font-size: 1.8rem;
    font-weight: bold;
    min-width: 128px;
}

.chat .head input {
    height: 5rem;
    line-height: 5rem;
    padding: 0 32px;
}

.chat .head input.CGTitre {
    padding-left: 5rem;
}

.chat .head .fa-star,
.chat .head .fa-key.active {
    color: rgba(113, 189, 0, 1);
}

.chat .head [class*=fa-] > div,
.chat .head [class*=fa-] > div .fa-check-square-o,
.chat .head [class*=fa-] > div .selected .fa-square-o {
    display: none;
}

.chat .head [class*=fa-] > div .fa-square-o,
.chat .head [class*=fa-] > div .selected .fa-check-square-o {
    display: inline-block;
}

.chat .head [class*=fa-] > div {
    position: absolute;
    margin: 0;
    padding: 0;
    right: 0;
    top: 45px;
    color: rgba(0, 47, 96, 1);
    background-color: #FFF;
    border-top: 4px solid rgba(0, 47, 96, 1);
    max-height: calc(65rem + 1px);
    overflow-y: auto;
}

.chat .head [class*=fa-] > div > div {
    -webkit-box-sizing: content-box !important;
    -moz-box-sizing: content-box !important;
    -ms-box-sizing: content-box !important;
    -o-box-sizing: content-box !important;
    box-sizing: content-box !important;

    height: 5rem;
    margin: 0;
    padding-right: 24px;
    text-align: left;
    white-space: nowrap;
}

.chat .head [class*=fa-] > div > div:not(.hidden) ~ div.separator {
    border-top: 1px solid rgba(0, 47, 96, 1);
}

.chat .head [class*=fa-].open,
.chat .head [class*=fa-].open > div .selected {
    color: #FFF;
    background-color: rgba(0, 47, 96, 1);
}

.chat .head [class*=fa-].open > div {
    display: block;
}

/******************** .chat .main ********************/

.chat .main {
    width: 100%;
    height: calc(100% - 11rem);
    position: absolute;
    bottom: 6rem;
    overflow-y: auto;
}

.chat.notitle .main {
    height: calc(100% - 5rem - 1px);
}

.chat .main section {
    padding: 16px 32px;
    overflow: hidden;
}

.chat .main article {
    padding: 16px 0;
    font-size: 1.4rem;
}

.chat .main article > div {
    line-height: 5rem;
}

.chat .main section > .message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.chat .main section .boxlines .message {
    max-width: 80%;
}

.chat .main article .alias {
    width: 5rem;
    height: 5rem;
    float: left;
    text-align: center;
    font-size: 1.8rem;
    margin-right: 12px;
    background-color: #AAA;
    color: #FFF;

    -webkit-border-radius: 100%;
    -moz-border-radius: 100%;
    -ms-border-radius: 100%;
    -o-border-radius: 100%;
    border-radius: 100%;
}

.chat .main article .alias.inverse {
    color: rgba(0, 47, 96, 1);
}

.chat .main article.me .alias {
    float: right;
    margin: 0 0 0 12px;
}

.chat .main article blockquote {
    display: inline-block;
    min-width: 80px;
    max-width: 960px;
    margin: 12px 0 0;
    padding: 8px 24px;
    position: relative;
    background-color: #F6F3F3;
    color: #1B1B1C;
    font-size: 1.6rem;
    word-wrap: break-word;
    filter: progid:DXImageTransform.Microsoft.Shadow(color=rgba(0, 0, 0, 0.25), Direction=180, Strength=8);
    -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -moz-transition: -moz-transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -ms-transition: -ms-transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    -o-transition: -o-transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 12px;
}

.chat .main article.new blockquote {
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
    transform: scale(1.1);
}

.chat .main article blockquote:before {
    content: '';
    display: block;
    height: 0;
    width: 0;
    border: 8px solid rgba(255, 255, 255, 0);
    border-bottom: 8px solid #FFF;
    position: absolute;
    top: -16px;
    left: 48px;
}

.chat .main article blockquote > * {
    margin: 16px 0;
}

.chat .main article blockquote img,
.chat .main article blockquote video,
.chat .main article blockquote audio,
.chat .main article blockquote > .emphasis a {
    display: block;
    max-width: 100%;
    max-height: 256px;
}

.chat .main article blockquote > .emphasis {
    max-width: 320px;
    background-color: #F6F6F6;
    border: 1px solid rgba(0, 47, 96, 1);
}

.chat .main article blockquote > .emphasis:not(.notfound):hover {
    background-color: #E6E6E6;
    cursor: pointer;
}

.chat .main article blockquote > .emphasis.notfound {
    padding: 24px;
}

.chat .main article blockquote > .emphasis.notfound h2 {
    line-height: 5rem;
    font-size: 26px;
    font-weight: bold;
    margin: 0 0 8px 0;
}

.chat .main article blockquote > .emphasis a,
.chat .main article blockquote > .emphasis p {
    line-height: 5rem;
    margin: 0 16px;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
}

.chat .main article.me {
    text-align: right;
}

.chat .main article.me blockquote {
    text-align: left;
}

.chat .main article.me blockquote:before {
    left: initial;
    right: 48px;
}


.chat .main article.me blockquote .icon-format_quote {
    right: auto !important;
    left: -35px !important;
}

.chat .main article blockquote .icon-format_quote {
    position: absolute;
    right: -35px;
    background: rgba(69, 71, 75, 0.08);
    border-radius: 6px;
}

.chat .main article blockquote .citation {
    padding-left: 16px;
    border-left: 4px solid #ddd;
    font-style: italic;
    color: #999;
}

/******************** .chat .main .system ********************/

.chat .main .system {
    margin: 16px 0;
    color: #bbb;
    text-align: center;
    font-size: .8em;
    font-style: italic;
    text-transform: uppercase;
    -webkit-text-shadow: 0 1px 1px #fff;
    -moz-text-shadow: 0 1px 1px #fff;
    -ms-text-shadow: 0 1px 1px #fff;
    -o-text-shadow: 0 1px 1px #fff;
    text-shadow: 0 1px 1px #fff;
}

/******************** .chat .foot ********************/

.chat .foot {
    width: 100%;
    height: 6rem;
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    border-top: 1px solid #ddd;
    background: white;
    justify-content: space-between;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.chat .head input,
.chat .foot .footText {
    color: rgba(0, 47, 96, 1);
}

.chat .foot .footText {
    padding: calc(1rem + 3px) 45px 9px calc(1rem + 4px);
    background-color: #F6F3F3;
    border-radius: 12px;
    display: flex;
    align-items: center;
    position: absolute;
    margin-left: 46px;
    bottom: 5px;
    width: calc(100% - 46px - 46px);
    border: 1px solid transparent;
    transition: border-color 0.3s;
}

.chat .foot .footText:focus {
    border-color: var(--on-primary-container);
}

.chat .foot .actions-left .icon,
.chat .foot .actions-right .icon {
    padding: calc(2.5rem - 12px);
}

.chat .foot .actions-left .icon {
    border-bottom-left-radius: 12px;
}

.chat .foot .actions-right .icon {
    border-bottom-right-radius: 12px;
}

.actions-left, .actions-right {
    display: flex;
    align-items: center;
    height: 100%;
}

.chat .foot .footText[contenteditable=true]:empty:before {
    content: attr(placeholder);
    display: block;
    -webkit-opacity: 0.5;
    -moz-opacity: 0.5;
    -ms-opacity: 0.5;
    -o-opacity: 0.5;
    opacity: 0.5;;
}

.chat .foot .footText:focus {
    /*padding: calc(1rem - 1px) calc(10rem + 31px) calc(1rem - 2px) 31px;*/
}

/******************** .chat.rubriques ********************/

.chat.rubriques > div {
    line-height: 3rem;
    padding: 1rem 1rem 1rem 0;
    cursor: pointer;
}

.chat.rubriques > div:nth-child(even) {
    background-color: #F3F3F3;
}

.chat.rubriques > div [class*=fa-] {
    line-height: 3rem;
    height: 3rem;
}
