.modbus-settings-container {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
}

.modbus-settings-container > div {
    display: flex;
    flex-flow: row nowrap;
    padding: 0 10px;
}

.modbus-settings-container p {
    font-weight: bold;
}

.modbus-devices-add-container {
    text-align: center;
}

.modbus-devices-add-container button {
    width: 50%;
}

.modbus-devices-list-container {
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 0px 4px rgba(0, 0, 0, .18);
    overflow-x: auto;
    padding: 0;
}

.modbus-devices-list-container > p {
    text-align: center;
    font-weight: bold;
}

.modbus-devices-table {
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modbus-devices-table thead {
    border-bottom: 2px solid #ddd;
}

.modbus-devices-table thead th {
    padding: 12px 16px;
    font-weight: bold;
}

.modbus-devices-table tbody tr {
    transition: background-color 0.2s ease-in-out;
}

.modbus-devices-table tbody tr:hover {
    background-color: #ebebec;
}

.modbus-devices-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.modbus-devices-table tbody td button {
    background-color: #1e5d91;
    border: none;
}

.modbus-device-type-selector {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modbus-device-type-selector > div {
    width: 80%;
}

.modbus-device-create-error {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}

.modbus-device-create-error p {
    font-weight: bold;
}

.modbus-device-create-error p#error {
    color: #c92e2e;
}

@media only screen and (max-width: 767px) {
    .modbus-devices-add-container button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .modbus-devices-table thead th,
    .modbus-devices-table tbody td {
        padding: 8px 10px;
        font-size: 14px;
    }
}