body {
    font-family: sans-serif;
    max-width: 1150px;
    margin: 20px auto;
    padding: 0 10px;
    color: #202124;
    background: #f6f7f8;
}

label {
    display: block;
    margin: 10px 0;
}

fieldset,
section {
    margin: 20px 0;
}

fieldset {
    padding: 12px 16px;
    border: 1px solid #c8ccd0;
    border-radius: 6px;
    background: #fff;
}

input[type="range"] {
    width: 280px;
}

input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    margin-top: 4px;
    padding: 6px;
}

output {
    display: inline-block;
    min-width: 100px;
}

button {
    margin-right: 5px;
}

canvas {
    width: 100%;
    border: 1px solid #000;
    background: #fff;
}

.bad-value {
    color: #a51d1d;
    font-weight: bold;
}

.sensor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0 14px;
}

.checkbox-label {
    align-self: end;
    padding-bottom: 6px;
}

.hint {
    margin-bottom: 4px;
    color: #555;
    font-size: 14px;
}

.table-scroll {
    overflow-x: auto;
    border: 1px solid #c8ccd0;
    border-radius: 6px;
    background: #fff;
}

table {
    width: 100%;
    min-width: 760px;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 15px;
}

th,
td {
    padding: 9px;
    border-bottom: 1px solid #e1e3e5;
    text-align: left;
    vertical-align: top;
}

th {
    background: #eceff1;
}

th:nth-child(1) {
    width: 90px;
}

th:nth-child(2) {
    width: 70px;
}

th:nth-child(4) {
    width: 90px;
}

th:nth-child(5),
th:nth-child(6) {
    width: 190px;
}

td {
    overflow-wrap: anywhere;
}

td code {
    display: inline-block;
    margin-top: 4px;
    white-space: nowrap;
}

.health-ok {
    border-left: 4px solid #318044;
}

.health-warning {
    border-left: 4px solid #d28b00;
    background: #fff9e8;
}

.health-error,
.health-critical,
.health-input-error {
    border-left: 4px solid #b42318;
    background: #fff0ee;
}
