.recipients {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    gap: 5px;
    padding: 0 20px;
}

.pill {
    border: 1px solid var(--color-button-border);
    border-radius: 15px;
    padding: 5px 6px 5px 10px;
    display: flex;
    gap: 5px;
    align-items: center;
    color: var(--color-font);
}

.pill i {
    font-size: 1.2em;
    padding: 1px 5px;
    border-radius: 50%;
}

.pill i:hover {
    background-color: grey;
}

.hr {
    border-style: inset;
    border-width: 1px;
}


.chat {
    padding: 20px 10px 20px 20px;
}

.chat-container {
    max-height: 80vh;
    padding: 20px 10px 35px 0;
    overflow-y: scroll;
}

.comment {
    gap: 50px;
    display: grid;
    grid-template-columns: max-content 1fr;
}

.comment .arrow {
    width: 25px;
    height: 25px;
    top: 24px;
    position: absolute;
    transform: rotate(45deg);
    background-color: white;
    border-top: 1px solid black;
    border-right: 1px solid black;
}

.comment-addressee .arrow{
    left: -14px;
    transform: rotate(-135deg);
}

.comment-addresser .arrow{
    right: -14px;
}

.comment > * {
    grid-row: 1 / span 1;
}

.comment .user {
    font-size: 54px;
}

.comment .user i {
    margin-top: 10px;
    display: inline-block;
}

.comment .date {
    position: absolute;
    top: calc(100% + 1px);
    font-size: 12px;
}

.comment-addressee .date {
    left: 5px;
}

.comment-addresser .date {
    right: 20px;
}

.comment .content {
    width: 100%;
    border: 1px solid black;
    border-radius: 15px;
    padding: 20px;
    position: relative;
}

.comment .attachment {
    margin-top: 10px;
    display: inline-block;
}

.comment .attachment:hover {
    cursor: pointer;
    text-decoration: underline;
}

.comment-addressee {
}

.comment-addresser {
    grid-template-columns: 1fr max-content;
}

.comment-addresser .content {
    grid-column: 1 / span 1;
}

.comment .files {
    gap: 20px;
    display: grid;
    margin-top: 30px;
    grid-template-columns: repeat(5 ,1fr);
}

.comment:has(.files) .content {
    padding-bottom: 10px;
}

.comment .files :is(img, i) {
    cursor: pointer;
}

.comment .files i {
    font-size: 48px;
    margin: auto;
}

.comment + *,
.system-comment + .comment {
    margin-top: 35px;
}

.system-comment + .system-comment {
    margin-top: 10px;
}

.system-comment {
    color: white;
    font-weight: 700;
    background-color: blue;
    border-radius: 15px;
    padding-block: 10px;
    text-align: center;
}

.system-comment-success {
    background-color: green;
}

.system-comment-rejected {
    color: white;
    background-color: black;
}

.system-comment-danger {
    background-color: red;
}

.user-notifications {
    position: absolute;
    top: calc(100% + 10px);
    right: 0px;
    background-color: var(--color-body-background);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 5px;
    min-width: 120px;
    display: none;
    z-index: 10;
    width: 300px;
    max-height: 225px;
    overflow-y: scroll;
}

#user-notifications:checked + .user-notifications {
    display: block;
}

.user-notifications .user-notification {

}

label[for="user-notifications"] {
    position: relative;
    margin-left: 5px;
}

label[for="user-notifications"] .user-notifications-count {
    position: absolute;
    top: -5px;
    left: -3px;
    background-color: gold;
    border-radius: 3px;
    padding: 1px 3px;
    font-size: 8px;
}

.company {
    display: grid;
    gap: 50px;
    grid-template-columns: 300px 1fr;
}

.company .activity {
    min-width: 400px;
    width: max-content;
    border: 1px solid var(--color-button-border);
    background-color: var(--color-table-background);
    padding: 20px;
}

.company .activity table {
    box-shadow: none;
    margin: 10px 0;
}

.button[disabled] {
    cursor: not-allowed;
}

.invoice-summary {
    display: grid;
    margin: 15px 0 50px 0;
    gap: 100px;
    grid-template-columns: max-content 1fr;
}

.invoice-summary b {
    font-size: 17px;
    display: inline-block;
    margin-bottom: 5px;
}

.js-createInvoice {
    height: 100%;
}

.center {
    margin: auto;
}

.js-chat-lightbox {
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000000;
    display: none;
    padding: 50px 70px;
    position: fixed;
    justify-content: center;
    align-items: center;
    background-color: rgb(255,255,255);
}

.js-chat-lightbox i {
    font-size: 34px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.js-chat-lightbox.active {
    display: flex;
}

.js-chat-lightbox img,
.js-chat-lightbox embed {
    display: none;
}
.js-chat-lightbox embed {
    width: 100%;
    height: 100%;
    background-color: #c9c9c9;
}

.js-chat-lightbox .active {
    display: block;
}

.js-files-preview {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(5, 1fr);
}

.invoice-table .input-cell {
    width: 185px;
}