html {
    scroll-behavior: smooth;
}
:root {
    --card-bg: #192030;
}
p:empty {
    display: none;
}
section {
    width: 100%;
    padding: 0px 20px;
    margin: 5px 0px;
}
.card {
    border-radius: 10px;
    margin: 5px 0;
    padding: 15px 20px;
    background: var(--card-bg);
}
.card.full {
    min-height: calc(100% - 10px);
}
.card hr {
    margin: 5px 0;
    background: #fff;
}
.card .card-title {
    font-size: 18px;
    margin-bottom: 5px;
}

.card .card-mini-title {
    font-size: 16px;
    margin: 8px 0px;
}
.table tr.odd {
    background: #161e31;
}
.table tr.even {
    background: #0b0e18;
}
.icon-red {
    color: #ff2020;
}
.icon-green {
    color: #3bd73b;
}
.icon-warn {
    color: darkorange;
}
.icon-info {
    color: #1d7daa;
}
.icon-info:hover {
    color: #2b9ace;
}
.icon-mr {
    margin-right: 8px;
}
.icon-ml {
    margin-left: 8px;
}
#device_table tr:hover {
    cursor: pointer;
}
#device_table .device-signal {
    margin: 0;
    display: flex;
}
.device-info tr {
    padding: 0px;
    line-height: 30px;
    display: flex;
}

.device-info td {
    display: flex;
    align-items: center;
    margin-right: 6px;
}
.device-info-name {
    font-weight: 700;
}
.home-buttons {
    display: flex;
    align-items: center;
}
.button {
    box-shadow: none;
    display: inline-flex;
    align-items: center;
}
.button-delete {
    background-color: #e61f18 !important;
    color: white !important;
    font-weight: 400;
}
.button-delete:hover {
    background-color: #fa443d !important;
    color: white !important;
}
.button-update {
    color: #fff !important;
    background-color: #4caf50 !important;
}
.button-info {
    background-color: #3376db !important;
}
.button-update:hover {
    background-color: #52be56 !important;
}

.popover-body {
    /* background-color: #121212;
    color: white; */
    font-size: 14px;
    border-radius: 5px;
    border: 2px solid #121212;
    padding: 10px 15px;
}
.bs-popover-top .arrow::after,
.bs-popover-auto[x-placement^="top"] .arrow::after {
    border-top-color: #121212;
}
#map {
    height: 450px;
    margin: 30px 0px;
}
.no-map {
    height: 0px !important;
    margin: 0px !important;
}
.no-datatable {
    display: none;
}
#deviceAddModal > div {
    margin-top: 50px;
}
#editDeviceModal > div {
    margin-top: 50px;
}
#deviceAddModal .modal-content {
    width: 100%;
    max-height: calc(100vh - 100px);
}

#DataTables_Table_0 thead th {
    width: 150px !important;
}
#DataTables_Table_0 tbody td {
    padding: 15px !important;
    font-size: 16px;
}
.cursor-pointer {
    cursor: pointer;
}

#chart_div table {
    width: 100%;
}
.chart-div {
    height: calc(100% - 50px);
}
.chart-blur {
    position: relative;
    overflow: hidden;
}

.chart-blur {
    position: relative;
    overflow: hidden;
}
.chart-blur * {
    visibility: hidden;
}
.chart-blur::after {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 10px;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0px;
    padding: 0 20px;
    background-color: inherit;
    content: attr(text);
}

#chart_div2 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

#chart_div2:empty .loading {
    display: block;
}

.copy {
    cursor: pointer;
}

.copy::after {
    opacity: 0.5;
    font-family: "Material Icons";
    content: "\e14d";
    margin-left: 5px;
    font-size: 20px;
}
.question {
    cursor: pointer;
}

.question::after {
    content: "?";
    opacity: 0.7;
    background: #0d6efd;
    border-radius: 100%;
    color: white;
    font-weight: 800;
    width: 25px;
    height: 25px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: 3px;
}

.nowrap {
    white-space: nowrap;
}

#chart_div2 svg {
    border-radius: 8px;
}
#chart_div2 svg > rect {
    fill: #eceef4;
}
.bg-white {
    background: #fff;
}

.button {
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    border: 0px;
    cursor: pointer;
    outline: none !important;
    transition: all 200ms;
    color: white;
    padding: 5px 17px;
}

.button.icon {
    width: 35px;
    height: 35px;
    padding: 10px !important;
}
.button.loading span.loading {
    display: inline-flex;
}
.button span.loading {
    display: none;
}
.button.disabled {
    cursor: not-allowed;
}
.button:empty {
    display: none;
}
.button:hover {
    color: white;
}
.button:focus {
    color: white;
}
.button:visited {
    color: white;
}
.button:active {
    color: white;
}

.success-button {
    color: #f5f5f5;
    background: #1cbb19;
}
.success-button:hover {
    background: #22d91ecc;
}
.success-button.disabled {
    background: #22d91e9c;
}
.danger-button {
    color: #f5f5f5;
    background: #d42f23;
}
.danger-button:hover {
    background: #f33527cc;
}
.danger-button.disabled {
    background: #f335279c;
}
.info-button {
    color: #f5f5f5;
    background: #187fbb;
}
.info-button:hover {
    background: #156391cc;
}
.info-button.disabled {
    background: #2091d3;
}

.icon {
    font-size: 30px;
    width: 30px;
    text-align: center;
}
.icon.icon-s {
    font-size: 20px;
}
.icon.icon-m {
    font-size: 25px;
}
.icon.icon-l {
    font-size: 30px;
}
.icon.icon-x {
    font-size: 33px;
}
.icon.icon-xl {
    font-size: 40px;
}
.icon.icon-xxl {
    font-size: 45px;
}
.icon.icon-3xl {
    font-size: 50px;
}
.icon-red {
    color: #ff2020;
}
.icon-green {
    color: #45d145;
}
.icon-orange {
    color: #eb9b07;
}
.icon-yellow {
    color: #ffff28f6;
}
.if-empty:empty {
    display: none;
}
.disabled {
    cursor: not-allowed !important;
}
.disabled .loading {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.disabled .icon {
    display: none;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2);
    grid-auto-rows: auto;
    grid-gap: 5px;
}

.wide {
    grid-column: span 2;
}
.bold {
    font-weight: bold;
}
.vertical-center {
    display: flex;
    align-items: center;
}
.ellipsis {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
