/* ACCOUNTS */
.accountWrapper {
    margin: 10px 0;
    display: flex;
    flex-grow: 1;
    flex-direction: row;
    justify-content: space-between;
    border-radius: 3px;
    border: 1px solid var(--primary-color-dark);
    overflow: hidden;
}

.accountContainer {
    display: flex;
    width: calc(100% - 10px);
    flex-direction: column;
    border-left: 10px solid var(--primary-color-light);
    border-radius: 3px;
    padding: 0;
    background-color: var(--surface-color);
}

.accountHeader {
    display: flex;
    font-size: 14px;
    flex-direction: row;
    min-height: 30px;
    align-items: center;
    padding: 10px 5px 10px 10px;
    width: calc(100% - 15px);
}

.headerContent {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-grow: 1;
    min-height: 20px;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compartmentContainer .headerContent {
    font-size: 12px;
}

.accountHeader .moneyValue {
    letter-spacing: 0.02em;
    color: var(--primary-color-dark);
    font-weight: bold;
    font-size: 16px;
}

.moneyValue>.detail {
    font-weight: normal;
    font-size: 14px;
}

.compartmentContainer .options {
    color: transparent;
}

.compartmentContainer:hover .options {
    color: var(--grey-mid);
}

.accountTitle {
    letter-spacing: 0.02em;
    color: var(--primary-color-dark);
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.accountValueInfoRow {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.balance {
    display: flex;
    flex-direction: column;
}

.comparisonMoneyValue {
    color: var(--grey-mid);
}

.moneyValue {
    font-size: 18px;
    text-align: right;
    letter-spacing: 0.05em;
}

.moneyValueLabel {
    font-size: 11px;
    color: var(--grey-dark);
    font-style: italic;
}

.contentBlockGlobalInfo .moneyValue {
    font-size: 30px;
}

/* COMPARTMENTS */
.compartmentWrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.compartmentContainer {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    color: var(--grey-dark);
    align-items: center;
    border-top: 1px dashed var(--primary-color-mid);
    padding: 15px 5px 15px 20px;
    margin-left: -10px;
    /*background: linear-gradient( 90deg, transparent 10px, var(--grey-lighter) 10px, var(--grey-lighter));*/
}

.compartmentContainer:hover {
    background: linear-gradient( 90deg, transparent 10px, var(--grey-lighter) 10px, var(--grey-lighter));
}

.contentButton.compartmentButton {
    color: var(--primary-color-light);
}

.compartmentInfos {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.compartmentTitle {
    color: var(--primary-color-dark);
    margin: 0;
    font-size: 12px;
}

.compartmentDescription {
    font-size: 12px;
    margin-left: 5px;
    color: var(--primary-color-mid);
}

.compartmentContainer .moneyValue {
    font-size: 14px;
    color: var(--primary-color-mid);
    font-weight: bold;
}

/* Special cases for the expenses comparison module */
.accountWrapper.comparisonNotOk .moneyValue {
    color: var(--error-color-mid);
}

.comparisonState {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 55px;
    font-size: 13px;
    padding-left: 10px;
    flex-shrink: 0;
    height: 50px;
    margin-top: 10px;
}

.accountWrapper.comparisonOk ~ .comparisonState {
    color: var(--common-green-dark);
}

.accountWrapper.comparisonNotOk ~ .comparisonState {
    color: var(--error-color-mid);
}

.comparisonState>i {
    margin-right: 5px;
}