body {
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

.content {
    width: 80%;
    margin: 0 auto;
}

.hidden {
    display: none;
}

._dash-loading {
    padding: 20px;
}

/* Fields */

input[type="email"], input[type="number"], input[type="search"], input[type="text"], input[type="tel"], input[type="url"], input[type="password"], textarea, select {
    font-size: 12px;
}

/* Tables */

.column-header-name, .dash-cell-value {
    margin-left: 10px !important;
}

.column-header-name {
    font-weight: 600;
}

/* Top bar */

.header {
    display: flex;
    flex-direction: row;
    margin: 0px 10px 10px 20px;
    border-top-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.flex-item {
    flex: 1;
}

.date-range-wrapper {
    flex: 1;
}

.DateRangePickerInput {
    background-color: #fff;
    border: none;
}

.data-button {
    position: relative;
    top: 1px;
    margin-left: 20px;    
}

.menu-wrapper {
    flex: 1;
}

.buttons-wrapper {
    float: right;
}

.page-list {
    float: left;
    margin-top: 5px;
    margin-left: 2px;
}

.page-list .menu-item {
    color: rgb(50, 50, 50);
    font-size: 17px;
    margin-right: 30px;
    text-decoration: none;
    font-weight: 650;
}

.page-list .menu-item.active {
    text-decoration: underline;
}

.view-toggle-wrapper {
    flex: 1;
    text-align: right;
}

.view-toggle {
    position: relative;
    display: inline-block;
    top: 6px;
    margin-right: 20px;
}

.view-toggle-label {
    position: relative;
    display: inline-block;
    margin-right: 5px;
}

.logout-button {
    background-color: grey;
    color: white;
}

/* Alignment */

.data-wrapper {
    display: flex;
}

.left-wrapper {
    flex: 1;
    margin: 10px 20px;
}

.right-wrapper {
    flex: 4;
}

.full-wrapper {
    flex: 1;
}

.info-wrapper {
    display: flex;
    margin-bottom: 20px;
}

.overview-wrapper {
    margin-bottom: 20px;
}

.info-wrapper .full-wrapper, .overview-wrapper .full-wrapper {
    margin: 20px;
}

/* Info Panels */

.panel-row {
    display: flex;
}

.panel {
    flex: 1;
    margin: 10px;
    position: relative;
}

.panel-borders {
    padding: 20px;
    border-radius: 5px;
    background-color: white;
    border: 1px solid #f1f1f1;
}

.panel-inner {
    text-align: center;
}

.panel-value {
    font-size: 1.3rem;
}

.panel-label {
    font-size: 1rem;
}

.panel-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.alert-timestamp {
    text-align: right;
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 10px;
}

/* Charts */

.dash-graph {
    background: #fff;
    margin: 10px;
}

.hub-info, .alerts {
    font-size: 13px;
}

.hub-info {
    border-bottom: 1px solid #efefef;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

/* Mobile */
@media only screen and (max-width: 1024px) {

    .content {
        width: 100%;
    }

    .data-wrapper, .info-wrapper, .panel-row {
        display: block;
    }

    
    .header {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .header, .left-wrapper, .info-wrapper .full-wrapper {
        margin: 10px;
    }

    .view-toggle-wrapper {
        text-align: right;
        margin-bottom: 20px;
    }

    .header .date-range-wrapper {
        text-align: center;
    }

    .header .data-button {
        margin-top: 20px;
        top: 0;
        display: inline-block;
    }

}

/* Tables */

.cell-table tbody tr th.dash-header {
    background-color: #fff !important;
    border-top: 0 !important;
}

.cell-table tr th.dash-header:first-of-type, .cell-table tr td.dash-cell:first-of-type, .cell-table tr td.dash-select-cell:first-of-type {
    border-left: 0 !important;
}

.cell-table tr th.dash-header:last-of-type, .cell-table tr td.dash-cell:last-of-type {
    border-right: 0 !important;
}

.dash-table-container .dash-spreadsheet-container {
    overflow-x: auto;
}

[data-dash-column="operation"] {
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
}

.hubs-wrapper td {
    border-top: 0 !important;
    border-bottom: 0 !important;
}

.hubs-wrapper .dash-select-cell input {
    margin-bottom: 3px;
}

/* Tooltips */

.tooltip-question {
    font-family: "Font Awesome 5 Pro";
    font-weight: 900;
    margin-left: 15px;
    vertical-align: middle;
    cursor: pointer;
}

.tooltip.show {
    background-color: #fff;
    padding: 15px;
    font-size: 12px;
    border-radius: 5px;
    border: 1px solid #f1f1f1;
}

.cell-markdown p {
    margin: 0;
}
