﻿/* -------------------------------------- */
/*           Common button styling        */
/* -------------------------------------- */

header, main, footer {
    margin-left: 55px;
}

.main-layout {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
}


html {
    overflow-y: scroll;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

h1, h2, h3 { 
    margin: 0; 
}

h1 {
    font-size: 1.8rem;
}

table {
    border-spacing: 0 0;
    border-collapse: collapse;
}

.hidden {
    display: none;
}

.button {
    display: block;
    border: 1px solid #0c459b;
    border-radius: .5rem;
    padding: .5rem 1rem;
    background: #ebf3ff;
    cursor: pointer;
    text-decoration: none;
    color: black;
    font-size: 1.2rem;
    user-select: none;
}

.button:not(.button-micro):active {
    box-shadow: 1px 1px 1px 1.5px #656565 inset;
    padding-top: .6rem;
    padding-bottom: .4rem;
}

.button-micro:active {
    box-shadow: 1px 1px 1px 1.5px #656565 inset;
    padding-top: .3rem;
    padding-bottom: .1rem;
}

.button:hover {
    background: white;
}

.green-button {
    background: #28a745;
    color: white;
    border: none;
}

.green-button:hover {
    background: #1e7e34;
}

.button-micro {
    padding: .2rem .5rem;
    font-size: .8rem;
}

.dx-row-focused .button-micro {
    color: black !important;
}

.dx-datagrid-rowsview .dx-row-focused.dx-data-row .dx-command-edit .dx-link:focus {
    background-color: transparent !important;
}

input[type="text"], input[type="file"], input[type="password"], input[type="date"], input[type="number"], input[type="datetime-local"], input[type="color"], select, textarea 
{
    border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
    padding: 4px 8px;
    font-size: 1.2rem;
    border: 1px solid #9AC4E8;
    width: 400px;
    -ms-box-sizing: content-box;
    -moz-box-sizing: content-box;
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    height: 22px;
}

input[type="text"][readonly], input[type="password"][readonly], input[type="date"][readonly], input[type="number"][readonly], input[type="datetime-local"][readonly], select[readonly], textarea[readonly] {
    background: #ebf3ff;
    cursor: help;
}

.href-inline {
    color: #008db9;
}

.input-flex-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}
 
/* -------------------------------------- */
/*           Header blocks styling        */
/* -------------------------------------- */
.atpai-header {
    background: #cae8ff;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    height: 55px;
    padding-left: .7rem;
    padding-right: .4rem;
}

.logotype-container {
    width: 285px;
}

.user-credentials-container-and-bridges-stats {
    width: 350px;
}

.header-admin-bridges-stats {
    width: 175px;
    border-radius: .5rem; 
    margin-right: 1.2rem;
    background: #84caff;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.bridge-app-stat-cell {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: .4rem;
    padding-left: 0;
    padding-right: 0;
}

.central-stat-cell {
    border-right: 1px solid #649ec9;
    border-left: 1px solid #649ec9;
    padding-left: .5rem;
    margin-right: .5rem;
}

.bridge-app-activity-cell {
    margin-left: .5rem;
    margin-right: .5rem;
}

.bridge-app-activity-cell [data-role="offline"] {
    width: 15px;
    height: 15px;
    background: #f74747;
    display: block;
    border-radius: .5rem;
    cursor: help;
}

.bridge-app-activity-cell [data-role="online"] {
    width: 15px;
    height: 15px;
    background: #1c991c;
    display: block;
    border-radius: .5rem;
    cursor: help;
}

.bridge-app-activity-cell [data-role="pending"] {
    width: 15px;
    height: 15px;
    background: #f3f3f3;
    display: block;
    border-radius: .5rem;
    cursor: help;
}

.bridges-app-info-icon-cell {
    cursor: pointer;
    color: #0d5e7b; 
}

.offline-label {
    color: red;
    font-weight: bold;
}

.online-label {
    color: #379b37;
    font-weight: bold;
}

.bridges-current-data {
    margin-top: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.bridge-item-data {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #7d7d7d;
    padding-bottom: 1rem;
}

.bridge-item-data-last {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.logotype-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
}

.company-account-logotype.logotype-container a {
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
}

.app-version {
    color: #436e9b;
    font-size: .8rem;
    display: flex;
    position: absolute;
    top: 9px;
    left: calc(53px + 55px);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

.app-version i {
    margin-left: .2rem;
}

.user-credentials-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
}

.proposal-document-sections-navigator {
    width: 250px;
    position: fixed;
    left: 55px;
    top: 0;
    height: 100%;
    background: #addce7;
}

.proposal-document-sections-navigator--label {
    height: 54px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding-left: 1rem;
    font-size: 1.2rem;
    border-bottom: 1px solid #72bacb;
}

.proposal-document-sections-navigator--label i {
    margin-right: .6rem;
}

.section-name-preview {
    font-size: 1.2rem;
    color: #333;
    margin-top: 1rem;
}

.section-navigation-row {
    cursor: pointer;
    padding-left: 1rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background: #ebf3ff;
    margin: 1rem;
    user-select: none;
}

.section-navigation-row.selected-section-nav {
    box-shadow: 0px 1px 3px #000;
    background: #7dd4ff;
    font-weight: bold;
}

.section-navigation-row .section-pages-count {
    float: right;
    margin-right: .5rem;
    color: #676767;
}

.user-credentials-container.proposal-doc-section-opened {
    margin-right: 200px;
}

.header-atpaicrm-link {
    font-size: 1.8rem;
    color: white !important;
    margin-right: 1.2rem;
}

#usernamerole {
    color: white;
    text-decoration: none;
    padding: 0.2rem 0.7rem 0.2rem 0.25rem;
    margin-right: .2rem;
    border-radius: 2rem;
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    font-family: sans-serif;
    background-color: #28a745;
}

#usernamerole:hover {
    background-color: #1e7e34;
}

.user-no-avatar-yet-account-button-circle {
    width: 25px;
    height: 25px;
    color: #035796;
    display: block; 
    color: white;
    margin-top: 1px;
    border-radius: 50%;
    font-size: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: .2rem;
}

#header-atpaicrm-link {
    color: #373737 !important;
}

.atpai-left-bar {
    width: 55px;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background: #002e5d;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items:stretch;
}

.left-bar-menu-item {
    height: 55px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    color: white;
    position: relative;
}

#left-menu-admin-label {
    padding-top: 5px;
    padding-bottom: 5px;
    height: 20px;
    text-align: center;
    font-size: 12px;
    color: #77f04a;
    background: #1a4d81;
    border-top: 2px solid #256fba;
    border-bottom: 2px solid #256fba;
    cursor: default !important;
}

#left-menu-users,
#left-menu-api,
#left-menu-beta-testers,
#left-menu-saas-admin {
    color: #77f04a;
}

.left-bar-menu-item.active,
#left-menu-users.active,
#left-menu-api.active {
    color: #00f1ff;
}

.left-menu-current-section-triangle {
    display: none;
    width: 1px;
    height: 55px;
    position: absolute;
    right: 0;
    top: -25px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
}

.left-bar-menu-item.active .left-menu-current-section-triangle,
#left-menu-users.active .left-menu-current-section-triangle,
#left-menu-api.active .left-menu-current-section-triangle {
    display: flex;
}

.left-menu-current-section-triangle > span {
    display: block;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 7px solid white;
}

#left-menu-dashboard .left-menu-current-section-triangle > span {
    border-right: 7px solid #cae8ff !important;
}

#left-menu-content-library .left-menu-current-section-triangle > span {
    border-right: 7px solid #ebf3ff !important;
}

.left-bar-menu-item:not(#left-menu-admin-label):hover {
    background: #1a4d81;
}

.faq-quick-link-block {
    margin-left: auto;
    margin-right: 1rem;
    color: #0b78a3;
}

.faq-inner-text-link {
    color: #0f95bf !important;
}

/* -------------------------------------- */
/*                Action tabs             */
/* -------------------------------------- */
.action-tabs {
    border-bottom: 1px solid #4698b5;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
}

.action-tab {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center; 
}

.action-tab {
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    width: 9rem;
    height: 2rem;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
    opacity: .4;
    cursor: pointer;
    user-select: none;
}

.action-tab:hover {
    background: #ebf3ff;
}

.action-tab.active {
    position: relative;
    top: 1px;
    border-left: 1px solid #4698b5;
    border-top: 1px solid #4698b5;
    border-right: 1px solid #4698b5;
    background: white;
    opacity: 1;
    box-shadow: 1px -2px 2px #cbcbcb;
}

.action-tab .img {
    font-size: 1.3rem;
    margin-right: .5rem;
}

.action-tab .name {
    font-size: 1.1rem;
}

.action-tab .desc {
    font-size: .8rem;   
}

.tab-name-and-desc {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

/* -------------------------------------- */
/* Loader (Overlay with "Loading..." text */
/* -------------------------------------- */
.wait-loader {
    top: 0;
    left: 0;
    position: fixed;
    z-index: 15533;
}

.wait-loader .overlay,
.atpai-modal .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: .9;
    z-index: 1531;
}

.wait-loader .loader-text,
.atpai-modal .modal-text {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1532;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.wait-loader .loader-text .loader-text-row {
    font-size: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.atpai-modal .modal-text .modal-text-row {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
    text-align: center;
}

.wait-loader .loader-text .loader-text-row .loader-icon {
    margin-right: .7rem;
}

.wait-loader .loader-text .loader-text-row .loader-sublabel {
    margin-top: 1rem;
    font-size: 1.2rem;
    text-align: center;
}

.other-survman-entry-editing-now-modal .button,
.other-fieldman-entry-editing-now-modal .button {
    margin-top: 1rem;
}

.modal-simple-text {
    font-size: 1.2rem;
    margin-top: .5rem;
    text-align: center;
}

.qbo-sync-wait-loader .overlay {
    background: #eafff3;
}

.pqb-sync-heading-icons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.pqb-sync-heading-icons > div {
    margin-left: .5rem;
    margin-right: .5rem;
    font-size: 4rem;
}

.pqbo-sync-center-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.qbo-sync-proposal-icon {
    color: #00507c;
}

.qbo-sync-quickbookb-icon {
    color: #28a745;
}

.pqbo-sync-center-block > div {
    height: 35px;
}

.pqbo-sync-center-block,
.pqbo-sync-center-block i {
    font-size: 1.8rem !important;
    color: #575757;
}

/* ------------------------*/
/*         Pagination      */
/* ----------------------- */
[data-role="page-lister-outer-holder"] {
    width: 100%;
}

.ta_right {
    text-align: right;
}

div[data-role='pagination'] {
    background: #f1f7ff;
    padding: 3px;
}

div[data-role='pagination'] select {
    width: 220px;
    padding: 2px 6px;
    font-size: 1rem;
    margin-top: 2px;
    margin-bottom: 2px;
    border-radius: 5px !important;
}

div[data-role='pagination'] .pager-left-label {
    width: 62px;
    font-size: 1rem;
    color: #535353;
    font-weight: bold;
    text-align: center;
}

div[data-role='pagination'] div[data-role='pager'] {
    display: block;
    margin-left: 2px;
    margin-right: 2px;
    padding: 1px 5px;
    color: #1D7BC9;
    text-decoration: none;
    text-shadow: 0 1px 0 #E2E2E2;
    cursor: pointer;
    font-size: 18px;
    font-family: Arial;
    text-decoration: none;
    border: 1px solid #9AC4E8;
    border-radius: 5px;
    background: white;
    height: 21px;
}

div[data-role='pagination'] div[data-role='pager']:hover {
    background: #dae9ff;
    box-shadow: 0px 1px 1px #000000;
}

div[data-role='pagination'] div[data-role='pager'][data-activepage='yes'] {
    
    /*
    color: red !important;
    border: 1px solid #DCA5A5;
    box-shadow: 0 1px 2px #4f4f4f inset;
    text-shadow: 0 1px #ffffff;
    */

    color: red !important;
    border: 1px solid #d37d7d;
    box-shadow: 0 1px 2px #9d0e0e inset;
    text-shadow: 0 1px #ffffff;
    padding-top: 3px; 
    height: 19px;

}

div[data-role='pagination'] div[data-role='pager'][data-activepage='yes']:hover {
    background: #ffe4e4;
}

.page-lister-items-per-page {
    width: 200px; 
}

.pager-right-area {
   
}

.pager-right-area > div {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

[data-role='page-lister-outer-holder'] [data-role='refresh-items'] {
    cursor: pointer;
    margin-right: .5rem;
    font-size: 1.2rem;
    color: #1D7BC9;
}

/* Heading block (Header of each section) */

.section-heading-titles {
    padding-left: 1rem;
    margin-bottom: 1rem;
    height: 55px;
    background: #ebf3ff;
    width: calc(100% - 1rem);
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    font-size: 1.4rem;
}

.section-heading-titles h1,
.section-heading-titles h2 {
    font-size: 1.4rem;
    margin-right: .5rem;
    font-weight: bold;
}

.section-heading-titles div {
    color: #898989;
}

/* Heading block top right area ("Create new *" button + "Only my items checkbox") */

.top-right-actions-block {
    margin-left: auto;
}

.top-right-actions-block > div {
    
}

.view-only-my-data-checkbox {
text-align: right;
margin-top: .5rem;
margin-right: .2rem;
user-select: none;
font-size: 1.1rem;
}

.view-only-my-data-checkbox input {
    position: relative;
    top: 2px;
    padding: 3px;
    height: 16px;
    width: 16px;
}

/**
    Production tables
*/

.ateam-pick-std-group-from-the-db-modal-content {
    width: 600px;
}

.std-pt-pick-group-from-db-mng-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.std-production-table-editor-content .invoice-group .group-items .group-item {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding: .4rem;
    height: 22px;
    background: #ebf3ff;
    border-bottom: 1px solid #898989;
}

.std-production-table-editor-content .invoice-group .group-items .group-subheader {
    font-weight: bold;
    background: #cdcdcd;
}

.std-production-table-editor-content .invoice-group .group-items .group-item:not(.group-subheader):hover {
    background: #c1daff;
}

.std-production-table-editor-content .invoice-group .group-items .group-item div {
    margin-right: .5rem;
}

.std-production-table-editor-content .invoice-group .group-items .group-item .group-item-drag-handler {
    width: 30px;
    text-align: center;
    margin-right: 0px;
    font-size: 1.2rem;
    color: #1269c5;
    cursor: grab;
}

.std-production-table-editor-content .invoice-group .group-drag-handler {
    font-size: 1.1rem;
    margin-left: 3px;
    cursor: grab;
}

.std-production-table-editor-content .invoice-group .group-items .group-item .item-name {
    width: 300px;
    margin-right: auto;
}

.std-production-table-editor-content .invoice-group .group-items .group-item .item-price,
.std-production-table-editor-content .invoice-group .group-items .group-item .item-count,
.std-production-table-editor-content .invoice-group .group-items .group-item .item-total {
    width: 90px;
    text-align: center;
}

.std-production-table-editor-content .invoice-group .group-items .group-item .item-drag {
    width: 25px;
}

.std-production-table-editor-content .invoice-group .group-items .group-item .item-count {
    width: 140px;
    margin-right: 0;
}

.std-production-table-editor-content .invoice-group .group-items .group-item .item-count-cell,
.std-production-table-editor-content .invoice-group .group-items .group-item .item-count-cell [data-role="count-action-plus"] {
    margin-right: 0;
}

.std-production-table-editor-content .invoice-group .group-items .group-item .item-remove {
    width: 20px;
    text-align: center;
    margin-right: 0px;
    font-size: 1.5rem;
    color: #1269c5;
    cursor: pointer;
}

.std-production-table-editor-content .invoice-group .group-items .group-item .item-price-input,
.std-production-table-editor-content .invoice-group .group-items .group-item .item-count-input,
.template-preview-price-input {
    width: 70px !important;
    height: 28px;
    font-size: .9rem !important;
    text-align: center !important;
    padding-right: .3rem !important;
    box-shadow: 0 2px 2px #1d1d1d inset;
    box-sizing: border-box;
    margin-top: 4px;
    margin-bottom: 4px;
}

.std-production-table-editor-content .invoice-group .group-items .group-item .item-count-cell {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.std-production-table-editor-content .invoice-group .group-items .group-item .item-count-cell [data-role="count-action-minus"],
.std-production-table-editor-content .invoice-group .group-items .group-item .item-count-cell [data-role="count-action-plus"] {
    cursor: pointer;
    font-size: 1.5rem;
    color: #1269c5;
}

.invoice-rendered-header {
    font-size: 1.2rem;
    margin-top: 1.2rem;
    font-weight: bold;
}

.std-production-table-editor-content .invoice-group {
    margin-top: 1rem;
    border-top: 10px solid #cfcfcf;
    user-select: none;
    width: 100%;
    box-sizing: border-box;
}

.std-production-table-editor-content .invoice-group.selected-group {
    box-shadow: 1px 2px 3px #494949;
    border-top: 10px solid #ff5b5b;
}

.std-production-table-editor-content .invoice-group.selected-group [data-role='select-group'] {
    display: none;
}

.std-production-table-editor-content .invoice-group .group-name {
    border-radius: 0 !important;
    background: #1269c5;
    border-bottom: 1px solid #003c69;
    min-height: 20px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.std-production-table-editor-content .invoice-group .group-description {
    border-radius: 0 !important;
    background: #1269c5;
    border-bottom: 1px solid #003c69;
}

.std-production-table-editor-content .invoice-group .group-text-cell {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.std-production-table-editor-content .invoice-group .group-code-cell {
    width: 230px;
    box-sizing: border-box;
}

.std-production-table-editor-content .group-text-cell .cell-label {
    width: 120px;
    text-align: left;
    padding-left: 10px;
    font-weight: bold;
    color: white;
    box-sizing: border-box;
}

.std-production-table-editor-content .invoice-group .group-name-cell {
    width: calc(100% - 200px - 150px - 40px);
    box-sizing: border-box;
}

.std-production-table-editor-content .invoice-group [data-role='group-name'],
.std-production-table-editor-content .invoice-group [data-role="group-code"],
.std-production-table-editor-content .invoice-group [data-role='group-description'] {
    font-weight: bold;
    border: none;
    outline: none;
    padding-top: 6px;
    box-sizing: border-box;
    height: 30px;
    margin-top: 4px;
    margin-bottom: 4px;
    border-radius: 5px;
    box-shadow: 0 2px 2px #1d1d1d inset;
}

.std-production-table-editor-content .invoice-group [data-role='group-name'] {
    width: calc(100% - 120px);
}

.std-production-table-editor-content .invoice-group [data-role="group-code"] {
    width: 105px;
    text-align: center;
}

.std-production-table-editor-content .invoice-group [data-role='group-description'] {
    width: calc(100% - 124px);
}

.std-production-table-editor-content .standard-production-table-group-heading-controls {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    padding-right: 5px;
    width: 150px;
    box-sizing: border-box;
}

.std-production-table-editor-content .invoice-group .group-control {
    padding-left: .5rem;
    padding-right: .1rem;
    width: 1rem;
    color: white;
    cursor: pointer;
}

    .std-production-table-editor-content .invoice-group .group-control i.fa-xmark {
        font-size: 1.5rem;
    }

    .std-production-table-editor-content .invoice-group .group-control .fa-right-left {
        position: relative;
        top: -1px;
    }

    .std-production-table-editor-content .invoice-group .group-control i.fa-file-lines {
        font-size: 1.1rem;
        position: relative;
        top: 0px;
    }

    .std-production-table-editor-content .invoice-group .group-control i.fa-up-long {
        font-size: 1rem;
    }

.std-production-table-editor-content .invoice-group [data-role="group-create-template"] {
    padding-left: .6rem;
}

    .std-production-table-editor-content .invoice-group [data-role="group-create-template"] i,
    .group-add-to-the-current-pt i {
        color: #70ff42 !important;
    }

.proposal-invoice-editor,
#pt-template-pricing-table-preview-block {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
}

#proposal-estimation-sections [data-role="append-to-production-table"] {
    display: none;
}
 
.invoice-editor-library[data-role="std-production-table-editor-library"],
.invoice-editor-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-bottom: 1.5rem;
}

.invoice-editor-content {
    padding-left: 1rem;
    margin-left: 1rem;
    border-left: 1px solid #d1d1d1;
}

.invoice-editor-library[data-role="std-production-table-editor-library"] {
    width: 430px;
    box-sizing: content-box;
}

.invoice-editor-content {
    width: calc(100% - 430px - 2rem);
    box-sizing: content-box;
}

    .invoice-editor-content.proposal-is-readonly {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }


/* ------------------------*/
/*  Other universal parts  */
/* ----------------------- */
.notification-read {
    opacity: .8;
    background: #dfdfdf;
    border-bottom: 1px solid #ccc !important;
}

.notification-critical-celllabel {
    color: red;
    font-weight: bold;
}

.notification-critical--unread {
    background: #ffcbcb;
}

.unread-critical-notification {
    color: red;
    cursor: help;
    margin-right: .5rem;
}

.user-have-critical-notifications .user-notifications-bell-block {
    color: red !important;
}

#usernamerole.user-have-critical-notifications {
    background: #ffa0a0 !important;
    border: 1px solid red !important;
    color: red;
    font-weight: bold;
}

.dx-checkbox-icon {
    border: 3px solid #67a0e6 !important;
    width: 22px;
    height: 22px;
}

.dx-datagrid-checkbox-size .dx-checkbox-icon {
    width: 20px;
    height: 20px;
}

.dx-checkbox.dx-state-hover .dx-checkbox-icon {
    border: 3px solid #103d64 !important;
}

.notifications-checkbox-block .dx-checkbox-icon {
    width: 16px !important;
    height: 16px !important;
    border: 2px solid #67a0e6 !important;
}

/* ---------------- */
/* Rates libraries  */
/* ---------------- */

.invoice-lib-header {
    padding: 0.4rem;
    border-bottom: 1px solid #898989;
    background: #cdcdcd;
    color: black;
    height: 20px;
    font-weight: bold;
}

.proposal-edition-tab .invoice-lib-header,
#ateam-edit-std-production-template-modal .invoice-lib-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.proposal-edition-tab .invoice-lib-header .lib-block-expander,
#ateam-edit-std-production-template-modal .invoice-lib-header .lib-block-expander {
    margin-left: auto;
    cursor: pointer;
    font-size: 1.5rem;
}

.proposal-edition-tab .invoice-builder-section[expand-state='collapsed'] .invoice-lib-item,
#ateam-edit-std-production-template-modal .invoice-builder-section[expand-state='collapsed'] .invoice-lib-item {
    display: none;
}
 
.proposal-lib-group-large-height .section-items {
    height: 600px;
    overflow-y: scroll;
}

#ateam-edit-std-production-template-modal .proposal-lib-group-large-height .section-items {
    height: 495px;
    overflow-y: scroll;
}

.invoice-builder-section {
    margin-top: 1rem;
    user-select: none;
}

.invoice-builder-section[data-type="fee-schedule"] {
    background: #c1daff;
    width: 100%;
}

.invoice-builder-section[data-type="work-material"] {
    background: #dfc1ff;
    width: 100%;
}

.invoice-builder-section[data-type="extra-service"] {
    background: #ffc479;
    width: 100%;
}

.invoice-builder-section.proposal-lib-group-sticked {
    position: fixed;
    top: 0;
    width: 430px;
    z-index: 10;
}

.invoice-builder-section.proposal-lib-group-one-sticked {
    width: 430px;
    position: fixed;
    top: 0;
}

.invoice-builder-section.proposal-lib-group-two-sticked {
    width: 430px;
    position: fixed;
    top: 50px;
}

.invoice-builder-section.proposal-lib-group-three-sticked {
    width: 430px;
    position: fixed;
    top: 100px;
}

.invoice-builder-section.inactive {
    opacity: .5;
}

.survey-services-administrative-header {
    margin-bottom: 1rem;
}

.company-survey-services-library .stored-survey-service-item {
    background: #b8e7be;
}

.company-survey-services-library .stored-survey-service-item:hover {
    background: #ebf3ff;   
}

.invoice-editor-library .invoice-lib-item,
.company-survey-services-library .stored-survey-service-item,
.company-survey-services-library .stored-survey-service-item-theader {
    padding: .4rem;
    border-bottom: 1px solid #898989;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    height: 20px;
}

.company-survey-services-library .survey-service-item-standard-layout {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
}

.survey-service-item-mobile-layout {
    display: none;
}

.invoice-editor-library .invoice-lib-item .code {
    width: 100px;
    word-break: keep-all;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 20px;
}

.invoice-editor-library .invoice-lib-item .details
{
    margin-left: auto;
    width: 150px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.std-template-pricing-table-preview-block .invoice-lib-item .details {
    width: 175px !important;
}

.invoice-editor-library .invoice-lib-item .details .price {
    text-align: right;
    margin-left: auto;
}

.invoice-editor-library .invoice-lib-item:hover {
    background: #ebf3ff;
}

.handlebars-obligatory-item {
    color: #9b0087;
    margin-right: .5rem;
    cursor: help;
}

.invoice-editor-library .invoice-lib-item .unit-details {
    color: #696969; 
    text-align: left;
}

.stored-survey-service-item-theader {
    font-weight: bold;
    background: #cdcdcd;
}

.stored-survey-service-item-theader .service-id,
.stored-survey-service-item-theader .service-requires-recording,
.stored-survey-service-item .service-id,
.stored-survey-service-item .service-requires-recording {
    margin-left: auto;
    text-align: right;
    width: 100px;
}

.stored-survey-service-item-theader .service-name,
.stored-survey-service-item .service-name {
    width: calc(100% - 200px); 
}

/* --------------- */
/* Auth container  */
/* --------------- */
#loginContainer,
#pwdUpdateContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.login-inner,
.pwd-update-inner {
    /* ... */
}

.credentials-button {
    margin-top: .5rem;
}

.login-inner h3,
.pwd-update-inner h3 {
    text-align: center;
    font-size: 1.5rem;
}

.login-inner input {
    width: 200px !important;
}

.login-status-row {
    font-size: 1.5rem;
    text-align: center;
}

.std-button {
    font-size: 1.5rem;
    line-height: normal;
    padding-top: 0;
}

.loading-credentials {
    text-align: center;
    font-size: 1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.loading-credentials .loader-icon {
    margin-right: 1rem;
}

.user-small-avatar-and-name {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.user-small-avatar-and-name img {
    margin-right: 10px;
}

.user-notifications-bell-block {
    margin-right: 10px;
    color: #004db3;
    font-weight: bold;
}

.user-notifications-bell-block .notifications-counter-number {
    margin-left: .2rem;
}

/* --------------- */
/*    Search bar   */
/* --------------- */

.search-string-block {
    border: 1px solid #cccccc;
    padding: .2rem;
    background: white;
    box-shadow: 0 1px 1px #cccccc inset;
    padding-left: .8rem;
    width: calc(100% - 1rem);
    border-radius: .3rem;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.search-string-block .search-loupe {
    font-size: 1.2rem;
}

.search-string-block input {
   width: calc(100% - 90px);
}

.search-string-block i {
    margin-right: .4rem;   
}

.search-string-block input {
    border: none;
    padding: .3rem;
    font-size: 1.2rem;
    outline: none;
}

.search-go {
    padding: 0.2rem 0.6rem;
    background: #28a745;
    color: white;
    font-weight: bold;
    border-radius: 0.3rem;
    cursor: pointer;
    margin-left: auto;
    margin-right: 0.2rem;
}

/*
    Footer for inner partitions
*/

.footer {
    background: #e4e4e4;
    height: 55px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.copyright-block {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center; 
}

.copyright-block > div {
    margin-left: .25rem;
    margin-right: .25rem;
}

.bottom-block-copyright-center-area {
    margin-right: .7rem !important;
}

/* Modal window */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /** z-index: 10000; */
    z-index: 9995;
}

.modal-overlay {
    background: white;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    z-index: 0;
}

.modal-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; 
}

.modal-header-icon-before {
    font-size: 6rem;
    margin-bottom: 1rem;
    color: #00476b;
}

.modal-icon {
    font-size: 4rem;
    color: #00476b;
    margin-bottom: .5rem;
}

.modal-header {
    font-size: 2rem;
}

.modal-header i {
    color: #00476b;
    margin-right: .3rem;
}

.modal-subheader {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-align: center;
    margin-top: .3rem;
}

.modal-input-field {
    margin-bottom: 1.2rem;
}

.modal-input-field input,
.modal-input-field select,
.modal-input-field textarea {
    width: 250px;
}

.modal-input-field textarea {
    height: 100px;
    resize: none;
}

.modal-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.modal-buttons-second-bar {
    margin-top: 1rem;
}

.modal-buttons > div {
    margin-left: .5rem;
    margin-right: .5rem;
}

.modal-form-many-fields {
    margin-top: 1.5rem;
    margin-bottom: .8rem;
}

.modal-form-many-fields .modal-input-field input,
.modal-form-many-fields .modal-input-field select {
}

.modal-form-many-fields-va-top {
    justify-content: flex-start !important;
    align-items: flex-start !important;
}

.modal-form-many-fields .modal-input-field {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.modal-form-many-fields .field-label {
    font-size: 1.2rem;
    margin-bottom: .2rem;
    width: 150px;
}

.modal-form-many-fields .field-label-description {
    width: 100%;
    font-size: .8rem;
    margin-top: .3rem;
    margin-bottom: 1.2rem;
    color: #676767;
}

.requred-field {
    width: 0px;
    position: relative;
    overflow: visible;
}

.requred-field > div {
    position: relative;
    left: -10px;
    background: #9AC4E8;
    height: 18px;
    width: 18px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: help;
}

.requred-field > div i {
    font-size: 10px;
    color: red;
    position: relative;
    left: 1px;
}

.field-with-extension {
    margin-bottom: 0 !important;
}

.modal-buttons-after {
    margin-top: 1rem;
}

.modal .modal-icon .fa-regular.fa-circle-xmark {
    color: red;
}

/* ------------------------------------------------------- */
/*         Proposal statuses tabs + Clients types tabs     */
/* ------------------------------------------------------- */

.proposals-statuses-tabs,
.clients-types-tabs {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid #4698b5;
    margin-left: 1rem;
    margin-right: 1rem;
    width: calc(100% - 2rem - 8px);
}

.proposals-statuses-tabs .status-tab,
.clients-types-tabs .status-tab {
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 6rem;
    height: 6rem;
    padding-top: .7rem;
    padding-bottom: .7rem;
    opacity: .4;
    cursor: pointer;
    user-select: none;
}

.proposals-statuses-tabs .status-tab:hover,
.clients-types-tabs .status-tab:hover{
    background: #ebf3ff;
    opacity: .6;
}

.proposals-statuses-tabs .status-tab i,
.clients-types-tabs .status-tab i {
    font-size: 2rem;
}

.proposals-statuses-tabs .status-tab .name,
.clients-types-tabs .status-tab .name {
    margin-top: .5rem;
    font-weight: bold;
}

.proposals-statuses-tabs .status-tab .sum,
.clients-types-tabs .status-tab .sum  {
    margin-top: .2rem;
    font-size: .8rem;
}

.proposals-statuses-tabs .all-proposals-bulk-text,
.clients-types-tabs .all-proposals-bulk-text {
    margin-top: .2rem;
    font-weight: bold;
    color: #939393;
    font-size: .8rem;
    text-align: center;
}

.proposals-statuses-tabs .status-tab .counter,
.clients-types-tabs .status-tab .counter {
    margin-top: .2rem;
    color: #939393;
    font-size: .8rem;
}

.proposals-statuses-tabs .status-tab.active,
.clients-types-tabs .status-tab.active {
    position: relative;
    top: 1px;
    border-left: 1px solid #4698b5;
    border-top: 1px solid #4698b5;
    border-right: 1px solid #4698b5;
    background: #f1f7ff;
    opacity: 1;
    box-shadow: 1px -2px 2px #cbcbcb;
}

.proposals-statuses-tabs .status-tab .status-loading-icon,
.clients-types-tabs .status-tab .status-loading-icon {
    color: #2d7aa9;
}

.clients-types-tabs {
    width: calc(100% - 2rem - 6px);
}


/* --------------------------------- */
/*         Sign proposal modal       */
/* --------------------------------- */

/* Sign the proposal (modal window) */
.signature-naming-area {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1rem;
}

.fonttype-dd {
    width: 216px;
    height: 30px;
    background: #ffffff;
    border-radius: 0.2rem;
    border: 1px solid #9AC4E8;
    font-size: 1.2rem;
    cursor: pointer;
}

.fonttype-preview {
    height: 30px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding-left: .5rem;
    font-size: 1.4rem;
}

.fonttype-dropdown {
    position: relative;
    overflow: visible;
    height: 1px;
}

.fonttype-dropdown .dropdown-content {
    width: 455px;
    height: 300px;
    position: relative;
    overflow-y: scroll;
    background: white;
    top: -2px;
    left: -236px;
    box-shadow: 0 2px 3px #333;
    border-radius: .4rem;
}

.fonttype-dropdown .dropdown-content .font-dropdown-item {
    font-size: 1.8rem;
    padding: .4rem;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
    line-height: 3rem;
    height: 60px; 
}

.close-font-style-selector {
    cursor: pointer;
    color: #007a9f;
    float: right;
    font-size: 1.2rem;
}

input[type="text"].sign-proposal-final--signature-text {
    width: 435px;
}

input[type="text"].sign-proposal-final--initials {
    width: 200px;
}

.signature-naming-area .text-part-cell {
    margin-left: .5rem;
    margin-right: .5rem;
}

.signature-naming-area .text-part-cell .part-label {
    margin-bottom: .5rem;
    font-size: 1.2rem;
}

.signature-main-text-area {
    width: 335px;
    height: 50px;
    background: white;
    font-size: 2rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    line-height: 2.7rem;
}

.signature-initials-area {
    width: 80px;
    height: 50px;
    background: white;
    font-size: 2rem;
    padding: 0.5rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    line-height: 2.7rem;
}

.signature-and-initials-area {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    border-top: 5px solid #0a7fb7;
    margin-left: .5rem;
    margin-right: .5rem;
    margin-top: 3rem;
    padding-bottom: 1rem;
}

/* Proposals statuses and events icons */

.proposals-statuses-tabs .status-tab[data-status-id="ALL"] .img,
.proposal-status-and-icon .status-tab[data-status-id="ALL"] .img,
.proposal-status-string.status-ALL {
    color: #0f96bd;
}

.proposals-statuses-tabs .status-tab[data-status-id="PREPARATION"] .img,
.proposal-status-and-icon .status-tab[data-status-id="PREPARATION"] .img,
.proposal-status-string.status-PREPARATION,
.proposal-event-element[data-event-type='PROPOSAL_CREATED'] .proposal-event-icon-type i,
.proposal-event-element[data-event-type='PROPOSAL_EDITED'] .proposal-event-icon-type i,
.proposal-event-element[data-event-type='PROPOSAL_COPIED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_CREATED'] .event-icon-information i,
.proposal-event-row[data-eventtype='PROPOSAL_EDITED'] .event-icon-information i,
.proposal-event-row[data-eventtype='PROPOSAL_COPIED'] .event-icon-information i,
.faq-proposal-created-span,
.faq-proposal-edited-span,
.faq-proposal-copied-span {
    color: #065ec7;
}

.proposals-statuses-tabs .status-tab[data-status-id="SENT"] .img,
.proposal-status-and-icon .status-tab[data-status-id="SENT"] .img,
.proposal-status-string.status-SENT,
.proposal-event-element[data-event-type='PROPOSAL_SENT'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_SENT'] .event-icon-information i,
.faq-proposal-sent-to-the-client-span {
    color: #00a9c5;
}

.proposals-statuses-tabs .status-tab[data-status-id="RE-SENT"] .img,
.proposal-status-and-icon .status-tab[data-status-id="RE-SENT"] .img,
.proposal-status-string.status-RE-SENT,
.proposal-event-element[data-event-type='PROPOSAL_REMINDER'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_REMINDER'] .event-icon-information i,
.faq-proposal-re-sent-to-the-client-span {
    color: #cf7706;
}

.proposals-statuses-tabs .status-tab[data-status-id="VIEWED"] .img,
.proposal-status-and-icon .status-tab[data-status-id="VIEWED"] .img,
.proposal-status-string.status-VIEWED,
.proposal-event-element[data-event-type='PROPOSAL_VIEWED'] .proposal-event-icon-type i,
.proposal-event-element[data-event-type='PROPOSAL_PREVIEWED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_VIEWED'] .event-icon-information i,
.faq-proposal-web-document-viewed-by-client-span,
.faq-proposal-web-document-previewed-by-estimator-span {
    color: #5bb516;
}

.proposals-statuses-tabs .status-tab[data-status-id="SIGNED"] .img,
.proposal-status-and-icon .status-tab[data-status-id="SIGNED"] .img,
.proposal-status-string.status-SIGNED,
.proposal-event-element[data-event-type='PROPOSAL_SIGNED_BY_CLIENT'] .proposal-event-icon-type i,
.proposal-event-element[data-event-type='PROPOSAL_SIGNED_BY_ESTIMATOR'] .proposal-event-icon-type i,
.proposal-event-element[data-event-type='PROPOSAL_WON_SIGNED_BY_BOTH_PARTIES'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_SIGNED_BY_CLIENT'] .event-icon-information i,
.proposal-event-row[data-eventtype='PROPOSAL_SIGNED_BY_ESTIMATOR'] .event-icon-information i,
.proposal-event-row[data-eventtype='PROPOSAL_WON_SIGNED_BY_BOTH_PARTIES'] .event-icon-information i,
.faq-proposal-signed-by-client-span,
.faq-proposal-signed-by-estimator-span,
.faq-proposal-signed-by-both-parties-span {
    color: #14810a;
}

.proposals-statuses-tabs .status-tab[data-status-id="REJECTED"] .img,
.proposal-status-and-icon .status-tab[data-status-id="REJECTED"] .img,
.proposal-status-string.status-REJECTED,
.proposal-event-element[data-event-type='PROPOSAL_REJECTED_BY_CLIENT'] .proposal-event-icon-type i,
.faq-proposal-rejected-by-client-span,
.faq-proposal-rejected-by-estimator-span {
    color: #a3a3a3;
}

.proposals-statuses-tabs .status-tab[data-status-id="ARCHIVED"] .img,
.proposal-status-and-icon .status-tab[data-status-id="ARCHIVED"],
.proposal-status-string.status-ARCHIVED.img,
.proposal-event-element[data-event-type='PROPOSAL_ARCHIVED'] .proposal-event-icon-type i,
.faq-proposal-archived-span {
    color: #757575;
}

.proposal-event-element[data-event-type='PROPOSAL_DOCUMENT_UPDATED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_DOCUMENT_UPDATED'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_PDF_AUTO_GENERATED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_PDF_AUTO_GENERATED'] .event-icon-information i,
.faq-proposal-document-updated-span {
    color: #aa0ebb;
}

.proposal-event-element[data-event-type='PRODUCTION_TABLE_UPDATED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PRODUCTION_TABLE_UPDATED'] .event-icon-information i,
.faq-production-table-updated-span {
    color: #db4837;
}
  
.proposal-event-element[data-event-type='PROPOSAL_FILE_ADDED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_FILE_ADDED'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_FILE_REMOVED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_FILE_REMOVED'] .event-icon-information i,
.faq-proposal-file-attached,
.faq-proposal-file-removed {
    color: #7f8f00;
}

.proposal-event-element[data-event-type='PROPOSAL_REVOKED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_REVOKED'] .event-icon-information i {
    color: red;
}

.proposal-event-element[data-event-type='REVOKATION_CANCELED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='REVOKATION_CANCELED'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_UNARCHIVED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_UNARCHIVED'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_REJECTION_CANCELED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_REJECTION_CANCELED'] .event-icon-information i {
    color: green;
}

.proposal-event-element[data-event-type='PROPOSAL_INVOICE_SYNCHRONIZED_WITH_QB'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_INVOICE_SYNCHRONIZED_WITH_QB'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_INVOICE_SYNCHRONIZED_WITH_QBO'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_INVOICE_SYNCHRONIZED_WITH_QBO'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_SYNCHRONIZED_WITH_IHR'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_SYNCHRONIZED_WITH_IHR'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_PROJECT_NUMBER_CREATED_BY_IHR'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_PROJECT_NUMBER_CREATED_BY_IHR'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_RESYNC_IHR_REQUESTED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_RESYNC_IHR_REQUESTED'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_RESYNC_X_REQUESTED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_RESYNC_X_REQUESTED'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_RESYNC_QB_REQUESTED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_RESYNC_QB_REQUESTED'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_SYNCHRONIZED_WITH_X_SERVER'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_SYNCHRONIZED_WITH_X_SERVER'] .event-icon-information i,
.faq-proposal-sync-with-qb-success,
.faq-proposal-sync-with-ihr-success {
    color: #1c486f;
}

.proposal-event-element[data-event-type='PROPOSAL_INVOICE_SYNCHRONIZATION_WITH_QB_FAILED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_INVOICE_SYNCHRONIZATION_WITH_QB_FAILED'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_INVOICE_SYNCHRONIZATION_WITH_QBO_FAILED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_INVOICE_SYNCHRONIZATION_WITH_QBO_FAILED'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_SYNCHRONIZATION_WITH_IHR_FAILED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_SYNCHRONIZATION_WITH_IHR_FAILED'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_MESSAGE_DELETED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_MESSAGE_DELETED'] .event-icon-information i,
.faq-proposal-qb-sync-failed,
.faq-proposal-ihr-sync-failed,
.faq-proposal-chat-message-deleted {
    color: red;
}

.proposal-event-element[data-event-type='PROPOSAL_PDF_DOWNLOADED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_PDF_DOWNLOADED'] .event-icon-information i,
.faq-proposal-pdf-downloaded {
    color: #af3434;
}

.proposal-event-element[data-event-type='PROPOSAL_COMMENTED_BY_CLIENT'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_COMMENTED_BY_CLIENT'] .event-icon-information i,
.proposal-event-element[data-event-type='PROPOSAL_COMMENTED_BY_ESTIMATOR'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_COMMENTED_BY_ESTIMATOR'] .event-icon-information i,
.faq-proposal-chat-messages-by-estimator-and-client {
    color: #002a8d;
}

.proposal-event-element[data-event-type='PROPOSAL_ESTIMATOR_CHANGED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_ESTIMATOR_CHANGED'] .event-icon-information i {
    color: #127ed5;
}

.proposal-event-element[data-event-type='PROPOSAL_ARCHIVED'] .proposal-event-icon-type i,
.proposal-event-row[data-eventtype='PROPOSAL_ARCHIVED'] .event-icon-information i {
    color: #918787;
}

/* Proposals events icons */
.proposal-event-element[data-event-type='PROPOSAL_CREATED'],
.proposal-event-row[data-eventtype='PROPOSAL_CREATED'] {
    background: #a8d8ff;
}

.proposal-event-element[data-event-type='PROPOSAL_SIGNED_BY_CLIENT'],
.proposal-event-row[data-eventtype='PROPOSAL_SIGNED_BY_CLIENT'],
.proposal-event-element[data-event-type='PROPOSAL_WON_SIGNED_BY_BOTH_PARTIES'],
.proposal-event-row[data-eventtype='PROPOSAL_WON_SIGNED_BY_BOTH_PARTIES'],
.proposals-list-content .proposal-row-element[data-status-type='SIGNED'] {
    background: #cbf1ca;
}
 
.proposal-event-element[data-event-type='PROPOSAL_SIGNED_BY_ESTIMATOR'],
.proposal-event-row[data-eventtype='PROPOSAL_SIGNED_BY_ESTIMATOR'] {
    background: #cae8ff;
}

.proposal-event-element[data-event-type='PROPOSAL_REJECTED_BY_ESTIMATOR'],
.proposal-event-element[data-event-type='PROPOSAL_REJECTED_BY_CLIENT'],
.proposal-event-element[data-event-type='PROPOSAL_ARCHIVED'],
.proposals-list-content .proposal-row-element[data-status-type='REJECTED'],
.proposals-list-content .proposal-row-element[data-status-type='ARCHIVED'] {
    background: #d3d3d3;
}
  
.proposal-event-row[data-eventtype='PROPOSAL_SIGNED_BY_CLIENT'] { 
    border: 4px solid green;
}

.proposal-event-row[data-eventtype='PROPOSAL_SIGNED_BY_ESTIMATOR'] { 
    border: 4px solid #015091;
}
  
/* Proposal chat */
/* Chat messages */
.chat-messages {
    background: white;
    height: 400px;
    width: calc(100% - 2rem);
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-left: 1rem;
    padding-right: 1rem;
}

.proposal-chat-message {
    margin-top: .5rem;
    margin-bottom: 1.5rem;
}

.proposal-message-text {
    background: #dbe9ff;
    padding: .5rem;
    border-radius: .5rem;
    padding-left: .7rem;
    padding-right: .7rem;
    font-size: 1.2rem;
    max-width: 430px;
}

.proposal-chat-message[data-sendertype='client'] .proposal-message-sender-triangle-row {
    height: 1px;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    padding-right: 1rem;
}

.proposal-chat-message[data-sendertype='estimator'] .proposal-message-sender-triangle-row {
    height: 1px;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding-left: 1rem;
}

.chat-cloud-arrow-down {
    width: 0px;
    height: 0px;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 20px solid #dbe9ff;
}

.proposal-chat-message[data-sendertype='client'] {
    margin-left: auto;
}

.proposal-chat-message[data-sendertype='client'] .message-phone-and-email, .proposal-chat-message[data-sendertype='client'] .proposal-message-sender, .proposal-chat-message[data-sendertype='client'] .message-date {
    text-align: right;
}

.proposal-message-details {
    margin-top: .5rem;
}

.proposal-message-sender {
    font-size: 1.2rem;
}

.chat-estimator-image {
    margin-right: .5rem;
}

.chat-client-image {
    margin-left: .5rem;
}

.proposal-chat-message[data-sendertype='estimator'] .proposal-message-sender {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.proposal-chat-message[data-sendertype='client'] .proposal-message-sender {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.message-date {
    color: #a5a5a5;
}

.chat-estimator-image img {
    width: 24px;
}

#update-chat-messages i {
    margin-right: .5rem;
}

.message-bottom-micro-buttons {
    margin-top: .5rem;
}

.proposal-chat-message[data-sendertype='estimator'] .message-bottom-micro-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.proposal-chat-message[data-sendertype='estimator'] .message-bottom-micro-buttons > div {
    margin-right: .5rem;
}

.proposal-chat-message[data-sendertype='client'] .message-bottom-micro-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.proposal-chat-message[data-sendertype='client'] .message-bottom-micro-buttons > div {
    margin-left: .5rem;
}

/* Select2 issues */

.select2-dropdown {
    z-index: 10001 !important;
}

.select2-container .select2-selection--single {
    height: 32px !important;
    font-size: 1.2rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 32px !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #9AC4E8 !important;
}

.select2-search--dropdown .select2-search__field {
    font-size: 1rem;
}

.required-field-select2 .select2-container--default .select2-selection--single .select2-selection__arrow {
    right: 10px !important;
    top: 3px !important;
}

.proposal-signatures-status .slash,
.slash {
    color: #a1a1a1;
}

/* Uploaded files parts */

.files-group-header {
    width: 100%;
    border-bottom: 2px solid #ccc;
    font-size: 1.4rem;
    font-weight: bold;
    padding-bottom: .5rem;
    margin-top: 1rem;
}

.alertify-notifier {
    z-index: 500000 !important;
}

.page-part-editor-head-row-element-type {
    height: 54px !important;
    padding: 0 !important;
    padding-left: .5rem !important;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.page-part-editor-head-row-element-type input {
    background: #e3e3e3 !important;
    border: 1px solid #ccc !important;
}

.required-field {
    color: #ff2d2d;
}

.atpai-auth-access-denied {
    font-size: 1.2rem;
    padding: 2rem;
    font-weight: bold;
    color: red;
}

.back-to-admin-account-menu-item {
    color: #fcff40;
    background: #1a5795;
    border-bottom: 1px solid #b0b0b0;
}

.section-editor-select-page-conditional-displaying-area {
    width: 500px;
    margin-bottom: 1rem;
}

.section-editor-select-page-conditional-displaying-area-description {
    border-bottom: 1px solid #cccccc;
    padding-bottom: .5rem;
    margin-bottom: .5rem;
}

.conditional-page-top-mark-outer {
    height: 1px;
    position: relative;
    overflow: visible;
    width: 100%;
}

.conditional-page-top-mark {
    width: 30px;
    height: 30px;
    cursor: help;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #fffb24;
    box-shadow: 1px 1px 4px #434343;
    border-radius: 50%;
    top: -10px;
    position: absolute;
    z-index: 1;
    right: -5px;
}

.materials-check-the-file-row td,
.unit-based-total-row td {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
}

.ateam-standard-table-v2 {
    width: 100%;
    border-spacing: 0 0;
    border-collapse: collapse;
}

.ateam-standard-table-v2 td {
    box-sizing: border-box;
}

.ateam-standard-table-v2-header td,
.ateam-standard-table-v2-footer td {
    padding: 0.3rem;
    border-bottom: 1px solid #898989;
    background: #b5dfff;
    color: black;
    min-height: 30px;
    vertical-align: middle;
    font-weight: bold;
}

.ateam-standard-table-row-v2 {
    
}

.ateam-standard-table-row-v2:hover {
    background: #ebf3ff;
}

.ateam-standard-table-row-v2 td {
    padding: 0.33rem;
    border-bottom: 1px solid #898989;
    color: black;
    min-height: 30px;
    vertical-align: middle;
    box-sizing: border-box;
}

.field-with-wrong-data {
    background: #ffd7d7 !important; 
}

.bulk-row-cell-center {
    text-align: center;
}

/* ------------------------*/
/*       Pagination 2      */
/* ----------------------- */

.pagination-page-numbers-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

div[data-role='pagination-2'] {
    background: #f1f7ff;
    padding: 3px;
    box-shadow: 1px 0px 3px #9f9f9fc2;
    border: 1px solid #4698b5;
    border-radius: 5px;
}

div[data-role='pagination-2'] select {
    width: 220px;
    padding: 2px 6px;
    font-size: 1rem;
    margin: 2px;
    border-radius: 5px !important;
}

div[data-role='pagination-2'] .pager-left-label {
    width: 62px;
    font-size: 1rem;
    color: #535353;
    font-weight: bold;
    text-align: center;
}

div[data-role='pagination-2'] .pager-right-area {
    margin-left: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

div[data-role='pagination-2'] [data-role="page-lister-outer-holder"] {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

div[data-role='pagination-2'] div[data-role='pager'] {
    display: block;
    margin-left: 2px;
    margin-right: 2px;
    padding: 1px 5px;
    color: #1D7BC9;
    text-decoration: none;
    text-shadow: 0 1px 0 #E2E2E2;
    cursor: pointer;
    font-size: 20px;
    font-family: Arial;
    text-decoration: none;
    border: 1px solid #9AC4E8;
    border-radius: 5px;
    background: white;
}

div[data-role='pagination-2'] div[data-role='pager']:hover {
    background: #dae9ff;
    box-shadow: 0px 1px 1px #000000;
}

div[data-role='pagination-2'] div[data-role='pager'][data-activepage='yes'] {
    color: red !important;
    border: 1px solid #d37d7d;
    box-shadow: 0 1px 2px #9d0e0e inset;
    text-shadow: 0 1px #ffffff;
    padding-top: 3px;
    height: 22px;
}

div[data-role='pagination-2'] div[data-role='pager'][data-activepage='yes']:hover {
    background: #ffe4e4;
}

.page-lister-items-per-page {
    width: 200px;
}

div[data-role='pagination-2']:first-child {
    margin-bottom: 1rem;
}

div[data-role='pagination-2']:last-child {
    margin-top: 1rem;
}

.made-by-surveyors-for-surveyors {
    color: #333333;
    font-weight: bold;
}

.loader-text-column {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.logging-to-the-organization-account-top-icons {
    font-size: 3rem;
}

.logging-to-the-organization-account-label {
    margin-top: .5rem;
    font-size: 1.5rem;
}

.data-is-secure-footer-image {
    border-radius: 7px;
    position: relative;
    top: 1px;
}

.privacy-statement-page-content {
    padding-left: 1.5rem;
    padding-bottom: 1rem;
}

.privacy-statement-last-update-date {
    margin-bottom: 1rem;
}

.surveysphere-logo-bottom-block {
    position: relative;
    top: 4px;
}

.param-is-not-specified {
    color: #cccccc;
}

.section-nav-mobile-mini {
    display: none;
}

.proposal-page-header-control-buttons-inner-wrappable {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}

.show-hide-pages-grid-mobile-label {
    display: none;
}

.template-control-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.template-control-buttons > div {
    font-size: 1.2rem;
    margin-left: 3px;
    margin-right: 3px;
    cursor: pointer;
}

.create-update-tm-template-modal-content {
    width: 600px;
}

#ateam-edit-tm-template-modal .modal-form-many-fields .modal-input-field {
    width: 100%;
    box-sizing: border-box;
}

#ateam-edit-tm-template-modal .modal-form-many-fields .modal-input-field input,
#ateam-edit-tm-template-modal .modal-form-many-fields .modal-input-field select,
#ateam-edit-std-rates-template-modal .modal-form-many-fields .modal-input-field input,
#ateam-edit-std-rates-template-modal .modal-form-many-fields .modal-input-field select {
    width: 430px;
}

[data-role="tm-rate-row"][data-ratetype="manual-other-item"],
.export-pt-pdf-file-output-area [data-ratetype="manual-other-item"] {
    background: #bdf1ef !important;
}

.template-control-buttons [data-role="append-to-production-table"] {
    color: green;
}

.template-control-buttons [data-role="edit-template"] {
    color: #1269c5;
}

.template-control-buttons [data-role="delete-template"] {
    color: red;
}

#ateam-tm-library-modal .modal-subheader .proposal-estimation-type-question-icon {
    position: relative;
    top: 2px;
    left: 2px;
}

.ateam-std-rates-template-modal-content [data-role="invoice-lib-item"] input {
    width: 65px !important;
    font-size: 1rem !important;
    padding: 2px 4px;
    margin-left: 5px;
}

.ateam-std-rates-template-modal-content .invoice-lib-item .details {
    width: 250px !important; 
}

#ateam-edit-std-production-template-modal .ateam-modal-central-part-v2-holder {
    width: 100%;
    box-sizing: border-box;
    padding-left: 30px;
    padding-right: 30px;
    margin-top: 30px;
    margin-bottom: 30px;
}

#ateam-edit-std-production-template-modal .ateam-modal-central-part-v2-content,
#ateam-edit-std-production-template-modal .ateam-modal-content-content-v2,
#ateam-edit-std-production-template-modal .pt-template-pricing-table-preview-block.invoice-editor-library {
    width: 100%;
    box-sizing: border-box;

}

#ateam-edit-std-production-template-modal .pt-template-pricing-table-preview-block.invoice-editor-library {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
}

#ateam-edit-std-production-template-modal .ateam-modal-content-content-v2 {
    padding-top: 0;
}

#ateam-edit-std-production-template-modal .modal-form-many-fields {
    background: #ebf3ff;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 1rem;
    border-top: 1px solid #cccccc;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#ateam-edit-std-production-template-modal .modal-form-many-fields .modal-input-field:last-child {
    margin-bottom: 0 !important;
}
 
/* -------------------------------------- */
/*            Responsive layout           */
/* -------------------------------------- */
@media (max-width: 992px) {
    /* Not used, migrated to width=768px */
}

/* Migrate 992px to 768px */
@media (max-width: 768px) {
    .wait-loader .loader-text .loader-text-row {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .wait-loader .loader-icon {
        margin-bottom: 1rem;
    }
}
 
@media (max-width: 582px) {

    .modal-header {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-bottom: 1.5rem;
        font-size: 1.6rem;
        padding-left: .5rem;
        padding-right: .5rem;
    }

    .modal-header i {
        display: block;
        font-size: 4rem;
        margin-bottom: .5rem;
    }

    .modal-subheader {
        padding-left: .5rem;
        padding-right: .5rem;
        font-size: 1rem;
    }

    .modal-input-field {
        flex-direction: column !important;
    }

    .modal-input-field .field-label {
        width: 100%;
        display: block;
        font-weight: bold;
        margin-bottom: .3rem;
    }

    .modal-input-field .requred-field {
        position: relative;
        top: -55px;
        left: 125px !important;
    }

    .modal-form-many-fields {
        margin-top: .5rem;
    }

    .modal-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .modal-buttons .button {
        padding: .3rem .5rem;
    }
}