﻿html, body {
    font-size: 15px;
    font-family: montserrat-regular;
}

td, p, a {
    font-size: 15px;
    font-family: montserrat-regular;
}

h4 {
    margin: 20px 0;
    font-size: 110%;
    color: #273691;
}

main {
    padding-top: 80px;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: 310px 1fr;
    grid-template-rows: auto;
    gap: 0;
    grid-template-areas:
        'aside content'
        'footer footer';
}

main.fullheight {
    grid-template-rows: calc(100vh - 80px) auto;
}

#main-aside {
    grid-area: aside;
    padding-bottom: 80px;
    min-height: 680px !important;
    background-color: #fff;
}

#main-aside ul {
    margin-top: 20px;
}

#main-content {
    grid-area: content;
    margin: 40px auto;
    width: 100%;
    max-width: 1024px;
    min-height: 400px;
    position: relative;
}

main.fullheight #main-content {
    margin: 10px auto 0;
    height: calc(100vh - 80px);
}

main.medium #main-content {
    width: 70%;
}

#main-footer {
    grid-area: footer;
    padding: 30px;
    width: 100%;
    background-color: #fff;
}

#menu-tenants ul li {
    display: block;
    padding: 5px 10px;
}

#menu-tenants ul li a {
    padding: 0;
    font-size: 15px;
    font-size: 18px;
    font-family: montserrat-medium;
}

#menu-tenants .svg {
    display: inline-block;
    width: 45px;
    height: 45px;
}

.dashbloc {
    margin-bottom: 30px;
    border-radius: 20px;
    text-align: center;
    background-color: #fff;
    box-shadow: 3px 3px 0 rgb(0, 0, 0, .3);
    
}

.dashbloc.large .header h2 {
    display: inline-block;
    margin-bottom: 0;
    font-size: 24px;
    vertical-align: middle;
    line-height: 1.3;
}

.dashbloc.large .header h2 i {
    display: inline-block;
    margin: 0 20px 0 0;
    vertical-align: top;
}

p.dashboard-balance {
    display: inline-block;
    margin-top: 15px;
    vertical-align: middle;
}

p.dashboard-balance span {
    display: inline-block;
    margin-left: 15px;
    vertical-align: middle;
    font-size: 30px;
    font-weight: bold;
}

p.dashboard-balance span.positive, td span.positive {
    color: #097214;
    font-weight: bold;
}

p.dashboard-balance span.negative, td span.negative {
    color: #7e1136;
    font-weight: bold;
}

.pagebloc {
    padding: 40px !important;
    margin-bottom: 30px;
    border-radius: 20px;
    text-align: left;
    background-color: #fff;
    box-shadow: 3px 3px 0 rgb(0, 0, 0, .3);
}

.pagebloc.search {
    margin: 0 auto 30px;
    max-width: 480px;
}

.pagebloc.print {
    margin: 0 auto 30px;
    max-width: 580px;
}

.pagebloc.search div, .pagebloc.print div {
    margin-bottom: 0;
}

.pagebloc.search label, .pagebloc.print label {
    display: block;
    margin-bottom: 5px;
    height: 35px;
    font-weight: bold;
}

.pagebloc.search button, .pagebloc.print button {
    padding: 0;
    margin: 40px 0 0 0;
    width: 2.43rem;
    height: 2.43rem;
    border-radius: 7px;
    background-image: url('../Shared/Images/Icons/search-white.svg');
    background-size: 50% 50%;
    background-position: center center;
    background-repeat: no-repeat;
    cursor: pointer;
}

.pagebloc.print button.view {
    background-image: url('../Shared/Images/Icons/view-white.svg');
}

.pagebloc.print button.download {
    background-image: url('../Shared/Images/Icons/download-white.svg');
}


.pagebloc.search input[type=number] {
    width: 100px;
}

/*
.pagebloc.search input[type=number] {
    position: relative;
    padding: 5px;
    padding-right: 25px;
}

.pagebloc.search input[type=number]::-webkit-inner-spin-button,
.pagebloc.search input[type=number]::-webkit-outer-spin-button {
    opacity: 1;
}

.pagebloc.search input[type=number]::-webkit-outer-spin-button,
.pagebloc.search input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: inner-spin-button !important;
    width: 25px;
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
}
*/
.pagebloc .header h2 {
    display: inline-block !important;
    min-height: 44px;
    font-size: 1.8em;
    vertical-align: middle;
}

.pagebloc .header h2 i {
    margin: 0 20px 0 0;
}

.pagebloc .tickets-subject .header {
    margin-bottom: 15px !important;
    height: 48px;
    clear: both;
}

.pagebloc .tickets-subject .header div {
    margin-right: 16px;
    float: left;
}

.pagebloc .tickets-subject .header h2 {
    padding-top: 30px !important;
    font-size: 20px;
    line-height: 0;
}

.pagebloc .tickets-subject .custom-select.white {
    margin-bottom: 15px;
    width: 100%;
}

.pagebloc .tickets-subject .custom-select.margin-bottom {
    margin-bottom: 25px;
}

.pagebloc .tickets-subject .custom-select.white .select-items {
    top: 80%;
}

.pagebloc .tickets-subject input[type="date"].white {
    width: auto;
    color: #273691;
    background-color: #fff;
    border-color: #fff;
    box-shadow: none;
    font-style: normal;
}
.pagebloc .tickets-subject input[type="date"].white.margin-bottom {
    margin-bottom: 25px;
}

.pagepreview {
    max-width: 350px;
}

tbody {
    background-color: #fff;
}

thead {
    border: none;
}

main table.list th {
    background-color: #fff;
    text-align: left;
}

main table.list tr {
    border: none;
    height: 46px;
}

main table.list tr {
    background-color: #fff;
}

main table.list tr:nth-child(odd) td {
    background-color: #fff;
    color: #000;
}

main table.list tr:nth-child(even) td {
    background-color: #f1f1f1;
    color: #000;
}

main table.list tr.empty-header {
    height: 10px;
}
/*
main table.list tr.link:hover td {
    background-color: #273691 !important;
    color: #fff;
    cursor: pointer;
}
*/
main table.list th:first-child, main table.list td:first-child {
    border-radius: 23px 0 0 23px !important;
}

main table.list th:last-child, main table.list td:last-child {
    border-radius: 0 23px 23px 0 !important;
}

main table.list th:first-child:last-child, main table.list td:first-child:last-child {
    border-radius: 23px !important;
}

main table.list tr td img.icons {
    max-height: 18px;
}

main table.list tr td.view-doc {
    min-width: 92px;
}

#main footer div.grid-container {
    max-width: 100rem;
}

#main footer h3 {
    font-family: montserrat-bold;
    font-size: 1em;
}

#main footer div {
    text-align: center;
}

#main div p, #main div a {
    font-size: 15px;
}

#main div a {
    text-decoration: underline;
}

#main div tr {
    text-align: left;
}

#main div tr td a {
    text-decoration: none;
    font-size: inherit;
    color: #000;
}

#main div.social {
    text-align: right;
}

#main div.social a img {
    margin-left: 10px;
    width: 24px;
    height: 24px;
}

/*--------------------------------
	Tickets add
---------------------------------*/

#ticket-subject {
    display: none;
}

/*--------------------------------
	Tickets list
---------------------------------*/
.tickets-container {
    display: grid;
    grid-template-columns: 33% 5px calc(66% - 5px);
    grid-template-rows: auto;
    gap: 0;
    grid-template-areas:
        'tickets-subject tickets-gap tickets-messages';
    position: absolute;
    top: 10px;
    bottom: 0;
    left: 10px;
    right: 10px;
    width: calc(100% - 20px);
    max-width: 1024px;
    overflow: hidden;
}

.tickets-container.pagebloc {
    padding: 0 !important;
}

.tickets-container .tickets-subject {
    grid-area: tickets-subject;
    position: absolute;
    top: 0;
    bottom: 0;
    padding: 30px 20px;
    width: 100%;
    overflow-y: scroll;
    scrollbar-color: #273691;
    background-color: #fff;
}

.tickets-container .tickets-gap {
    grid-area: tickets-gap;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    background-color: #eaecf5;
}

.tickets-container .tickets-subject::-webkit-scrollbar {
    /*
--scroll-size: 12px;
--scroll-radius: 20px;
--scroll-track: rgb(0 0 0 / 40%);
--scroll-thumb: linear-gradient( rgb(255 255 255 / 30%) 20%, transparent 20%, transparent 40%, rgb(255 255 255 / 30%) 40%, rgb(255 255 255 / 30%) 60%, transparent 60%, transparent 80%, rgb(255 255 255 / 30%) 80%);
--scroll-thumb-color: #273691;
*/
    scrollbar-color: #273691;
}

.tickets-container .tickets-list {
    grid-area: tickets-messages-list;
    padding: 20px;
    margin-bottom: 10px;
    border-radius: 40px;
}

.tickets-container .tickets-list h3, .tickets-messages header h3 {
    padding: 0;
    margin: 0;
    font-size: 15px;
}

.tickets-container .tickets-list p {
    margin: 0;
    color: #444;
}

.tickets-container .tickets-list:nth-child(even) {
    background-color: #f1f1f1;
}

.tickets-container .tickets-list:nth-child(odd) {
    background-color: #fff;
}

.tickets-container .tickets-list.active, .tickets-container .tickets-list:hover {
    color: #fff;
    background-color: #273691;
    cursor: pointer;
}

.tickets-container .tickets-list.active p, .tickets-container .tickets-list:hover p {
    color: #fff;
}

/*--------------------------------
	Tickets preview
---------------------------------*/
.tickets-container.pagepreview {
    grid-template-columns: 0 0 100%;
    grid-template-rows: auto;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
}

.tickets-container.pagepreview .tickets-messages {
    padding: 0;
}

.tickets-container.pagepreview .tickets-messages.grid {
    grid-template-rows: max-content auto max-content;
}

.tickets-container.pagepreview .tickets-messages header {
    display: block;
    padding: 0;
    line-height: 0.9;
}

.tickets-container.pagepreview .tickets-messages header .button {
    display: none;
}

.tickets-container.pagepreview .tickets-messages header .subject {
    padding: 10px;
    width: calc(100% - 20px);
}

.tickets-container.pagepreview .tickets-messages header h3 {
    line-height: 0.9;
}

.tickets-container.pagepreview .tickets-messages header p {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
}


/*--------------------------------
	Tickets Followup
---------------------------------*/
.tickets-container .tickets-messages {
    grid-area: tickets-messages;
    position: absolute;
    top: 0;
    bottom: 0;
    padding: 15px 0 0 0;
    width: 100%;
    background-color: #fff;
}

.tickets-container .tickets-messages.grid {
    display: grid;
    grid-template-columns: 100%;
    grid-template-rows: 0 auto 155px;
    gap: 0;
    grid-template-areas:
        'tickets-messages-header'
        'tickets-message-grid'
        'tickets-messages-footer';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: 1024px;
    overflow: hidden;
}

.tickets-container .tickets-messages.grid.closed {
    grid-template-rows: 0 auto 70px;
}

.tickets-container .tickets-messages.grid.attachment {
    grid-template-rows: auto auto 360px;
}

.tickets-container .tickets-messages header {
    grid-area: tickets-messages-header;
    display: none;
    padding: 20px;
    color: #fff;
    background-color: #273691;
    z-index: 1000;
}

div.tickets-message-grid {
    grid-area: tickets-message-grid;
    overflow-x: hidden;
    overflow-y: auto;
}

div.tickets-message-list {
    padding-top: 0 !important;
    padding-right: .8rem;
    padding-left: .8rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 74rem;
    /*height: fit-content;*/
    border: none;
    border-radius: 1.5rem;
    overflow: hidden;
}

@media print,screen and (min-width:40em) {
    div.tickets-message-list {
        padding-right: 1rem;
        padding-left: 1rem
    }
}

div.tickets-message-list .tickets-message {
    clear: both;
}

div.tickets-message-list div.title {
    position: relative;
    display: block;
    margin: 30px auto;
    width: 270px;
    height: 70px;
}

div.tickets-message-list div.title h1 {
    display: block;
    position: relative;
    padding-top: 0;
    padding-left: 70px;
    margin-bottom: 20px;
    margin-right: 20px;
    font-family: montserrat-bold;
    font-size: 25px;
    font-weight: bold;
    font-style: normal;
    color: #000;
    border-radius: 25px;
    border-color: #eaecf5;
    background-color: #eaecf5 !important;
}

div.tickets-message-list div.title img {
    position: relative;
    display: block;
    margin-top: -70px;
    margin-left: 15px;
    height: 64px;
}

div.tickets-message-list h2 {
    margin-left: 15px;
    font-family: montserrat;
    font-size: 14px;
    font-weight: bold;
    color: #273691;
}

div.tickets-message-list .tenant h2 {
    font-family: montserrat;
    font-size: 14px;
    font-weight: bold;
    color: #273691;
    text-align: right;
}

div.tickets-message-list i.notify::after {
    content: '';
    display: inline-block;
    position: relative;
    top: 2px;
    padding: 0;
    margin-right: 5px;
    width: 16px;
    height: 16px;
    border-radius: 12px;
    background-color: #7e1136 !important;
}

div.tickets-message-list div.message-header {
    padding: 10px;
    width: 100%;
    font-weight: bold;
    color: #000;
    background-color: #f1f1f1;
    border-radius: 0 10px 0 0;
}

div.tickets-message-list div.message-header p {
    margin-bottom: 0;
    color: #000;
}

div.tickets-message-list .tickets-message {
    display: grid;
    grid-template-columns: 100% 0;
}

div.tickets-message-list .tickets-message.tenant.context-menu {
    display: grid;
    grid-template-columns: calc(100% - 60px) 60px;
}

div.tickets-message-list .tickets-message .bloc-delete {
    display: none;
    padding: 15px;
    margin-left: 10px;
}

div.tickets-message-list .tickets-message .bloc-delete i {
    cursor: pointer;
}

div.tickets-message-list .tickets-message.tenant.context-menu .bloc-delete {
    display: block;
}

div.tickets-message-list div.message {
    padding: 20px;
    width: 80%;
    border-radius: 25px;
    font-weight: bold;
    color: #000;
    background-color: #f1f1f1;
}

div.tickets-message-list .tenant div.message {
    padding: 0;
    background-color: #fff;
    font-weight: normal;
    text-align: right;
    float: right;
}

div.tickets-message-list div.message h3 {
    font-size: 110%;
    font-weight: bold;
    color: #000;
}

div.tickets-message-list div.message p {
    font-weight: normal;
    color: #000;
}

div.tickets-message-list div.message.notify p {
    font-weight: bold;
}

div.tickets-message-list div.message p.file {
    padding: 8px;
    border-radius: 8px;
    background-color: #fff;
    color: #000;
    width: fit-content;
}

div.tickets-message-list div.message p.file img.icons {
    max-height: 18px;
}

div.tickets-message-list .tenant div.message p.file {
    width: auto;
}

div.tickets-message-list div.message p.file span {
    display: inline-block;
    margin-right: 8px;
}

#tickets-response-grid {
    grid-area: tickets-messages-footer;
    display: inline-block;
    position: relative;
    padding: 15px 15px 0 15px;
    margin: 10px 0 10px 10px;
    height: 130px;
    font-size: 100%;
    color: #273691;
    border-radius: 25px;
    border-color: #eaecf5;
    background-color: #eaecf5 !important;
    clear: both;
}

#tickets-response-grid.closed {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    height: 50px;
    border-color: #f44336;
    background-color: #f44336 !important;
}

#tickets-response-grid.preview {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: #fff;
    height: 50px;
    border-color: #fff;
    background-color: #fff !important;
}

#tickets-response-grid.preview img {
    height: 24px;
    float: right;
}

#tickets-response-grid.add {
    margin: 0;
}

#tickets-response-grid.attachment {
    height: 340px;
}

#tickets-response-grid textarea {
    display: block;
    position: relative;
    padding: 0;
    margin-bottom: 2px;
    width: 100%;
    min-height: 75px;
    height: 75px;
    font-size: 100%;
    font-style: normal;
    font-weight: bold;
    color: #000;
    border: none !important;
    border-radius: 0 !important;
    border-style: none;
    border-color: Transparent;
    box-shadow: none;
    background-color: transparent !important;
    resize: none;
}

#tickets-response-grid button {
    padding: 0;
    margin: 0;
    height: 30px;
    color: #000;
    font-weight: normal;
    background: none;
    cursor: pointer;
    vertical-align: middle;
}

#tickets-response-grid button.clip {
    margin: 0;
    float: left;
}

#tickets-response-grid button.right {
    margin: 0;
    float: right;
}

#tickets-response-grid button i {
    margin-right: 5px;
}

#tickets-response-grid button span {
    display: inline-block;
    height: 30px;
    vertical-align: middle;
}


/*--------------------------------
	Tickets Followup attachment
---------------------------------*/
/*
.ticket-attachment-lightbox {
    display: none;
    position: fixed;
    padding: 25px;
    top: 70px;
    left: calc(50% - 300px);
    right: auto;
    width: 600px;
    border-radius: 30px;
    background-color: #fff;
    z-index: 10000;
}
*/
#ticket-attachment {
    display: none;
    padding: 10px;
    height: 195px;
    background-color: #fff !important;
    overflow: scroll;
}

#lightbox {
    display: none;
}

table.list tr.link.notify td:first-child::before {
    content: '';
    display: inline-block;
    position: relative;
    top: 2px;
    left: 2px;
    padding: 0;
    margin-right: 10px;
    width: 16px;
    height: 16px;
    border-radius: 12px;
    background-color: #7e1136 !important;
    /*background-image: url('/Assets/Shared/Images/Icons/notify.svg');*/
}

#documents-justificative {
    display: none;
}

div.lightbox-docs table.list th {
    background-color: #fff;
    text-align: left;
}

div.lightbox-docs table.list tr {
    border: none;
    height: 46px;
}

div.lightbox-docs table.list tr {
    background-color: #fff;
}

div.lightbox-docs table.list tr:nth-child(odd) td {
    background-color: #fff;
    color: #000;
}

div.lightbox-docs table.list tr:nth-child(even) td {
    background-color: #f1f1f1;
    color: #000;
}

div.lightbox-docs table.list tr.empty-header {
    height: 10px;
}

div.lightbox-docs table.list th:first-child, main table.list td:first-child {
    border-radius: 23px 0 0 23px !important;
}

div.lightbox-docs table.list th:last-child, main table.list td:last-child {
    border-radius: 0 23px 23px 0 !important;
}

div.lightbox-docs table.list th:first-child:last-child, main table.list td:first-child:last-child {
    border-radius: 23px !important;
}

div.lightbox-docs table.list tr td img.icons {
    max-height: 18px !important;
}

div.lightbox-docs table.list tr td.view-doc {
    min-width: 92px;
}

