.bm__dashboard {
    padding: 1rem;
}

.bm__dashboard__panel {
    display: none;
    background: var(--dashboard-panel-bgcolor);
    border: 1px solid var(--form-card-bordercolor-hover);
    box-shadow: 0px 2px 5px var(--form-card-bg-hover-shadow);
    margin-bottom: 1rem;
    max-width: 100%;
}

.bm__dashboard__panel__loading {
    height: 150px;
}

.bm__dashboard__panel__loading img {
    width: 32px;
    height: 32px;
    position: relative;
    left: 50%;
    top:50%;
    transform: translateX(-50%);
    transform: translateY(-50%);
}

.bm__dashboard__panel__load-error {
    margin: auto;
    padding: 1rem;
}
.bm__dashboard__panel__load-error img {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
}

.bm__dashboard__panel__load-error label {
    display: flex;
    font-family: var(--form-fieldlabel-font-family);
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;
    margin-top: 10px;

    color: var(--dashboard-panel-error-textcolor);
}

.bm__dashboard__panel__title {
    display: flex;
    padding: 0.5rem;
}

.bm__dashboard__panel__title img {
    width: 14px;
    height: 14px;
    margin-top: 3px;
    cursor: pointer;
}

.bm__dashboard__panel__title h1 {
    font-family: var(--dashboard-panel-title-font-family);
    text-align: left;
    font-style: normal;
    font-weight: 600;
    font-size: 20px;
    line-height: 20px;
    width: 100%;
    margin-left: 0.5rem;

    color: var(--dashboard-panel-title-textcolor);
}

.bm__dashboard__panel__title {
    padding: 0.5rem;
}

.bm__dashboard__panel__content {
    display: flex;
    flex-direction: column;
    padding: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.bm__dashboard__panel__content__info {
    margin: auto;
}

.bm__dashboard__panel__content__info label {
    display: flex;
    font-family: var(--form-fieldlabel-font-family);
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 12px;

    color: var(--dashboard-panel-title-textcolor);
    opacity: 70%;
}

.bm__dashboard__panel__content__section_exagr,
.bm__dashboard__panel__content__section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.bm__dashboard__panel__content__section {
    overflow-x: auto;
    /* Hide scrollbar for Chrome, Safari and Opera */
    -webkit-scrollbar {
        display: none;
    }
    /* Hide scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}



.bm__dashboard__panel__block {
    display: flex;
    flex-direction: column;
    margin-top: 20px;
    margin-right: 20px;
    margin-bottom: 0px;
    /*background-color: var(--dashboard-panel-block-bgcolor);
    border: 1px solid var(--dashboard-panel-bordercolor);
    border-radius: 3px;*/
    padding: 0rem;
}

.bm__dashboard__panel__block__sections {
    display: flex;
    height: 80px;
}
.bm__dashboard__panel__block__section {
    display: flex;
    flex-direction: column;
    padding-top: 0rem;
    padding-bottom: 0.5rem;
    min-width: 130px;
    max-width: 200px;
    margin-right: 10px;
}

.bm__dashboard__panel__block__section:last-child {
    margin-right: 0px;
}

.bm__dashboard__panel__block__label {
    display: flex;
}

.bm__dashboard__panel__block__legend-bullet {
    display: flex;
    height: 0.5rem;
    width: 0.5rem;
    border-radius: 2px;
    margin-top: 8px;
}

.bm__dashboard__panel__block label {
    font-family: var(--form-fieldlabel-font-family);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    margin-top: 3px;
    color: var(--form-fieldlabel-textcolor);
    padding-left: 0.5rem;
    
    /* Prevent selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.bm__dashboard__panel__block h1 {
    font-family: var(--form-fieldlabel-font-family);
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 22px;
    color: var(--form-fieldvalue-textcolor);
    padding: 0.5rem;
    
    /* Prevent selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.bm__dashboard__panel__block h2 {
    font-family: var(--form-fieldlabel-font-family);
    font-style: normal;
    font-weight: 500;
    font-size: 20px;
    line-height: 20px;
    color: var(--form-fieldvalue-textcolor);
    padding: 0.5rem;
    
    /* Prevent selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.bm__dashboard__panel__block__chart {
    padding-left: 0rem;
    padding-right: 0rem;
    width: 100%;
}

.bm__dashboard__panel__chart {
    padding: 0rem;
    width: 100%;
}

.bm__dashboard__add-expense-button {
    background-image: url('assets/icons/purse.png');
    position: fixed;
    bottom: 0;
    margin-bottom: 1rem;
    margin-right: 2rem;
    right: 0;
    height: auto;
    display: flex;
    border-radius: 0;
    opacity: 0.9;
}

.bm__dashboard__add-expense-button img {
    width: 48px;
    height: 48px;
    z-index: 20;
    cursor: pointer;
}

.bm__dashboard__add-expense-button__label {
    display: flex;
}

.bm__dashboard__add-expense-button__label h1 {
    font-family: var(--font-family);
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 14px;
    color: #ffebda;
    background: #c87d15;
    border: 2px solid #eb852c;
    height: 26px;
    padding: 4px;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    display: flex;
    margin-top: 13px;
    margin-left: -4px;
    z-index: 19;
    cursor: pointer;

    /* Prevent selection */
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.bm__dashboard__add-expense-button__label h1:hover {
    color: #ffffff;
}


/**
 * Expense Aggregate Panel
 */
.bm__exaggr__panel__chart_titlebar {
    display: flex;
    width: 100%;
}

.bm__exaggr__panel__chart_titlebar h1 {
    display: flex;
    font-family: var(--chart-label-font-family);
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
    color: var(--chart-label-textcolor);
    padding: 0.1rem;
    margin-left: -2px;
    padding-bottom: 1rem;
    width: 100%;
}

.bm__exaggr__panel__chart_titlebar_buttons {
    display: flex;
    height: 20px;
    
}

.bm__exaggr__panel__chart_titlebar_button_selected,
.bm__exaggr__panel__chart_titlebar_button {
    display: inline;
    font-family: var(--chart-label-font-family);
    font-style: normal;
    font-weight: 400;
    font-size: 10px;
    line-height: 10px;
    color: var(--dashboard-panel-exaggr-daily-btn-textcolor);
    cursor: pointer;
    text-align: center;
    align-content: center;

    background-color: var(--dashboard-panel-exaggr-daily-btn-bgcolor);
    border: 1px solid var(--dashboard-panel-exaggr-daily-btn-bordercolor);
    border-radius: 4px;
    width: 30px;
    margin-left: 0.3rem;
    margin-right: 0.3rem;
}

.bm__exaggr__panel__chart_titlebar_button_selected {
    color: var(--dashboard-panel-exaggr-daily-btn-textcolor-active);
    background-color: var(--dashboard-panel-exaggr-daily-btn-bgcolor-active);
    border: 1px solid var(--dashboard-panel-exaggr-daily-btn-bordercolor-active);
    cursor: default;
}

 /**
 * Media: Mobile Phone
 */
 @media screen and (max-width: 550px) {
    .bm__dashboard__add-expense-button__label {
        display: none;
    }

    .bm__dashboard__add-expense-button img {
        width: 56px;
        height: 56px;
    }

    .bm__dashboard__panel__block {
        margin-right: 40px;
        width: 100%;
    }

    .bm__dashboard__panel__block__section {
        width: 100%;
    }

    .bm__dashboard__panel__content__section {
        flex-wrap: nowrap;
    }
}