
:root {
    --green: #4CAF50;
    --orange: #FF9800;
    --red: #F44336;
    --blue: #2196F3;
}

html, body {
    margin:0;
    padding:0;
    font-family: Arial, Helvetica, sans-serif;
}

.monitor {
    display:flex;
    flex-direction: row;
    width: 100%;
    margin-bottom: 20px;
    justify-content: center;
    align-items: center;
    padding: 2px 10px;
    box-sizing: border-box;
}

.monitor * {
    margin: 0;
    text-wrap: nowrap;
}

.monitor-gap {
    flex-grow: 1;

}

.monitor h4 {
    margin-left: 10px;
    width: 200px;
    font-weight: normal;
}

.monitor-bar {
    display:flex;
    flex-direction: row-reverse;
    width:70%;
    height: 40px;
}

.status-segment {
    flex-grow: 1;
    height: 100%;
    background-color: rgb(213, 213, 213);
    margin: 0 2px;
}

.status-segment:hover {
    opacity: 0.7;
    cursor: pointer;
}


.online {
    background-color: var(--green);
}
.degraded {
    background-color: var(--orange);
}
.offline {
    background-color: var(--red);
}
.unknown {
    background-color: #ebebeb;
}
.maintenance {
    background-color: var(--blue);
}

.monitor-status {
    align-items: center;
    text-align: center;
    vertical-align: middle;
    width: 70px;
    font-size: 13px;
    border-radius:999px;
    height: 25px;
    display: inline-flex;
    justify-content: center;
}

.monitor-status * {
    color: white;
    font-weight: bold;    
}

.monitor-group {
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 40px;
    border: 1px solid rgb(225, 224, 224);
}

#system-status-wrapper {
    border-radius: 2px;
}

#wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    width:100%;
    height:100%;
    box-sizing: border-box;
    padding:20px;
}

.status-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.status-wrapper * {
    margin-top: 0;
    margin-bottom: 20px;
}

.status-wrapper .ph {
    font-size: 24px;
}